step-node-agent 3.22.3 → 3.23.0
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/.vscode/launch.json +1 -1
- package/node_modules/has/package.json +1 -4
- package/node_modules/has/src/index.js +5 -2
- package/node_modules/has/test/index.js +6 -0
- package/node_modules/resolve/.eslintrc +1 -1
- package/node_modules/resolve/bin/resolve +1 -1
- package/node_modules/resolve/package.json +5 -4
- 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/package.json +1 -1
- 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
package/.vscode/launch.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "has",
|
|
3
3
|
"description": "Object.prototype.hasOwnProperty.call shortcut",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"homepage": "https://github.com/tarruda/has",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Thiago de Arruda",
|
|
@@ -29,9 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"main": "./src",
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"function-bind": "^1.1.1"
|
|
34
|
-
},
|
|
35
32
|
"devDependencies": {
|
|
36
33
|
"@ljharb/eslint-config": "^12.2.1",
|
|
37
34
|
"eslint": "^4.19.1",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var hasOwnProperty = {}.hasOwnProperty;
|
|
4
|
+
var call = Function.prototype.call;
|
|
4
5
|
|
|
5
|
-
module.exports =
|
|
6
|
+
module.exports = call.bind ? call.bind(hasOwnProperty) : function (O, P) {
|
|
7
|
+
return call.call(hasOwnProperty, O, P);
|
|
8
|
+
};
|
|
@@ -6,5 +6,11 @@ var has = require('../');
|
|
|
6
6
|
test('has', function (t) {
|
|
7
7
|
t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"');
|
|
8
8
|
t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"');
|
|
9
|
+
t['throws'](function () {
|
|
10
|
+
has(null, 'throws');
|
|
11
|
+
}, TypeError, 'calling has on null throws TypeError');
|
|
12
|
+
t['throws'](function () {
|
|
13
|
+
has(void 0, 'throws');
|
|
14
|
+
}, TypeError, 'calling has on undefined throws TypeError');
|
|
9
15
|
t.end();
|
|
10
16
|
});
|
|
@@ -11,7 +11,7 @@ if (
|
|
|
11
11
|
!process.argv
|
|
12
12
|
|| process.argv.length < 2
|
|
13
13
|
|| (process.argv[1] !== __filename && fs.statSync(process.argv[1]).ino !== fs.statSync(__filename).ino)
|
|
14
|
-
|| (process.env._ && path.resolve(process.env._) !== __filename)
|
|
14
|
+
|| (process.env.npm_lifecycle_event !== 'npx' && process.env._ && fs.realpathSync(path.resolve(process.env._)) !== __filename)
|
|
15
15
|
)
|
|
16
16
|
) {
|
|
17
17
|
console.error('Error: `resolve` must be run directly as an executable');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resolve",
|
|
3
3
|
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
|
|
4
|
-
"version": "1.22.
|
|
4
|
+
"version": "1.22.8",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git://github.com/browserify/resolve.git"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@ljharb/eslint-config": "^21.1.0",
|
|
34
|
-
"array.prototype.map": "^1.0.
|
|
34
|
+
"array.prototype.map": "^1.0.6",
|
|
35
35
|
"aud": "^2.0.3",
|
|
36
36
|
"copy-dir": "^1.3.0",
|
|
37
37
|
"eclint": "^2.8.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"safe-publish-latest": "^2.0.0",
|
|
46
46
|
"semver": "^6.3.1",
|
|
47
47
|
"tap": "0.4.13",
|
|
48
|
-
"tape": "^5.
|
|
48
|
+
"tape": "^5.7.0",
|
|
49
49
|
"tmp": "^0.0.31"
|
|
50
50
|
},
|
|
51
51
|
"license": "MIT",
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"ignore": [
|
|
67
67
|
".github/workflows",
|
|
68
|
-
"appveyor.yml"
|
|
68
|
+
"appveyor.yml",
|
|
69
|
+
"test/resolver/malformed_package_json"
|
|
69
70
|
]
|
|
70
71
|
}
|
|
71
72
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
var path = require('path');
|
|
2
|
+
var fs = require('fs');
|
|
2
3
|
var test = require('tape');
|
|
3
4
|
var resolve = require('../');
|
|
4
5
|
var async = require('../async');
|
|
@@ -539,14 +540,15 @@ test('absolute paths', function (t) {
|
|
|
539
540
|
});
|
|
540
541
|
});
|
|
541
542
|
|
|
542
|
-
|
|
543
|
+
var malformedDir = path.join(__dirname, 'resolver/malformed_package_json');
|
|
544
|
+
test('malformed package.json', { skip: !fs.existsSync(malformedDir) }, function (t) {
|
|
543
545
|
/* eslint operator-linebreak: ["error", "before"], function-paren-newline: "off" */
|
|
544
546
|
t.plan(
|
|
545
547
|
(3 * 3) // 3 sets of 3 assertions in the final callback
|
|
546
548
|
+ 2 // 1 readPackage call with malformed package.json
|
|
547
549
|
);
|
|
548
550
|
|
|
549
|
-
var basedir =
|
|
551
|
+
var basedir = malformedDir;
|
|
550
552
|
var expected = path.join(basedir, 'index.js');
|
|
551
553
|
|
|
552
554
|
resolve('./index.js', { basedir: basedir }, function (err, res, pkg) {
|
|
@@ -8,6 +8,9 @@ var sync = require('../sync');
|
|
|
8
8
|
var requireResolveSupportsPaths = require.resolve.length > 1
|
|
9
9
|
&& !(/^v12\.[012]\./).test(process.version); // broken in v12.0-12.2, see https://github.com/nodejs/node/issues/27794
|
|
10
10
|
|
|
11
|
+
var requireResolveDefaultPathsBroken = (/^v8\.9\.|^v9\.[01]\.0|^v9\.2\./).test(process.version);
|
|
12
|
+
// broken in node v8.9.x, v9.0, v9.1, v9.2.x. see https://github.com/nodejs/node/pull/17113
|
|
13
|
+
|
|
11
14
|
test('`./sync` entry point', function (t) {
|
|
12
15
|
t.equal(resolve.sync, sync, '`./sync` entry point is the same as `.sync` on `main`');
|
|
13
16
|
t.end();
|
|
@@ -75,7 +78,7 @@ test('bar', function (t) {
|
|
|
75
78
|
path.join(dir, 'bar/node_modules/foo/index.js'),
|
|
76
79
|
'foo in bar'
|
|
77
80
|
);
|
|
78
|
-
if (requireResolveSupportsPaths) {
|
|
81
|
+
if (!requireResolveDefaultPathsBroken && requireResolveSupportsPaths) {
|
|
79
82
|
t.equal(
|
|
80
83
|
resolve.sync('foo', { basedir: basedir }),
|
|
81
84
|
require.resolve('foo', { paths: [basedir] }),
|
|
@@ -125,7 +128,7 @@ test('biz', function (t) {
|
|
|
125
128
|
resolve.sync('tiv', { basedir: tivDir }),
|
|
126
129
|
path.join(dir, 'tiv/index.js')
|
|
127
130
|
);
|
|
128
|
-
if (requireResolveSupportsPaths) {
|
|
131
|
+
if (!requireResolveDefaultPathsBroken && requireResolveSupportsPaths) {
|
|
129
132
|
t.equal(
|
|
130
133
|
resolve.sync('tiv', { basedir: tivDir }),
|
|
131
134
|
require.resolve('tiv', { paths: [tivDir] }),
|
|
@@ -138,7 +141,7 @@ test('biz', function (t) {
|
|
|
138
141
|
resolve.sync('grux', { basedir: gruxDir }),
|
|
139
142
|
path.join(dir, 'grux/index.js')
|
|
140
143
|
);
|
|
141
|
-
if (requireResolveSupportsPaths) {
|
|
144
|
+
if (!requireResolveDefaultPathsBroken && requireResolveSupportsPaths) {
|
|
142
145
|
t.equal(
|
|
143
146
|
resolve.sync('grux', { basedir: gruxDir }),
|
|
144
147
|
require.resolve('grux', { paths: [gruxDir] }),
|
|
@@ -667,10 +670,11 @@ test('absolute paths', function (t) {
|
|
|
667
670
|
t.end();
|
|
668
671
|
});
|
|
669
672
|
|
|
670
|
-
|
|
673
|
+
var malformedDir = path.join(__dirname, 'resolver/malformed_package_json');
|
|
674
|
+
test('malformed package.json', { skip: !fs.existsSync(malformedDir) }, function (t) {
|
|
671
675
|
t.plan(5 + (requireResolveSupportsPaths ? 1 : 0));
|
|
672
676
|
|
|
673
|
-
var basedir =
|
|
677
|
+
var basedir = malformedDir;
|
|
674
678
|
var expected = path.join(basedir, 'index.js');
|
|
675
679
|
|
|
676
680
|
t.equal(
|
package/package.json
CHANGED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{
|