mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-08-31 11:14:46 +08:00
chore: updating deps
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@
|
||||
"func-name-matching": 0,
|
||||
"func-style": 0,
|
||||
"global-require": 1,
|
||||
"id-length": [2, { "min": 1, "max": 30 }],
|
||||
"id-length": [2, { "min": 1, "max": 40 }],
|
||||
"max-lines": [2, 350],
|
||||
"max-lines-per-function": 0,
|
||||
"max-nested-callbacks": 0,
|
||||
|
||||
+3
-43
@@ -1,52 +1,12 @@
|
||||
var current = (process.versions && process.versions.node && process.versions.node.split('.')) || [];
|
||||
|
||||
function specifierIncluded(specifier) {
|
||||
var parts = specifier.split(' ');
|
||||
var op = parts.length > 1 ? parts[0] : '=';
|
||||
var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split('.');
|
||||
|
||||
for (var i = 0; i < 3; ++i) {
|
||||
var cur = parseInt(current[i] || 0, 10);
|
||||
var ver = parseInt(versionParts[i] || 0, 10);
|
||||
if (cur === ver) {
|
||||
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
||||
}
|
||||
if (op === '<') {
|
||||
return cur < ver;
|
||||
} else if (op === '>=') {
|
||||
return cur >= ver;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return op === '>=';
|
||||
}
|
||||
|
||||
function matchesRange(range) {
|
||||
var specifiers = range.split(/ ?&& ?/);
|
||||
if (specifiers.length === 0) { return false; }
|
||||
for (var i = 0; i < specifiers.length; ++i) {
|
||||
if (!specifierIncluded(specifiers[i])) { return false; }
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function versionIncluded(specifierValue) {
|
||||
if (typeof specifierValue === 'boolean') { return specifierValue; }
|
||||
if (specifierValue && typeof specifierValue === 'object') {
|
||||
for (var i = 0; i < specifierValue.length; ++i) {
|
||||
if (matchesRange(specifierValue[i])) { return true; }
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return matchesRange(specifierValue);
|
||||
}
|
||||
'use strict';
|
||||
|
||||
var isCoreModule = require('is-core-module');
|
||||
var data = require('./core.json');
|
||||
|
||||
var core = {};
|
||||
for (var mod in data) { // eslint-disable-line no-restricted-syntax
|
||||
if (Object.prototype.hasOwnProperty.call(data, mod)) {
|
||||
core[mod] = versionIncluded(data[mod]);
|
||||
core[mod] = isCoreModule(mod);
|
||||
}
|
||||
}
|
||||
module.exports = core;
|
||||
|
||||
+7
-2
@@ -57,6 +57,8 @@
|
||||
"node:https": [">= 14.18 && < 15", ">= 16"],
|
||||
"inspector": ">= 8",
|
||||
"node:inspector": [">= 14.18 && < 15", ">= 16"],
|
||||
"inspector/promises": [">= 19"],
|
||||
"node:inspector/promises": [">= 19"],
|
||||
"_linklist": "< 8",
|
||||
"module": true,
|
||||
"node:module": [">= 14.18 && < 15", ">= 16"],
|
||||
@@ -112,7 +114,9 @@
|
||||
"node:string_decoder": [">= 14.18 && < 15", ">= 16"],
|
||||
"sys": [">= 0.4 && < 0.7", ">= 0.8"],
|
||||
"node:sys": [">= 14.18 && < 15", ">= 16"],
|
||||
"node:test": ">= 18",
|
||||
"test/reporters": ">= 19.9 && < 20.2",
|
||||
"node:test/reporters": [">= 18.17 && < 19", ">= 19.9", ">= 20"],
|
||||
"node:test": [">= 16.17 && < 17", ">= 18"],
|
||||
"timers": true,
|
||||
"node:timers": [">= 14.18 && < 15", ">= 16"],
|
||||
"timers/promises": ">= 15",
|
||||
@@ -145,7 +149,8 @@
|
||||
"node:v8": [">= 14.18 && < 15", ">= 16"],
|
||||
"vm": true,
|
||||
"node:vm": [">= 14.18 && < 15", ">= 16"],
|
||||
"wasi": ">= 13.4 && < 13.5",
|
||||
"wasi": [">= 13.4 && < 13.5", ">= 18.17 && < 19", ">= 20"],
|
||||
"node:wasi": [">= 18.17 && < 19", ">= 20"],
|
||||
"worker_threads": ">= 11.7",
|
||||
"node:worker_threads": [">= 14.18 && < 15", ">= 16"],
|
||||
"zlib": ">= 0.5",
|
||||
|
||||
+11
-10
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "resolve",
|
||||
"description": "resolve like require.resolve() on behalf of files asynchronously and synchronously",
|
||||
"version": "1.22.1",
|
||||
"version": "1.22.8",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/browserify/resolve.git"
|
||||
@@ -17,8 +17,8 @@
|
||||
"module"
|
||||
],
|
||||
"scripts": {
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated",
|
||||
"prepublishOnly": "safe-publish-latest && cp node_modules/is-core-module/core.json ./lib/ ||:",
|
||||
"prepack": "npmignore --auto --commentLines=autogenerated && cp node_modules/is-core-module/core.json ./lib/ ||:",
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
|
||||
"lint": "eslint --ext=js,mjs --no-eslintrc -c .eslintrc . 'bin/**'",
|
||||
@@ -30,9 +30,9 @@
|
||||
"test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^21.0.0",
|
||||
"array.prototype.map": "^1.0.4",
|
||||
"aud": "^2.0.0",
|
||||
"@ljharb/eslint-config": "^21.1.0",
|
||||
"array.prototype.map": "^1.0.6",
|
||||
"aud": "^2.0.3",
|
||||
"copy-dir": "^1.3.0",
|
||||
"eclint": "^2.8.1",
|
||||
"eslint": "=8.8.0",
|
||||
@@ -43,9 +43,9 @@
|
||||
"object-keys": "^1.1.1",
|
||||
"rimraf": "^2.7.1",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"semver": "^6.3.0",
|
||||
"semver": "^6.3.1",
|
||||
"tap": "0.4.13",
|
||||
"tape": "^5.5.3",
|
||||
"tape": "^5.7.0",
|
||||
"tmp": "^0.0.31"
|
||||
},
|
||||
"license": "MIT",
|
||||
@@ -58,14 +58,15 @@
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-core-module": "^2.9.0",
|
||||
"is-core-module": "^2.13.0",
|
||||
"path-parse": "^1.0.7",
|
||||
"supports-preserve-symlinks-flag": "^1.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"ignore": [
|
||||
".github/workflows",
|
||||
"appveyor.yml"
|
||||
"appveyor.yml",
|
||||
"test/resolver/malformed_package_json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,4 +1,5 @@
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
var test = require('tape');
|
||||
var resolve = require('../');
|
||||
var async = require('../async');
|
||||
@@ -539,14 +540,15 @@ test('absolute paths', function (t) {
|
||||
});
|
||||
});
|
||||
|
||||
test('malformed package.json', function (t) {
|
||||
var malformedDir = path.join(__dirname, 'resolver/malformed_package_json');
|
||||
test('malformed package.json', { skip: !fs.existsSync(malformedDir) }, function (t) {
|
||||
/* eslint operator-linebreak: ["error", "before"], function-paren-newline: "off" */
|
||||
t.plan(
|
||||
(3 * 3) // 3 sets of 3 assertions in the final callback
|
||||
+ 2 // 1 readPackage call with malformed package.json
|
||||
);
|
||||
|
||||
var basedir = path.join(__dirname, 'resolver/malformed_package_json');
|
||||
var basedir = malformedDir;
|
||||
var expected = path.join(basedir, 'index.js');
|
||||
|
||||
resolve('./index.js', { basedir: basedir }, function (err, res, pkg) {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "monorepo-symlink-test",
|
||||
"name": "ljharb-monorepo-symlink-test",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
|
||||
+9
-5
@@ -8,6 +8,9 @@ var sync = require('../sync');
|
||||
var requireResolveSupportsPaths = require.resolve.length > 1
|
||||
&& !(/^v12\.[012]\./).test(process.version); // broken in v12.0-12.2, see https://github.com/nodejs/node/issues/27794
|
||||
|
||||
var requireResolveDefaultPathsBroken = (/^v8\.9\.|^v9\.[01]\.0|^v9\.2\./).test(process.version);
|
||||
// broken in node v8.9.x, v9.0, v9.1, v9.2.x. see https://github.com/nodejs/node/pull/17113
|
||||
|
||||
test('`./sync` entry point', function (t) {
|
||||
t.equal(resolve.sync, sync, '`./sync` entry point is the same as `.sync` on `main`');
|
||||
t.end();
|
||||
@@ -75,7 +78,7 @@ test('bar', function (t) {
|
||||
path.join(dir, 'bar/node_modules/foo/index.js'),
|
||||
'foo in bar'
|
||||
);
|
||||
if (requireResolveSupportsPaths) {
|
||||
if (!requireResolveDefaultPathsBroken && requireResolveSupportsPaths) {
|
||||
t.equal(
|
||||
resolve.sync('foo', { basedir: basedir }),
|
||||
require.resolve('foo', { paths: [basedir] }),
|
||||
@@ -125,7 +128,7 @@ test('biz', function (t) {
|
||||
resolve.sync('tiv', { basedir: tivDir }),
|
||||
path.join(dir, 'tiv/index.js')
|
||||
);
|
||||
if (requireResolveSupportsPaths) {
|
||||
if (!requireResolveDefaultPathsBroken && requireResolveSupportsPaths) {
|
||||
t.equal(
|
||||
resolve.sync('tiv', { basedir: tivDir }),
|
||||
require.resolve('tiv', { paths: [tivDir] }),
|
||||
@@ -138,7 +141,7 @@ test('biz', function (t) {
|
||||
resolve.sync('grux', { basedir: gruxDir }),
|
||||
path.join(dir, 'grux/index.js')
|
||||
);
|
||||
if (requireResolveSupportsPaths) {
|
||||
if (!requireResolveDefaultPathsBroken && requireResolveSupportsPaths) {
|
||||
t.equal(
|
||||
resolve.sync('grux', { basedir: gruxDir }),
|
||||
require.resolve('grux', { paths: [gruxDir] }),
|
||||
@@ -667,10 +670,11 @@ test('absolute paths', function (t) {
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('malformed package.json', function (t) {
|
||||
var malformedDir = path.join(__dirname, 'resolver/malformed_package_json');
|
||||
test('malformed package.json', { skip: !fs.existsSync(malformedDir) }, function (t) {
|
||||
t.plan(5 + (requireResolveSupportsPaths ? 1 : 0));
|
||||
|
||||
var basedir = path.join(__dirname, 'resolver/malformed_package_json');
|
||||
var basedir = malformedDir;
|
||||
var expected = path.join(basedir, 'index.js');
|
||||
|
||||
t.equal(
|
||||
|
||||
Reference in New Issue
Block a user