step-node-agent 3.22.4 → 3.22.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/call-bind/.eslintrc +0 -1
- package/node_modules/call-bind/.nycrc +0 -4
- package/node_modules/call-bind/CHANGELOG.md +35 -0
- package/node_modules/call-bind/README.md +63 -1
- package/node_modules/call-bind/index.js +10 -13
- package/node_modules/call-bind/package.json +33 -23
- package/node_modules/call-bind/test/callBound.js +0 -1
- package/node_modules/call-bind/test/index.js +18 -4
- package/node_modules/define-data-property/.eslintrc +24 -0
- package/node_modules/define-data-property/.github/FUNDING.yml +12 -0
- package/node_modules/define-data-property/.nycrc +13 -0
- package/node_modules/define-data-property/CHANGELOG.md +41 -0
- package/node_modules/define-data-property/LICENSE +21 -0
- package/node_modules/define-data-property/README.md +67 -0
- package/node_modules/define-data-property/index.d.ts +3 -0
- package/node_modules/define-data-property/index.d.ts.map +1 -0
- package/node_modules/define-data-property/index.js +68 -0
- package/node_modules/define-data-property/package.json +113 -0
- package/node_modules/define-data-property/test/index.js +392 -0
- package/node_modules/define-data-property/tsconfig.json +59 -0
- package/node_modules/function-bind/.eslintrc +11 -5
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/README.md +25 -27
- package/node_modules/function-bind/implementation.js +44 -12
- package/node_modules/function-bind/package.json +38 -14
- package/node_modules/get-intrinsic/CHANGELOG.md +8 -0
- package/node_modules/get-intrinsic/index.js +1 -1
- package/node_modules/get-intrinsic/package.json +11 -11
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +25 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/index.js +16 -0
- package/node_modules/gopd/package.json +71 -0
- package/node_modules/gopd/test/index.js +35 -0
- package/node_modules/has-property-descriptors/.eslintrc +13 -0
- package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
- package/node_modules/has-property-descriptors/.nycrc +9 -0
- package/node_modules/has-property-descriptors/CHANGELOG.md +27 -0
- package/node_modules/has-property-descriptors/LICENSE +21 -0
- package/node_modules/has-property-descriptors/README.md +43 -0
- package/node_modules/has-property-descriptors/index.js +33 -0
- package/node_modules/has-property-descriptors/package.json +77 -0
- package/node_modules/has-property-descriptors/test/index.js +57 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +20 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.d.ts.map +1 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +49 -0
- package/node_modules/is-core-module/CHANGELOG.md +7 -0
- package/node_modules/is-core-module/index.js +2 -2
- package/node_modules/is-core-module/package.json +4 -4
- package/node_modules/object-inspect/CHANGELOG.md +19 -0
- package/node_modules/object-inspect/index.js +8 -0
- package/node_modules/object-inspect/package.json +8 -6
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/punycode/README.md +23 -1
- package/node_modules/punycode/package.json +3 -3
- package/node_modules/punycode/punycode.es6.js +1 -1
- package/node_modules/punycode/punycode.js +1 -1
- package/node_modules/resolve/.eslintrc +1 -1
- package/node_modules/resolve/package.json +4 -3
- package/node_modules/resolve/test/resolver/multirepo/package.json +1 -1
- package/node_modules/resolve/test/resolver.js +4 -2
- package/node_modules/resolve/test/resolver_sync.js +9 -5
- package/node_modules/set-function-length/.eslintrc +27 -0
- package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
- package/node_modules/set-function-length/.nycrc +13 -0
- package/node_modules/set-function-length/CHANGELOG.md +41 -0
- package/node_modules/set-function-length/LICENSE +21 -0
- package/node_modules/set-function-length/README.md +56 -0
- package/node_modules/set-function-length/env.js +19 -0
- package/node_modules/set-function-length/index.js +41 -0
- package/node_modules/set-function-length/package.json +84 -0
- package/node_modules/sshpk/bin/sshpk-conv +6 -6
- package/node_modules/sshpk/lib/formats/pkcs8.js +24 -12
- package/node_modules/sshpk/package.json +2 -3
- package/package.json +1 -1
- package/node_modules/function-bind/.editorconfig +0 -20
- package/node_modules/function-bind/.jscs.json +0 -176
- package/node_modules/function-bind/.npmignore +0 -22
- package/node_modules/function-bind/.travis.yml +0 -168
- package/node_modules/has/LICENSE-MIT +0 -22
- package/node_modules/has/README.md +0 -18
- package/node_modules/has/package.json +0 -45
- package/node_modules/has/src/index.js +0 -8
- package/node_modules/has/test/index.js +0 -16
- package/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
- package/node_modules/resolve/test/resolver/malformed_package_json/package.json +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var GetIntrinsic = require('get-intrinsic');
|
|
4
|
+
var define = require('define-data-property');
|
|
5
|
+
var hasDescriptors = require('has-property-descriptors')();
|
|
6
|
+
var gOPD = require('gopd');
|
|
7
|
+
|
|
8
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
9
|
+
var $floor = GetIntrinsic('%Math.floor%');
|
|
10
|
+
|
|
11
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
12
|
+
if (typeof fn !== 'function') {
|
|
13
|
+
throw new $TypeError('`fn` is not a function');
|
|
14
|
+
}
|
|
15
|
+
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
16
|
+
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
20
|
+
|
|
21
|
+
var functionLengthIsConfigurable = true;
|
|
22
|
+
var functionLengthIsWritable = true;
|
|
23
|
+
if ('length' in fn && gOPD) {
|
|
24
|
+
var desc = gOPD(fn, 'length');
|
|
25
|
+
if (desc && !desc.configurable) {
|
|
26
|
+
functionLengthIsConfigurable = false;
|
|
27
|
+
}
|
|
28
|
+
if (desc && !desc.writable) {
|
|
29
|
+
functionLengthIsWritable = false;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
34
|
+
if (hasDescriptors) {
|
|
35
|
+
define(fn, 'length', length, true, true);
|
|
36
|
+
} else {
|
|
37
|
+
define(fn, 'length', length);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return fn;
|
|
41
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "set-function-length",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "Set a function's length property",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./env": "./env.js",
|
|
9
|
+
"./package.json": "./package.json"
|
|
10
|
+
},
|
|
11
|
+
"directories": {
|
|
12
|
+
"test": "test"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prepack": "npmignore --auto --commentLines=autogenerated",
|
|
16
|
+
"prepublish": "not-in-publish || npm run prepublishOnly",
|
|
17
|
+
"prepublishOnly": "safe-publish-latest",
|
|
18
|
+
"prelint": "evalmd README.md",
|
|
19
|
+
"lint": "eslint --ext=js,mjs .",
|
|
20
|
+
"pretest": "npm run lint",
|
|
21
|
+
"tests-only": "nyc tape 'test/**/*.js'",
|
|
22
|
+
"test": "npm run tests-only",
|
|
23
|
+
"posttest": "aud --production",
|
|
24
|
+
"version": "auto-changelog && git add CHANGELOG.md",
|
|
25
|
+
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/ljharb/set-function-length.git"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"javascript",
|
|
33
|
+
"ecmascript",
|
|
34
|
+
"set",
|
|
35
|
+
"function",
|
|
36
|
+
"length",
|
|
37
|
+
"function.length"
|
|
38
|
+
],
|
|
39
|
+
"author": "Jordan Harband <ljharb@gmail.com>",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/ljharb/set-function-length/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/ljharb/set-function-length#readme",
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@ljharb/eslint-config": "^21.1.0",
|
|
47
|
+
"aud": "^2.0.3",
|
|
48
|
+
"auto-changelog": "^2.4.0",
|
|
49
|
+
"call-bind": "^1.0.4",
|
|
50
|
+
"es-value-fixtures": "^1.4.2",
|
|
51
|
+
"eslint": "=8.8.0",
|
|
52
|
+
"evalmd": "^0.0.19",
|
|
53
|
+
"for-each": "^0.3.3",
|
|
54
|
+
"in-publish": "^2.0.1",
|
|
55
|
+
"npmignore": "^0.3.0",
|
|
56
|
+
"nyc": "^10.3.2",
|
|
57
|
+
"object-inspect": "^1.13.1",
|
|
58
|
+
"safe-publish-latest": "^2.0.0",
|
|
59
|
+
"tape": "^5.7.1"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"define-data-property": "^1.1.1",
|
|
63
|
+
"get-intrinsic": "^1.2.1",
|
|
64
|
+
"gopd": "^1.0.1",
|
|
65
|
+
"has-property-descriptors": "^1.0.0"
|
|
66
|
+
},
|
|
67
|
+
"engines": {
|
|
68
|
+
"node": ">= 0.4"
|
|
69
|
+
},
|
|
70
|
+
"auto-changelog": {
|
|
71
|
+
"output": "CHANGELOG.md",
|
|
72
|
+
"template": "keepachangelog",
|
|
73
|
+
"unreleased": false,
|
|
74
|
+
"commitLimit": false,
|
|
75
|
+
"backfillLimit": false,
|
|
76
|
+
"hideCredit": true
|
|
77
|
+
},
|
|
78
|
+
"publishConfig": {
|
|
79
|
+
"ignore": [
|
|
80
|
+
".github/workflows",
|
|
81
|
+
"test"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -91,12 +91,12 @@ if (require.main === module) {
|
|
|
91
91
|
console.error('sshpk-conv: converts between SSH key formats\n');
|
|
92
92
|
console.error(help);
|
|
93
93
|
console.error('\navailable key formats:');
|
|
94
|
-
console.error('
|
|
95
|
-
console.error('
|
|
96
|
-
console.error('
|
|
97
|
-
console.error('
|
|
98
|
-
console.error('
|
|
99
|
-
console.error('
|
|
94
|
+
console.error(' - pem, pkcs1 eg id_rsa');
|
|
95
|
+
console.error(' - ssh eg id_rsa.pub');
|
|
96
|
+
console.error(' - pkcs8 format you want for openssl');
|
|
97
|
+
console.error(' - openssh like output of ssh-keygen -o');
|
|
98
|
+
console.error(' - rfc4253 raw OpenSSH wire format');
|
|
99
|
+
console.error(' - dnssec dnssec-keygen format');
|
|
100
100
|
console.error(' - putty PuTTY ppk format');
|
|
101
101
|
console.error('\navailable fingerprint formats:');
|
|
102
102
|
console.error(' - hex colon-separated hex for SSH');
|
|
@@ -385,13 +385,17 @@ function readPkcs8EdDSAPrivate(der) {
|
|
|
385
385
|
var k = der.readString(asn1.Ber.OctetString, true);
|
|
386
386
|
k = utils.zeroPadToLength(k, 32);
|
|
387
387
|
|
|
388
|
-
var A;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
388
|
+
var A, tag;
|
|
389
|
+
while ((tag = der.peek()) !== null) {
|
|
390
|
+
if (tag === (asn1.Ber.Context | 1)) {
|
|
391
|
+
A = utils.readBitString(der, tag);
|
|
392
|
+
} else {
|
|
393
|
+
der.readSequence(tag);
|
|
394
|
+
der._offset += der.length;
|
|
395
|
+
}
|
|
394
396
|
}
|
|
397
|
+
if (A === undefined)
|
|
398
|
+
A = utils.calculateED25519Public(k);
|
|
395
399
|
|
|
396
400
|
var key = {
|
|
397
401
|
type: 'ed25519',
|
|
@@ -435,8 +439,11 @@ function writePkcs8(der, key) {
|
|
|
435
439
|
der.startSequence();
|
|
436
440
|
|
|
437
441
|
if (PrivateKey.isPrivateKey(key)) {
|
|
438
|
-
var
|
|
439
|
-
|
|
442
|
+
var version = 0;
|
|
443
|
+
if (key.type === 'ed25519')
|
|
444
|
+
version = 1;
|
|
445
|
+
var vbuf = Buffer.from([version]);
|
|
446
|
+
der.writeBuffer(vbuf, asn1.Ber.Integer);
|
|
440
447
|
}
|
|
441
448
|
|
|
442
449
|
der.startSequence();
|
|
@@ -465,9 +472,9 @@ function writePkcs8(der, key) {
|
|
|
465
472
|
case 'ed25519':
|
|
466
473
|
der.writeOID('1.3.101.112');
|
|
467
474
|
if (PrivateKey.isPrivateKey(key))
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
475
|
+
writePkcs8EdDSAPrivate(key, der);
|
|
476
|
+
else
|
|
477
|
+
writePkcs8EdDSAPublic(key, der);
|
|
471
478
|
break;
|
|
472
479
|
default:
|
|
473
480
|
throw (new Error('Unsupported key type: ' + key.type));
|
|
@@ -624,8 +631,13 @@ function writePkcs8EdDSAPublic(key, der) {
|
|
|
624
631
|
function writePkcs8EdDSAPrivate(key, der) {
|
|
625
632
|
der.endSequence();
|
|
626
633
|
|
|
627
|
-
var k = utils.mpNormalize(key.part.k.data, true);
|
|
628
634
|
der.startSequence(asn1.Ber.OctetString);
|
|
635
|
+
var k = utils.mpNormalize(key.part.k.data);
|
|
636
|
+
/* RFCs call for storing exactly 32 bytes, so strip any leading zeros */
|
|
637
|
+
while (k.length > 32 && k[0] === 0x00)
|
|
638
|
+
k = k.slice(1);
|
|
629
639
|
der.writeBuffer(k, asn1.Ber.OctetString);
|
|
630
640
|
der.endSequence();
|
|
641
|
+
|
|
642
|
+
utils.writeBitString(der, key.part.A.data, asn1.Ber.Context | 1);
|
|
631
643
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sshpk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "A library for finding and using SSH public keys",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
"ecc-jsbn": "~0.1.1",
|
|
50
50
|
"bcrypt-pbkdf": "^1.0.0"
|
|
51
51
|
},
|
|
52
|
-
"optionalDependencies": {
|
|
53
|
-
},
|
|
52
|
+
"optionalDependencies": {},
|
|
54
53
|
"devDependencies": {
|
|
55
54
|
"tape": "^3.5.0",
|
|
56
55
|
"benchmark": "^1.0.0",
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
indent_style = tab
|
|
5
|
-
indent_size = 4
|
|
6
|
-
end_of_line = lf
|
|
7
|
-
charset = utf-8
|
|
8
|
-
trim_trailing_whitespace = true
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
max_line_length = 120
|
|
11
|
-
|
|
12
|
-
[CHANGELOG.md]
|
|
13
|
-
indent_style = space
|
|
14
|
-
indent_size = 2
|
|
15
|
-
|
|
16
|
-
[*.json]
|
|
17
|
-
max_line_length = off
|
|
18
|
-
|
|
19
|
-
[Makefile]
|
|
20
|
-
max_line_length = off
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"es3": true,
|
|
3
|
-
|
|
4
|
-
"additionalRules": [],
|
|
5
|
-
|
|
6
|
-
"requireSemicolons": true,
|
|
7
|
-
|
|
8
|
-
"disallowMultipleSpaces": true,
|
|
9
|
-
|
|
10
|
-
"disallowIdentifierNames": [],
|
|
11
|
-
|
|
12
|
-
"requireCurlyBraces": {
|
|
13
|
-
"allExcept": [],
|
|
14
|
-
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
|
|
18
|
-
|
|
19
|
-
"disallowSpaceAfterKeywords": [],
|
|
20
|
-
|
|
21
|
-
"disallowSpaceBeforeComma": true,
|
|
22
|
-
"disallowSpaceAfterComma": false,
|
|
23
|
-
"disallowSpaceBeforeSemicolon": true,
|
|
24
|
-
|
|
25
|
-
"disallowNodeTypes": [
|
|
26
|
-
"DebuggerStatement",
|
|
27
|
-
"ForInStatement",
|
|
28
|
-
"LabeledStatement",
|
|
29
|
-
"SwitchCase",
|
|
30
|
-
"SwitchStatement",
|
|
31
|
-
"WithStatement"
|
|
32
|
-
],
|
|
33
|
-
|
|
34
|
-
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
|
|
35
|
-
|
|
36
|
-
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
|
|
37
|
-
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
|
|
38
|
-
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
|
|
39
|
-
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
|
|
40
|
-
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
|
|
41
|
-
|
|
42
|
-
"requireSpaceBetweenArguments": true,
|
|
43
|
-
|
|
44
|
-
"disallowSpacesInsideParentheses": true,
|
|
45
|
-
|
|
46
|
-
"disallowSpacesInsideArrayBrackets": true,
|
|
47
|
-
|
|
48
|
-
"disallowQuotedKeysInObjects": { "allExcept": ["reserved"] },
|
|
49
|
-
|
|
50
|
-
"disallowSpaceAfterObjectKeys": true,
|
|
51
|
-
|
|
52
|
-
"requireCommaBeforeLineBreak": true,
|
|
53
|
-
|
|
54
|
-
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
|
|
55
|
-
"requireSpaceAfterPrefixUnaryOperators": [],
|
|
56
|
-
|
|
57
|
-
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
|
|
58
|
-
"requireSpaceBeforePostfixUnaryOperators": [],
|
|
59
|
-
|
|
60
|
-
"disallowSpaceBeforeBinaryOperators": [],
|
|
61
|
-
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
62
|
-
|
|
63
|
-
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
|
|
64
|
-
"disallowSpaceAfterBinaryOperators": [],
|
|
65
|
-
|
|
66
|
-
"disallowImplicitTypeConversion": ["binary", "string"],
|
|
67
|
-
|
|
68
|
-
"disallowKeywords": ["with", "eval"],
|
|
69
|
-
|
|
70
|
-
"requireKeywordsOnNewLine": [],
|
|
71
|
-
"disallowKeywordsOnNewLine": ["else"],
|
|
72
|
-
|
|
73
|
-
"requireLineFeedAtFileEnd": true,
|
|
74
|
-
|
|
75
|
-
"disallowTrailingWhitespace": true,
|
|
76
|
-
|
|
77
|
-
"disallowTrailingComma": true,
|
|
78
|
-
|
|
79
|
-
"excludeFiles": ["node_modules/**", "vendor/**"],
|
|
80
|
-
|
|
81
|
-
"disallowMultipleLineStrings": true,
|
|
82
|
-
|
|
83
|
-
"requireDotNotation": { "allExcept": ["keywords"] },
|
|
84
|
-
|
|
85
|
-
"requireParenthesesAroundIIFE": true,
|
|
86
|
-
|
|
87
|
-
"validateLineBreaks": "LF",
|
|
88
|
-
|
|
89
|
-
"validateQuoteMarks": {
|
|
90
|
-
"escape": true,
|
|
91
|
-
"mark": "'"
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
"disallowOperatorBeforeLineBreak": [],
|
|
95
|
-
|
|
96
|
-
"requireSpaceBeforeKeywords": [
|
|
97
|
-
"do",
|
|
98
|
-
"for",
|
|
99
|
-
"if",
|
|
100
|
-
"else",
|
|
101
|
-
"switch",
|
|
102
|
-
"case",
|
|
103
|
-
"try",
|
|
104
|
-
"catch",
|
|
105
|
-
"finally",
|
|
106
|
-
"while",
|
|
107
|
-
"with",
|
|
108
|
-
"return"
|
|
109
|
-
],
|
|
110
|
-
|
|
111
|
-
"validateAlignedFunctionParameters": {
|
|
112
|
-
"lineBreakAfterOpeningBraces": true,
|
|
113
|
-
"lineBreakBeforeClosingBraces": true
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
"requirePaddingNewLinesBeforeExport": true,
|
|
117
|
-
|
|
118
|
-
"validateNewlineAfterArrayElements": {
|
|
119
|
-
"maximum": 8
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
"requirePaddingNewLinesAfterUseStrict": true,
|
|
123
|
-
|
|
124
|
-
"disallowArrowFunctions": true,
|
|
125
|
-
|
|
126
|
-
"disallowMultiLineTernary": true,
|
|
127
|
-
|
|
128
|
-
"validateOrderInObjectKeys": "asc-insensitive",
|
|
129
|
-
|
|
130
|
-
"disallowIdenticalDestructuringNames": true,
|
|
131
|
-
|
|
132
|
-
"disallowNestedTernaries": { "maxLevel": 1 },
|
|
133
|
-
|
|
134
|
-
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
|
|
135
|
-
"requireAlignedMultilineParams": false,
|
|
136
|
-
|
|
137
|
-
"requireSpacesInGenerator": {
|
|
138
|
-
"afterStar": true
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
"disallowSpacesInGenerator": {
|
|
142
|
-
"beforeStar": true
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
"disallowVar": false,
|
|
146
|
-
|
|
147
|
-
"requireArrayDestructuring": false,
|
|
148
|
-
|
|
149
|
-
"requireEnhancedObjectLiterals": false,
|
|
150
|
-
|
|
151
|
-
"requireObjectDestructuring": false,
|
|
152
|
-
|
|
153
|
-
"requireEarlyReturn": false,
|
|
154
|
-
|
|
155
|
-
"requireCapitalizedConstructorsNew": {
|
|
156
|
-
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
"requireImportAlphabetized": false,
|
|
160
|
-
|
|
161
|
-
"requireSpaceBeforeObjectValues": true,
|
|
162
|
-
"requireSpaceBeforeDestructuredValues": true,
|
|
163
|
-
|
|
164
|
-
"disallowSpacesInsideTemplateStringPlaceholders": true,
|
|
165
|
-
|
|
166
|
-
"disallowArrayDestructuringReturn": false,
|
|
167
|
-
|
|
168
|
-
"requireNewlineBeforeSingleStatementsInIf": false,
|
|
169
|
-
|
|
170
|
-
"disallowUnusedVariables": true,
|
|
171
|
-
|
|
172
|
-
"requireSpacesInsideImportedObjectBraces": true,
|
|
173
|
-
|
|
174
|
-
"requireUseStrict": true
|
|
175
|
-
}
|
|
176
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# gitignore
|
|
2
|
-
.DS_Store
|
|
3
|
-
.monitor
|
|
4
|
-
.*.swp
|
|
5
|
-
.nodemonignore
|
|
6
|
-
releases
|
|
7
|
-
*.log
|
|
8
|
-
*.err
|
|
9
|
-
fleet.json
|
|
10
|
-
public/browserify
|
|
11
|
-
bin/*.json
|
|
12
|
-
.bin
|
|
13
|
-
build
|
|
14
|
-
compile
|
|
15
|
-
.lock-wscript
|
|
16
|
-
coverage
|
|
17
|
-
node_modules
|
|
18
|
-
|
|
19
|
-
# Only apps should have lockfiles
|
|
20
|
-
npm-shrinkwrap.json
|
|
21
|
-
package-lock.json
|
|
22
|
-
yarn.lock
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
language: node_js
|
|
2
|
-
os:
|
|
3
|
-
- linux
|
|
4
|
-
node_js:
|
|
5
|
-
- "8.4"
|
|
6
|
-
- "7.10"
|
|
7
|
-
- "6.11"
|
|
8
|
-
- "5.12"
|
|
9
|
-
- "4.8"
|
|
10
|
-
- "iojs-v3.3"
|
|
11
|
-
- "iojs-v2.5"
|
|
12
|
-
- "iojs-v1.8"
|
|
13
|
-
- "0.12"
|
|
14
|
-
- "0.10"
|
|
15
|
-
- "0.8"
|
|
16
|
-
before_install:
|
|
17
|
-
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi'
|
|
18
|
-
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g npm@4.5 ; else npm install -g npm; fi; fi'
|
|
19
|
-
install:
|
|
20
|
-
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
|
|
21
|
-
script:
|
|
22
|
-
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
|
|
23
|
-
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
|
|
24
|
-
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
|
|
25
|
-
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
|
|
26
|
-
sudo: false
|
|
27
|
-
env:
|
|
28
|
-
- TEST=true
|
|
29
|
-
matrix:
|
|
30
|
-
fast_finish: true
|
|
31
|
-
include:
|
|
32
|
-
- node_js: "node"
|
|
33
|
-
env: PRETEST=true
|
|
34
|
-
- node_js: "4"
|
|
35
|
-
env: COVERAGE=true
|
|
36
|
-
- node_js: "8.3"
|
|
37
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
38
|
-
- node_js: "8.2"
|
|
39
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
40
|
-
- node_js: "8.1"
|
|
41
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
42
|
-
- node_js: "8.0"
|
|
43
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
44
|
-
- node_js: "7.9"
|
|
45
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
46
|
-
- node_js: "7.8"
|
|
47
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
48
|
-
- node_js: "7.7"
|
|
49
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
50
|
-
- node_js: "7.6"
|
|
51
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
52
|
-
- node_js: "7.5"
|
|
53
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
54
|
-
- node_js: "7.4"
|
|
55
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
56
|
-
- node_js: "7.3"
|
|
57
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
58
|
-
- node_js: "7.2"
|
|
59
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
60
|
-
- node_js: "7.1"
|
|
61
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
62
|
-
- node_js: "7.0"
|
|
63
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
64
|
-
- node_js: "6.10"
|
|
65
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
66
|
-
- node_js: "6.9"
|
|
67
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
68
|
-
- node_js: "6.8"
|
|
69
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
70
|
-
- node_js: "6.7"
|
|
71
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
72
|
-
- node_js: "6.6"
|
|
73
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
74
|
-
- node_js: "6.5"
|
|
75
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
76
|
-
- node_js: "6.4"
|
|
77
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
78
|
-
- node_js: "6.3"
|
|
79
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
80
|
-
- node_js: "6.2"
|
|
81
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
82
|
-
- node_js: "6.1"
|
|
83
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
84
|
-
- node_js: "6.0"
|
|
85
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
86
|
-
- node_js: "5.11"
|
|
87
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
88
|
-
- node_js: "5.10"
|
|
89
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
90
|
-
- node_js: "5.9"
|
|
91
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
92
|
-
- node_js: "5.8"
|
|
93
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
94
|
-
- node_js: "5.7"
|
|
95
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
96
|
-
- node_js: "5.6"
|
|
97
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
98
|
-
- node_js: "5.5"
|
|
99
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
100
|
-
- node_js: "5.4"
|
|
101
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
102
|
-
- node_js: "5.3"
|
|
103
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
104
|
-
- node_js: "5.2"
|
|
105
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
106
|
-
- node_js: "5.1"
|
|
107
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
108
|
-
- node_js: "5.0"
|
|
109
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
110
|
-
- node_js: "4.7"
|
|
111
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
112
|
-
- node_js: "4.6"
|
|
113
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
114
|
-
- node_js: "4.5"
|
|
115
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
116
|
-
- node_js: "4.4"
|
|
117
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
118
|
-
- node_js: "4.3"
|
|
119
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
120
|
-
- node_js: "4.2"
|
|
121
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
122
|
-
- node_js: "4.1"
|
|
123
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
124
|
-
- node_js: "4.0"
|
|
125
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
126
|
-
- node_js: "iojs-v3.2"
|
|
127
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
128
|
-
- node_js: "iojs-v3.1"
|
|
129
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
130
|
-
- node_js: "iojs-v3.0"
|
|
131
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
132
|
-
- node_js: "iojs-v2.4"
|
|
133
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
134
|
-
- node_js: "iojs-v2.3"
|
|
135
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
136
|
-
- node_js: "iojs-v2.2"
|
|
137
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
138
|
-
- node_js: "iojs-v2.1"
|
|
139
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
140
|
-
- node_js: "iojs-v2.0"
|
|
141
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
142
|
-
- node_js: "iojs-v1.7"
|
|
143
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
144
|
-
- node_js: "iojs-v1.6"
|
|
145
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
146
|
-
- node_js: "iojs-v1.5"
|
|
147
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
148
|
-
- node_js: "iojs-v1.4"
|
|
149
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
150
|
-
- node_js: "iojs-v1.3"
|
|
151
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
152
|
-
- node_js: "iojs-v1.2"
|
|
153
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
154
|
-
- node_js: "iojs-v1.1"
|
|
155
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
156
|
-
- node_js: "iojs-v1.0"
|
|
157
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
158
|
-
- node_js: "0.11"
|
|
159
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
160
|
-
- node_js: "0.9"
|
|
161
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
162
|
-
- node_js: "0.6"
|
|
163
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
164
|
-
- node_js: "0.4"
|
|
165
|
-
env: TEST=true ALLOW_FAILURE=true
|
|
166
|
-
allow_failures:
|
|
167
|
-
- os: osx
|
|
168
|
-
- env: TEST=true ALLOW_FAILURE=true
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2013 Thiago de Arruda
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person
|
|
4
|
-
obtaining a copy of this software and associated documentation
|
|
5
|
-
files (the "Software"), to deal in the Software without
|
|
6
|
-
restriction, including without limitation the rights to use,
|
|
7
|
-
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the
|
|
9
|
-
Software is furnished to do so, subject to the following
|
|
10
|
-
conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be
|
|
13
|
-
included in all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
-
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
-
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
-
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# has
|
|
2
|
-
|
|
3
|
-
> Object.prototype.hasOwnProperty.call shortcut
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```sh
|
|
8
|
-
npm install --save has
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
var has = require('has');
|
|
15
|
-
|
|
16
|
-
has({}, 'hasOwnProperty'); // false
|
|
17
|
-
has(Object.prototype, 'hasOwnProperty'); // true
|
|
18
|
-
```
|