aboutsummaryrefslogtreecommitdiff
path: root/node_modules/loose-envify
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/loose-envify
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
downloadwallet-core-d1291f67551c58168af43698a359cb5ddfd266b0.tar.xz
node_modules
Diffstat (limited to 'node_modules/loose-envify')
-rw-r--r--node_modules/loose-envify/LICENSE (renamed from node_modules/loose-envify/node_modules/js-tokens/LICENSE)2
-rwxr-xr-xnode_modules/loose-envify/cli.js1
-rw-r--r--node_modules/loose-envify/custom.js2
-rw-r--r--node_modules/loose-envify/index.js2
-rw-r--r--node_modules/loose-envify/node_modules/js-tokens/changelog.md71
-rw-r--r--node_modules/loose-envify/node_modules/js-tokens/index.js19
-rw-r--r--node_modules/loose-envify/node_modules/js-tokens/package.json100
-rw-r--r--node_modules/loose-envify/node_modules/js-tokens/readme.md217
-rw-r--r--node_modules/loose-envify/package.json97
9 files changed, 22 insertions, 489 deletions
diff --git a/node_modules/loose-envify/node_modules/js-tokens/LICENSE b/node_modules/loose-envify/LICENSE
index c9a4e1bb4..fbafb4875 100644
--- a/node_modules/loose-envify/node_modules/js-tokens/LICENSE
+++ b/node_modules/loose-envify/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2014, 2015, 2016 Simon Lydell
+Copyright (c) 2015 Andres Suarez <zertosh@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/node_modules/loose-envify/cli.js b/node_modules/loose-envify/cli.js
index 02a7f1799..c0b63cb1d 100755
--- a/node_modules/loose-envify/cli.js
+++ b/node_modules/loose-envify/cli.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+'use strict';
var looseEnvify = require('./');
var fs = require('fs');
diff --git a/node_modules/loose-envify/custom.js b/node_modules/loose-envify/custom.js
index 3a8714836..6389bfac5 100644
--- a/node_modules/loose-envify/custom.js
+++ b/node_modules/loose-envify/custom.js
@@ -1,2 +1,4 @@
// envify compatibility
+'use strict';
+
module.exports = require('./loose-envify');
diff --git a/node_modules/loose-envify/index.js b/node_modules/loose-envify/index.js
index 23a327920..8cd8305dd 100644
--- a/node_modules/loose-envify/index.js
+++ b/node_modules/loose-envify/index.js
@@ -1 +1,3 @@
+'use strict';
+
module.exports = require('./loose-envify')(process.env);
diff --git a/node_modules/loose-envify/node_modules/js-tokens/changelog.md b/node_modules/loose-envify/node_modules/js-tokens/changelog.md
deleted file mode 100644
index 7bc3f5437..000000000
--- a/node_modules/loose-envify/node_modules/js-tokens/changelog.md
+++ /dev/null
@@ -1,71 +0,0 @@
-### Version 1.0.3 (2016-03-27) ###
-
-- Improved: Made the regex ever so slightly smaller.
-- Updated: The readme.
-
-
-### Version 1.0.2 (2015-10-18) ###
-
-- Improved: Limited npm package contents for a smaller download. Thanks to
- @zertosh!
-
-
-### Version 1.0.1 (2015-06-20) ###
-
-- Fixed: Declared an undeclared variable.
-
-
-### Version 1.0.0 (2015-02-26) ###
-
-- Changed: Merged the 'operator' and 'punctuation' types into 'punctuator'. That
- type is now equivalent to the Punctuator token in the ECMAScript
- specification. (Backwards-incompatible change.)
-- Fixed: A `-` followed by a number is now correctly matched as a punctuator
- followed by a number. It used to be matched as just a number, but there is no
- such thing as negative number literals. (Possibly backwards-incompatible
- change.)
-
-
-### Version 0.4.1 (2015-02-21) ###
-
-- Added: Support for the regex `u` flag.
-
-
-### Version 0.4.0 (2015-02-21) ###
-
-- Improved: `jsTokens.matchToToken` performance.
-- Added: Support for octal and binary number literals.
-- Added: Support for template strings.
-
-
-### Version 0.3.1 (2015-01-06) ###
-
-- Fixed: Support for unicode spaces. They used to be allowed in names (which is
- very confusing), and some unicode newlines were wrongly allowed in strings and
- regexes.
-
-
-### Version 0.3.0 (2014-12-19) ###
-
-- Changed: The `jsTokens.names` array has been replaced with the
- `jsTokens.matchToToken` function. The capturing groups of `jsTokens` are no
- longer part of the public API; instead use said function. See this [gist] for
- an example. (Backwards-incompatible change.)
-- Changed: The empty string is now considered an “invalid” token, instead an
- “empty” token (its own group). (Backwards-incompatible change.)
-- Removed: component support. (Backwards-incompatible change.)
-
-[gist]: https://gist.github.com/lydell/be49dbf80c382c473004
-
-
-### Version 0.2.0 (2014-06-19) ###
-
-- Changed: Match ES6 function arrows (`=>`) as an operator, instead of its own
- category (“functionArrow”), for simplicity. (Backwards-incompatible change.)
-- Added: ES6 splats (`...`) are now matched as an operator (instead of three
- punctuations). (Backwards-incompatible change.)
-
-
-### Version 0.1.0 (2014-03-08) ###
-
-- Initial release.
diff --git a/node_modules/loose-envify/node_modules/js-tokens/index.js b/node_modules/loose-envify/node_modules/js-tokens/index.js
deleted file mode 100644
index a13b4a260..000000000
--- a/node_modules/loose-envify/node_modules/js-tokens/index.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2014, 2015, 2016 Simon Lydell
-// X11 (“MIT”) Licensed. (See LICENSE.)
-
-// This regex comes from regex.coffee, and is inserted here by generate-index.js
-// (run `npm run build`).
-module.exports = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]{1,6}\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-*\/%&|^]|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g
-
-module.exports.matchToToken = function(match) {
- var token = {type: "invalid", value: match[0]}
- if (match[ 1]) token.type = "string" , token.closed = !!(match[3] || match[4])
- else if (match[ 5]) token.type = "comment"
- else if (match[ 6]) token.type = "comment", token.closed = !!match[7]
- else if (match[ 8]) token.type = "regex"
- else if (match[ 9]) token.type = "number"
- else if (match[10]) token.type = "name"
- else if (match[11]) token.type = "punctuator"
- else if (match[12]) token.type = "whitespace"
- return token
-}
diff --git a/node_modules/loose-envify/node_modules/js-tokens/package.json b/node_modules/loose-envify/node_modules/js-tokens/package.json
deleted file mode 100644
index 5c0b7e3d2..000000000
--- a/node_modules/loose-envify/node_modules/js-tokens/package.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "_args": [
- [
- {
- "raw": "js-tokens@^1.0.1",
- "scope": null,
- "escapedName": "js-tokens",
- "name": "js-tokens",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "/home/dold/repos/taler/wallet-webex/node_modules/loose-envify"
- ]
- ],
- "_from": "js-tokens@>=1.0.1 <2.0.0",
- "_id": "js-tokens@1.0.3",
- "_inCache": true,
- "_location": "/loose-envify/js-tokens",
- "_nodeVersion": "5.9.0",
- "_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/js-tokens-1.0.3.tgz_1459075945273_0.8152586803771555"
- },
- "_npmUser": {
- "name": "lydell",
- "email": "simon.lydell@gmail.com"
- },
- "_npmVersion": "3.7.3",
- "_phantomChildren": {},
- "_requested": {
- "raw": "js-tokens@^1.0.1",
- "scope": null,
- "escapedName": "js-tokens",
- "name": "js-tokens",
- "rawSpec": "^1.0.1",
- "spec": ">=1.0.1 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/loose-envify"
- ],
- "_resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-1.0.3.tgz",
- "_shasum": "14e56eb68c8f1a92c43d59f5014ec29dc20f2ae1",
- "_shrinkwrap": null,
- "_spec": "js-tokens@^1.0.1",
- "_where": "/home/dold/repos/taler/wallet-webex/node_modules/loose-envify",
- "author": {
- "name": "Simon Lydell"
- },
- "bugs": {
- "url": "https://github.com/lydell/js-tokens/issues"
- },
- "dependencies": {},
- "description": "A regex that tokenizes JavaScript.",
- "devDependencies": {
- "coffee-script": "~1.10.0",
- "esprima": "^2.3.0",
- "everything.js": "^1.0.3",
- "mocha": "^2.2.5"
- },
- "directories": {},
- "dist": {
- "shasum": "14e56eb68c8f1a92c43d59f5014ec29dc20f2ae1",
- "tarball": "https://registry.npmjs.org/js-tokens/-/js-tokens-1.0.3.tgz"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "8fef3fe3b80636bc885bbfc9fa0012a4a2956352",
- "homepage": "https://github.com/lydell/js-tokens#readme",
- "keywords": [
- "JavaScript",
- "js",
- "token",
- "tokenize",
- "regex"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "name": "lydell",
- "email": "simon.lydell@gmail.com"
- }
- ],
- "name": "js-tokens",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/lydell/js-tokens.git"
- },
- "scripts": {
- "build": "node generate-index.js",
- "dev": "npm run build && npm test",
- "esprima-compare": "node esprima-compare ./index.js everything.js/es5.js",
- "test": "mocha --ui tdd"
- },
- "version": "1.0.3"
-}
diff --git a/node_modules/loose-envify/node_modules/js-tokens/readme.md b/node_modules/loose-envify/node_modules/js-tokens/readme.md
deleted file mode 100644
index eb5a4db58..000000000
--- a/node_modules/loose-envify/node_modules/js-tokens/readme.md
+++ /dev/null
@@ -1,217 +0,0 @@
-Overview [![Build Status](https://travis-ci.org/lydell/js-tokens.png?branch=master)](https://travis-ci.org/lydell/js-tokens)
-========
-
-A regex that tokenizes JavaScript.
-
-```js
-var jsTokens = require("js-tokens")
-
-var jsString = "var foo=opts.foo;\n..."
-
-jsString.match(jsTokens)
-// ["var", " ", "foo", "=", "opts", ".", "foo", ";", "\n", ...]
-```
-
-
-Installation
-============
-
-`npm install js-tokens`
-
-```js
-var jsTokens = require("js-tokens")
-```
-
-
-Usage
-=====
-
-### `jsTokens` ###
-
-A regex with the `g` flag that matches JavaScript tokens.
-
-The regex _always_ matches, even invalid JavaScript and the empty string.
-
-The next match is always directly after the previous.
-
-### `var token = jsTokens.matchToToken(match)` ###
-
-Takes a `match` returned by `jsTokens.exec(string)`, and returns a `{type:
-String, value: String}` object. The following types are available:
-
-- string
-- comment
-- regex
-- number
-- name
-- punctuator
-- whitespace
-- invalid
-
-Multi-line comments and strings also have a `closed` property indicating if the
-token was closed or not (see below).
-
-Comments and strings both come in several flavors. To distinguish them, check if
-the token starts with `//`, `/*`, `'`, `"` or `` ` ``.
-
-Names are ECMAScript IdentifierNames, that is, including both identifiers and
-keywords. You may use [is-keyword-js] to tell them apart.
-
-Whitespace includes both line terminators and other whitespace.
-
-For example usage, please see this [gist].
-
-[is-keyword-js]: https://github.com/crissdev/is-keyword-js
-[gist]: https://gist.github.com/lydell/be49dbf80c382c473004
-
-
-ECMAScript support
-==================
-
-The intention is to always support the latest stable ECMAScript version.
-
-If adding support for a newer version requires changes, a new version with a
-major verion bump will be released.
-
-Currently, [ECMAScript 2015] is supported.
-
-[ECMAScript 2015]: http://www.ecma-international.org/ecma-262/6.0/index.html
-
-
-Invalid code handling
-=====================
-
-Unterminated strings are still matched as strings. JavaScript strings cannot
-contain (unescaped) newlines, so unterminated strings simply end at the end of
-the line. Unterminated template strings can contain unescaped newlines, though,
-so they go on to the end of input.
-
-Unterminated multi-line comments are also still matched as comments. They
-simply go on to the end of the input.
-
-Unterminated regex literals are likely matched as division and whatever is
-inside the regex.
-
-Invalid ASCII characters have their own capturing group.
-
-Invalid non-ASCII characters are treated as names, to simplify the matching of
-names (except unicode spaces which are treated as whitespace).
-
-Regex literals may contain invalid regex syntax. They are still matched as
-regex literals. They may also contain repeated regex flags, to keep the regex
-simple.
-
-Strings may contain invalid escape sequences.
-
-
-Limitations
-===========
-
-Tokenizing JavaScript using regexes—in fact, _one single regex_—won’t be
-perfect. But that’s not the point either.
-
-You may compare jsTokens with [esprima] by using `esprima-compare.js`.
-See `npm run esprima-compare`!
-
-[esprima]: http://esprima.org/
-
-### Template string interpolation ###
-
-Template strings are matched as single tokens, from the starting `` ` `` to the
-ending `` ` ``, including interpolations (whose tokens are not matched
-individually).
-
-Matching template string interpolations requires recursive balancing of `{` and
-`}`—something that JavaScript regexes cannot do. Only one level of nesting is
-supported.
-
-### Division and regex literals collision ###
-
-Consider this example:
-
-```js
-var g = 9.82
-var number = bar / 2/g
-
-var regex = / 2/g
-```
-
-A human can easily understand that in the `number` line we’re dealing with
-division, and in the `regex` line we’re dealing with a regex literal. How come?
-Because humans can look at the whole code to put the `/` characters in context.
-A JavaScript regex cannot. It only sees forwards.
-
-When the `jsTokens` regex scans throught the above, it will see the following
-at the end of both the `number` and `regex` rows:
-
-```js
-/ 2/g
-```
-
-It is then impossible to know if that is a regex literal, or part of an
-expression dealing with division.
-
-Here is a similar case:
-
-```js
-foo /= 2/g
-foo(/= 2/g)
-```
-
-The first line divides the `foo` variable with `2/g`. The second line calls the
-`foo` function with the regex literal `/= 2/g`. Again, since `jsTokens` only
-sees forwards, it cannot tell the two cases apart.
-
-There are some cases where we _can_ tell division and regex literals apart,
-though.
-
-First off, we have the simple cases where there’s only one slash in the line:
-
-```js
-var foo = 2/g
-foo /= 2
-```
-
-Regex literals cannot contain newlines, so the above cases are correctly
-identified as division. Things are only problematic when there are more than
-one non-comment slash in a single line.
-
-Secondly, not every character is a valid regex flag.
-
-```js
-var number = bar / 2/e
-```
-
-The above example is also correctly identified as division, because `e` is not a
-valid regex flag. I initially wanted to future-proof by allowing `[a-zA-Z]*`
-(any letter) as flags, but it is not worth it since it increases the amount of
-ambigous cases. So only the standard `g`, `m`, `i`, `y` and `u` flags are
-allowed. This means that the above example will be identified as division as
-long as you don’t rename the `e` variable to some permutation of `gmiyu` 1 to 5
-characters long.
-
-Lastly, we can look _forward_ for information.
-
-- If the token following what looks like a regex literal is not valid after a
- regex literal, but is valid in a division expression, then the regex literal
- is treated as division instead. For example, a flagless regex cannot be
- followed by a string, number or name, but all of those three can be the
- denominator of a division.
-- Generally, if what looks like a regex literal is followed by an operator, the
- regex literal is treated as division instead. This is because regexes are
- seldomly used with operators (such as `+`, `*`, `&&` and `==`), but division
- could likely be part of such an expression.
-
-Please consult the regex source and the test cases for precise information on
-when regex or division is matched (should you need to know). In short, you
-could sum it up as:
-
-If the end of a statement looks like a regex literal (even if it isn’t), it
-will be treated as one. Otherwise it should work as expected (if you write sane
-code).
-
-
-License
-=======
-
-[The X11 (“MIT”) License](LICENSE).
diff --git a/node_modules/loose-envify/package.json b/node_modules/loose-envify/package.json
index a8c5726bb..9de13cf1e 100644
--- a/node_modules/loose-envify/package.json
+++ b/node_modules/loose-envify/package.json
@@ -1,76 +1,7 @@
{
- "_args": [
- [
- {
- "raw": "loose-envify@^1.0.0",
- "scope": null,
- "escapedName": "loose-envify",
- "name": "loose-envify",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/home/dold/repos/taler/wallet-webex/node_modules/invariant"
- ]
- ],
- "_from": "loose-envify@>=1.0.0 <2.0.0",
- "_id": "loose-envify@1.2.0",
- "_inCache": true,
- "_location": "/loose-envify",
- "_nodeVersion": "6.1.0",
- "_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/loose-envify-1.2.0.tgz_1463284327398_0.7049096294213086"
- },
- "_npmUser": {
- "name": "zertosh",
- "email": "zertosh@gmail.com"
- },
- "_npmVersion": "3.8.6",
- "_phantomChildren": {},
- "_requested": {
- "raw": "loose-envify@^1.0.0",
- "scope": null,
- "escapedName": "loose-envify",
- "name": "loose-envify",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/invariant"
- ],
- "_resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.2.0.tgz",
- "_shasum": "69a65aad3de542cf4ee0f4fe74e8e33c709ccb0f",
- "_shrinkwrap": null,
- "_spec": "loose-envify@^1.0.0",
- "_where": "/home/dold/repos/taler/wallet-webex/node_modules/invariant",
- "author": {
- "name": "Andres Suarez",
- "email": "zertosh@gmail.com"
- },
- "bin": {
- "loose-envify": "cli.js"
- },
- "bugs": {
- "url": "https://github.com/zertosh/loose-envify/issues"
- },
- "dependencies": {
- "js-tokens": "^1.0.1"
- },
+ "name": "loose-envify",
+ "version": "1.3.0",
"description": "Fast (and loose) selective `process.env` replacer using js-tokens instead of an AST",
- "devDependencies": {
- "browserify": "^11.0.1",
- "envify": "^3.4.0",
- "tap": "^1.4.0"
- },
- "directories": {},
- "dist": {
- "shasum": "69a65aad3de542cf4ee0f4fe74e8e33c709ccb0f",
- "tarball": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.2.0.tgz"
- },
- "gitHead": "58a4c7641e8c8569df3e7cea72b398a9cb1cf158",
- "homepage": "https://github.com/zertosh/loose-envify",
"keywords": [
"environment",
"variables",
@@ -80,16 +11,13 @@
"source",
"configuration"
],
+ "homepage": "https://github.com/zertosh/loose-envify",
"license": "MIT",
- "maintainers": [
- {
- "name": "zertosh",
- "email": "zertosh@gmail.com"
- }
- ],
- "name": "loose-envify",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
+ "author": "Andres Suarez <zertosh@gmail.com>",
+ "main": "index.js",
+ "bin": {
+ "loose-envify": "cli.js"
+ },
"repository": {
"type": "git",
"url": "git://github.com/zertosh/loose-envify.git"
@@ -97,5 +25,12 @@
"scripts": {
"test": "tap test/*.js"
},
- "version": "1.2.0"
+ "dependencies": {
+ "js-tokens": "^2.0.0"
+ },
+ "devDependencies": {
+ "browserify": "^13.1.1",
+ "envify": "^3.4.0",
+ "tap": "^8.0.0"
+ }
}