parse-node-args
Advanced tools
+21
| MIT License | ||
| Copyright (c) 2018 eBay Inc. and contributors | ||
| 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. |
+11
-0
@@ -6,2 +6,13 @@ # Change Log | ||
| ## [1.1.2](https://github.com/marko-js/utils/tree/master/packages/parse-node-args/compare/parse-node-args@1.1.1...parse-node-args@1.1.2) (2018-10-16) | ||
| ### Bug Fixes | ||
| * upgrade deps ([8abfad1](https://github.com/marko-js/utils/tree/master/packages/parse-node-args/commit/8abfad1)) | ||
| <a name="1.1.1"></a> | ||
@@ -8,0 +19,0 @@ ## [1.1.1](https://github.com/marko-js/utils/tree/master/packages/parse-node-args/compare/parse-node-args@1.1.0...parse-node-args@1.1.1) (2018-06-04) |
+3
-3
@@ -5,9 +5,9 @@ "use strict"; | ||
| exports.NODE_FLAGS = void 0; | ||
| var NODE_FLAGS = new RegExp(["abort-on-uncaught-exception", "enable-fips", "experimental-modules", "experimental-vm-modules", "force-fips", "icu-data-dir=.+", "inspect-brk(=.+)?", "inspect-port=.+", "inspect(=.+)?", "napi-modules", "no-deprecation", "no-force-async-hooks-checks", "no-warnings", "openssl-config=.+", "pending-deprecation", "preserve-symlinks", "prof-process", "redirect-warnings=.+", "throw-deprecation", "tls-cipher-list=.+", "trace-deprecation", "trace-event-categories", "trace-event-file-pattern", "trace-events-enabled", "trace-sync-io", "trace-warnings", "track-heap-objects", "use-bundled-ca", "use-openssl-ca", "v8-options", "v8-pool-size=.+", "zero-fill-buffers", "harmony.*", ["r .+", "require .+"]].map(function (flag) { | ||
| const NODE_FLAGS = new RegExp(["abort-on-uncaught-exception", "enable-fips", "experimental-modules", "experimental-vm-modules", "force-fips", "icu-data-dir=.+", "inspect-brk(=.+)?", "inspect-port=.+", "inspect(=.+)?", "napi-modules", "no-deprecation", "no-force-async-hooks-checks", "no-warnings", "openssl-config=.+", "pending-deprecation", "preserve-symlinks", "prof-process", "redirect-warnings=.+", "throw-deprecation", "tls-cipher-list=.+", "trace-deprecation", "trace-event-categories", "trace-event-file-pattern", "trace-events-enabled", "trace-sync-io", "trace-warnings", "track-heap-objects", "use-bundled-ca", "use-openssl-ca", "v8-options", "v8-pool-size=.+", "zero-fill-buffers", "harmony.*", ["r .+", "require .+"]].map(flag => { | ||
| if (Array.isArray(flag)) { | ||
| return "-" + flag[0] + "|--" + flag[1]; | ||
| return `-${flag[0]}|--${flag[1]}`; | ||
| } | ||
| return "--" + flag; | ||
| return `--${flag}`; | ||
| }).join("|")); | ||
| exports.NODE_FLAGS = NODE_FLAGS; |
+5
-22
| "use strict"; | ||
| var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
| exports.__esModule = true; | ||
| exports.default = void 0; | ||
| var _getIterator2 = _interopRequireDefault(require("@babel/runtime/core-js/get-iterator")); | ||
| var _flags = require("./flags"); | ||
@@ -19,19 +15,6 @@ | ||
| function parse(args) { | ||
| var cliArgs = []; | ||
| var nodeArgs = []; | ||
| const cliArgs = []; | ||
| const nodeArgs = []; | ||
| for (var _iterator = args, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator2.default)(_iterator);;) { | ||
| var _ref; | ||
| if (_isArray) { | ||
| if (_i >= _iterator.length) break; | ||
| _ref = _iterator[_i++]; | ||
| } else { | ||
| _i = _iterator.next(); | ||
| if (_i.done) break; | ||
| _ref = _i.value; | ||
| } | ||
| var arg = _ref; | ||
| for (const arg of args) { | ||
| if (_flags.NODE_FLAGS.test(arg)) { | ||
@@ -45,4 +28,4 @@ nodeArgs.push(arg); | ||
| return { | ||
| cliArgs: cliArgs, | ||
| nodeArgs: nodeArgs | ||
| cliArgs, | ||
| nodeArgs | ||
| }; | ||
@@ -49,0 +32,0 @@ } |
+4
-3
| { | ||
| "name": "parse-node-args", | ||
| "description": "Extract node cli options from a list of flags.", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "author": "Dylan Piercey <dpiercey@ebay.com>", | ||
@@ -11,3 +11,3 @@ "browser": { | ||
| "dependencies": { | ||
| "@babel/runtime": "7.0.0-beta.44" | ||
| "@babel/runtime": "7.1.2" | ||
| }, | ||
@@ -30,3 +30,4 @@ "files": [ | ||
| "url": "https://github.com/marko-js/utils/tree/master/packages/parse-node-args" | ||
| } | ||
| }, | ||
| "gitHead": "a489fa8003e100a7cdfdc7cd2d16533afb3f17f4" | ||
| } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4915
21.3%6
20%0
-100%38
-24%+ Added
+ Added
- Removed
- Removed
- Removed
Updated