summaryrefslogtreecommitdiffstats
path: root/node_modules/console-browserify
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/console-browserify
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/console-browserify')
-rw-r--r--node_modules/console-browserify/.testem.json14
-rw-r--r--node_modules/console-browserify/.travis.yml11
-rw-r--r--node_modules/console-browserify/CHANGELOG.md10
-rw-r--r--node_modules/console-browserify/LICENCE19
-rw-r--r--node_modules/console-browserify/README.md42
-rw-r--r--node_modules/console-browserify/index.js87
-rw-r--r--node_modules/console-browserify/package.json90
-rw-r--r--node_modules/console-browserify/test/index.js67
-rw-r--r--node_modules/console-browserify/test/static/index.html12
-rw-r--r--node_modules/console-browserify/test/static/test-adapter.js53
10 files changed, 0 insertions, 405 deletions
diff --git a/node_modules/console-browserify/.testem.json b/node_modules/console-browserify/.testem.json
deleted file mode 100644
index 633c2ba..0000000
--- a/node_modules/console-browserify/.testem.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "launchers": {
- "node": {
- "command": "npm test"
- }
- },
- "src_files": [
- "./**/*.js"
- ],
- "before_tests": "npm run build",
- "on_exit": "rm test/static/bundle.js",
- "test_page": "test/static/index.html",
- "launch_in_dev": ["node", "phantomjs"]
-}
diff --git a/node_modules/console-browserify/.travis.yml b/node_modules/console-browserify/.travis.yml
deleted file mode 100644
index aafa6a1..0000000
--- a/node_modules/console-browserify/.travis.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-language: node_js
-node_js:
- - "stable"
- - "12"
- - "11"
- - "10"
- - "8"
- - "6"
- - "4"
- - "0.12"
- - "0.10"
diff --git a/node_modules/console-browserify/CHANGELOG.md b/node_modules/console-browserify/CHANGELOG.md
deleted file mode 100644
index 393a213..0000000
--- a/node_modules/console-browserify/CHANGELOG.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# console-browserify change log
-
-All notable changes to this project will be documented in this file.
-
-This project adheres to [Semantic Versioning](http://semver.org/).
-
-## 1.2.0
-* Move to the browserify org.
-* Remove `date-now` dependency. ([@jakepusateri](https://github.com/jakepusateri) in [#10](https://github.com/browserify/console-browserify/pull/10))
-* Fix memory leak in `time`/`timeEnd`. ([@maxnordlund](https://github.com/maxnordlund) in [#11](https://github.com/browserify/console-browserify/pull/11))
diff --git a/node_modules/console-browserify/LICENCE b/node_modules/console-browserify/LICENCE
deleted file mode 100644
index a23e08a..0000000
--- a/node_modules/console-browserify/LICENCE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2012 Raynos.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE. \ No newline at end of file
diff --git a/node_modules/console-browserify/README.md b/node_modules/console-browserify/README.md
deleted file mode 100644
index 5b75cbf..0000000
--- a/node_modules/console-browserify/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# console-browserify [![Build Status](https://travis-ci.org/browserify/console-browserify.png?branch=master)](https://travis-ci.org/browserify/console-browserify)
-
-Emulate console for all the browsers
-
-## Install
-
-You usually do not have to install `console-browserify` yourself! If your code runs in Node.js, `console` is built in. If your code runs in the browser, bundlers like [browserify](https://github.com/browserify/browserify) or [webpack](https://github.com/webpack/webpack) also include the `console-browserify` module when you do `require('console')`.
-
-But if none of those apply, with npm do:
-
-```
-npm install console-browserify
-```
-
-## Usage
-
-```js
-var console = require("console")
-// Or when manually using console-browserify directly:
-// var console = require("console-browserify")
-
-console.log("hello world!")
-```
-
-## API
-
-See the [Node.js Console docs](https://nodejs.org/api/console.html). `console-browserify` does not support creating new `Console` instances and does not support the Inspector-only methods.
-
-## Contributing
-
-PRs are very welcome! The main way to contribute to `console-browserify` is by porting features, bugfixes and tests from Node.js. Ideally, code contributions to this module are copy-pasted from Node.js and transpiled to ES5, rather than reimplemented from scratch. Matching the Node.js code as closely as possible makes maintenance simpler when new changes land in Node.js.
-This module intends to provide exactly the same API as Node.js, so features that are not available in the core `console` module will not be accepted. Feature requests should instead be directed at [nodejs/node](https://github.com/nodejs/node) and will be added to this module once they are implemented in Node.js.
-
-If there is a difference in behaviour between Node.js's `console` module and this module, please open an issue!
-
-## Contributors
-
- - Raynos
-
-## License
-
-[MIT](./LICENSE)
diff --git a/node_modules/console-browserify/index.js b/node_modules/console-browserify/index.js
deleted file mode 100644
index 775f0d7..0000000
--- a/node_modules/console-browserify/index.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/*global window, global*/
-var util = require("util")
-var assert = require("assert")
-function now() { return new Date().getTime() }
-
-var slice = Array.prototype.slice
-var console
-var times = {}
-
-if (typeof global !== "undefined" && global.console) {
- console = global.console
-} else if (typeof window !== "undefined" && window.console) {
- console = window.console
-} else {
- console = {}
-}
-
-var functions = [
- [log, "log"],
- [info, "info"],
- [warn, "warn"],
- [error, "error"],
- [time, "time"],
- [timeEnd, "timeEnd"],
- [trace, "trace"],
- [dir, "dir"],
- [consoleAssert, "assert"]
-]
-
-for (var i = 0; i < functions.length; i++) {
- var tuple = functions[i]
- var f = tuple[0]
- var name = tuple[1]
-
- if (!console[name]) {
- console[name] = f
- }
-}
-
-module.exports = console
-
-function log() {}
-
-function info() {
- console.log.apply(console, arguments)
-}
-
-function warn() {
- console.log.apply(console, arguments)
-}
-
-function error() {
- console.warn.apply(console, arguments)
-}
-
-function time(label) {
- times[label] = now()
-}
-
-function timeEnd(label) {
- var time = times[label]
- if (!time) {
- throw new Error("No such label: " + label)
- }
-
- delete times[label]
- var duration = now() - time
- console.log(label + ": " + duration + "ms")
-}
-
-function trace() {
- var err = new Error()
- err.name = "Trace"
- err.message = util.format.apply(null, arguments)
- console.error(err.stack)
-}
-
-function dir(object) {
- console.log(util.inspect(object) + "\n")
-}
-
-function consoleAssert(expression) {
- if (!expression) {
- var arr = slice.call(arguments, 1)
- assert.ok(false, util.format.apply(null, arr))
- }
-}
diff --git a/node_modules/console-browserify/package.json b/node_modules/console-browserify/package.json
deleted file mode 100644
index 5be2d79..0000000
--- a/node_modules/console-browserify/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "_from": "console-browserify@^1.1.0",
- "_id": "console-browserify@1.2.0",
- "_inBundle": false,
- "_integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==",
- "_location": "/console-browserify",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "console-browserify@^1.1.0",
- "name": "console-browserify",
- "escapedName": "console-browserify",
- "rawSpec": "^1.1.0",
- "saveSpec": null,
- "fetchSpec": "^1.1.0"
- },
- "_requiredBy": [
- "/node-libs-browser"
- ],
- "_resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz",
- "_shasum": "67063cef57ceb6cf4993a2ab3a55840ae8c49336",
- "_spec": "console-browserify@^1.1.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/node-libs-browser",
- "author": {
- "name": "Raynos",
- "email": "raynos2@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/browserify/console-browserify/issues",
- "email": "raynos2@gmail.com"
- },
- "bundleDependencies": false,
- "contributors": [
- {
- "name": "Raynos"
- }
- ],
- "deprecated": false,
- "description": "Emulate console for all the browsers",
- "devDependencies": {
- "jsonify": "0.0.0",
- "run-browser": "^1.3.0",
- "tap-dot": "^0.2.1",
- "tap-spec": "^0.1.8",
- "tape": "^2.12.3"
- },
- "homepage": "https://github.com/browserify/console-browserify",
- "keywords": [],
- "licenses": [
- {
- "type": "MIT",
- "url": "http://github.com/browserify/console-browserify/raw/master/LICENSE"
- }
- ],
- "main": "index",
- "name": "console-browserify",
- "repository": {
- "type": "git",
- "url": "git://github.com/browserify/console-browserify.git"
- },
- "scripts": {
- "browser": "run-browser test/index.js",
- "build": "browserify test/index.js -o test/static/bundle.js",
- "cover": "istanbul cover --report none --print detail ./test/index.js",
- "dot": "node ./test/index.js | tap-dot",
- "phantom": "run-browser test/index.js -b | tap-spec",
- "start": "node ./index.js",
- "test": "node ./test/index.js | tap-spec",
- "testem": "testem",
- "view-cover": "istanbul report html && google-chrome ./coverage/index.html"
- },
- "testling": {
- "files": "test/index.js",
- "browsers": [
- "ie/8..latest",
- "firefox/16..latest",
- "firefox/nightly",
- "chrome/22..latest",
- "chrome/canary",
- "opera/12..latest",
- "opera/next",
- "safari/5.1..latest",
- "ipad/6.0..latest",
- "iphone/6.0..latest",
- "android-browser/4.2..latest"
- ]
- },
- "version": "1.2.0"
-}
diff --git a/node_modules/console-browserify/test/index.js b/node_modules/console-browserify/test/index.js
deleted file mode 100644
index 26dfaad..0000000
--- a/node_modules/console-browserify/test/index.js
+++ /dev/null
@@ -1,67 +0,0 @@
-var console = require("../index")
-var test = require("tape")
-
-if (typeof window !== "undefined" && !window.JSON) {
- window.JSON = require("jsonify")
-}
-
-test("console has expected methods", function (assert) {
- assert.ok(console.log)
- assert.ok(console.info)
- assert.ok(console.warn)
- assert.ok(console.dir)
- assert.ok(console.time, "time")
- assert.ok(console.timeEnd, "timeEnd")
- assert.ok(console.trace, "trace")
- assert.ok(console.assert)
-
- assert.end()
-})
-
-test("invoke console.log", function (assert) {
- console.log("test-log")
-
- assert.end()
-})
-
-test("invoke console.info", function (assert) {
- console.info("test-info")
-
- assert.end()
-})
-
-test("invoke console.warn", function (assert) {
- console.warn("test-warn")
-
- assert.end()
-})
-
-test("invoke console.time", function (assert) {
- console.time("label")
-
- assert.end()
-})
-
-test("invoke console.trace", function (assert) {
- console.trace("test-trace")
-
- assert.end()
-})
-
-test("invoke console.assert", function (assert) {
- console.assert(true)
-
- assert.end()
-})
-
-test("invoke console.dir", function (assert) {
- console.dir("test-dir")
-
- assert.end()
-})
-
-test("invoke console.timeEnd", function (assert) {
- console.timeEnd("label")
-
- assert.end()
-})
diff --git a/node_modules/console-browserify/test/static/index.html b/node_modules/console-browserify/test/static/index.html
deleted file mode 100644
index dd55012..0000000
--- a/node_modules/console-browserify/test/static/index.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<!doctype html>
-<html>
-<head>
- <meta http-equiv="x-ua-compatible" content="IE=8" >
- <title>TAPE Example</title>
- <script src="/testem.js"></script>
- <script src="test-adapter.js"></script>
- <script src="bundle.js"></script>
-</head>
-<body>
-</body>
-</html>
diff --git a/node_modules/console-browserify/test/static/test-adapter.js b/node_modules/console-browserify/test/static/test-adapter.js
deleted file mode 100644
index 8b4c12d..0000000
--- a/node_modules/console-browserify/test/static/test-adapter.js
+++ /dev/null
@@ -1,53 +0,0 @@
-(function () {
- var Testem = window.Testem
- var regex = /^((?:not )?ok) (\d+) (.+)$/
-
- Testem.useCustomAdapter(tapAdapter)
-
- function tapAdapter(socket){
- var results = {
- failed: 0
- , passed: 0
- , total: 0
- , tests: []
- }
-
- socket.emit('tests-start')
-
- Testem.handleConsoleMessage = function(msg){
- var m = msg.match(regex)
- if (m) {
- var passed = m[1] === 'ok'
- var test = {
- passed: passed ? 1 : 0,
- failed: passed ? 0 : 1,
- total: 1,
- id: m[2],
- name: m[3],
- items: []
- }
-
- if (passed) {
- results.passed++
- } else {
- console.error("failure", m)
-
- results.failed++
- }
-
- results.total++
-
- // console.log("emitted test", test)
- socket.emit('test-result', test)
- results.tests.push(test)
- } else if (msg === '# ok' || msg.match(/^# tests \d+/)){
- // console.log("emitted all test")
- socket.emit('all-test-results', results)
- }
-
- // return false if you want to prevent the console message from
- // going to the console
- // return false
- }
- }
-}())