mirror of
https://github.com/dorny/paths-filter.git
synced 2026-07-01 18:51:40 +00:00
Compare commits
No commits in common. "c3cf6205f8bf9c1fbe15c2473edfab7913e3841d" and "782721e39ba241a05f08cc0c737da623ee0f47e3" have entirely different histories.
c3cf6205f8
...
782721e39b
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- uses: volta-cli/action@v4
|
||||
- run: |
|
||||
pnpm install
|
||||
@ -21,7 +21,7 @@ jobs:
|
||||
self-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
|
||||
12
.github/workflows/pull-request-verification.yml
vendored
12
.github/workflows/pull-request-verification.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Need history for changelog generation
|
||||
- uses: volta-cli/action@v4
|
||||
@ -34,7 +34,7 @@ jobs:
|
||||
permissions:
|
||||
pull-requests: read
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
@ -55,7 +55,7 @@ jobs:
|
||||
permissions:
|
||||
pull-requests: read
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
@ -67,7 +67,7 @@ jobs:
|
||||
test-without-token:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
@ -80,7 +80,7 @@ jobs:
|
||||
test-wd-without-token:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: somewhere
|
||||
- uses: ./somewhere
|
||||
@ -96,7 +96,7 @@ jobs:
|
||||
test-local-changes:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- run: echo "NEW FILE" > local
|
||||
- run: git add local
|
||||
- uses: ./
|
||||
|
||||
11
CHANGELOG.md
11
CHANGELOG.md
@ -1,16 +1,5 @@
|
||||
# Changelog
|
||||
|
||||
## v5.0.0
|
||||
- [Upgrade action to use Node 24 LTS](https://github.com/AurorNZ/paths-filter/pull/34)
|
||||
|
||||
## 4.1.0
|
||||
- [Migrate to PNPM and Volta](https://github.com/AurorNZ/paths-filter/pull/13)
|
||||
- [Migrate jest to vitest](https://github.com/AurorNZ/paths-filter/pull/14)
|
||||
- [Eslint upgrade](https://github.com/AurorNZ/paths-filter/pull/15)
|
||||
- [Generate build with esm](https://github.com/AurorNZ/paths-filter/pull/16)
|
||||
- [Upgrade pnpm to 10](https://github.com/AurorNZ/paths-filter/pull/28)
|
||||
- Update dependencies to latest, except Node (Upgrade to 24 completed separately)
|
||||
|
||||
## v4.0.0
|
||||
- [Possibly breaking: Updated dependencies and upgrade to node 20](https://github.com/AurorNZ/paths-filter/pull/9)
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ outputs:
|
||||
changes:
|
||||
description: JSON array with names of all filters matching any of changed files
|
||||
runs:
|
||||
using: 'node24'
|
||||
using: 'node20'
|
||||
main: 'dist/index.mjs'
|
||||
branding:
|
||||
color: blue
|
||||
|
||||
182
dist/index.mjs
generated
vendored
182
dist/index.mjs
generated
vendored
@ -68,7 +68,7 @@ var require_utils = __commonJS({
|
||||
var require_command = __commonJS({
|
||||
"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/command.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -77,13 +77,13 @@ var require_command = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -154,7 +154,7 @@ var require_command = __commonJS({
|
||||
var require_file_command = __commonJS({
|
||||
"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/file-command.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -163,13 +163,13 @@ var require_file_command = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -13735,7 +13735,7 @@ var require_fetch = __commonJS({
|
||||
fetchParams.controller.terminate(e);
|
||||
}
|
||||
};
|
||||
requestBody = (async function* () {
|
||||
requestBody = async function* () {
|
||||
try {
|
||||
for await (const bytes of request.body.stream) {
|
||||
yield* processBodyChunk(bytes);
|
||||
@ -13744,7 +13744,7 @@ var require_fetch = __commonJS({
|
||||
} catch (err) {
|
||||
processBodyError(err);
|
||||
}
|
||||
})();
|
||||
}();
|
||||
}
|
||||
try {
|
||||
const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody });
|
||||
@ -17295,7 +17295,7 @@ var require_undici = __commonJS({
|
||||
var require_lib = __commonJS({
|
||||
"node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/lib/index.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -17304,13 +17304,13 @@ var require_lib = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -18410,7 +18410,7 @@ var require_summary = __commonJS({
|
||||
var require_path_utils = __commonJS({
|
||||
"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/path-utils.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -18419,13 +18419,13 @@ var require_path_utils = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -18459,18 +18459,18 @@ var require_path_utils = __commonJS({
|
||||
var require_io_util = __commonJS({
|
||||
"node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io-util.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
||||
return m[k];
|
||||
} });
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -18632,18 +18632,18 @@ var require_io_util = __commonJS({
|
||||
var require_io = __commonJS({
|
||||
"node_modules/.pnpm/@actions+io@1.1.3/node_modules/@actions/io/lib/io.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
||||
return m[k];
|
||||
} });
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -18880,18 +18880,18 @@ var require_io = __commonJS({
|
||||
var require_toolrunner = __commonJS({
|
||||
"node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/toolrunner.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
||||
return m[k];
|
||||
} });
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -19364,18 +19364,18 @@ var require_toolrunner = __commonJS({
|
||||
var require_exec = __commonJS({
|
||||
"node_modules/.pnpm/@actions+exec@1.1.1/node_modules/@actions/exec/lib/exec.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() {
|
||||
return m[k];
|
||||
} });
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -19471,7 +19471,7 @@ var require_exec = __commonJS({
|
||||
var require_platform = __commonJS({
|
||||
"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/platform.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -19480,13 +19480,13 @@ var require_platform = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -19590,7 +19590,7 @@ var require_platform = __commonJS({
|
||||
var require_core = __commonJS({
|
||||
"node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/lib/core.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -19599,13 +19599,13 @@ var require_core = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -19878,7 +19878,7 @@ var require_context = __commonJS({
|
||||
var require_utils3 = __commonJS({
|
||||
"node_modules/.pnpm/@actions+github@6.0.1/node_modules/@actions/github/lib/internal/utils.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -19887,13 +19887,13 @@ var require_utils3 = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -23777,7 +23777,7 @@ var require_dist_node10 = __commonJS({
|
||||
var require_utils4 = __commonJS({
|
||||
"node_modules/.pnpm/@actions+github@6.0.1/node_modules/@actions/github/lib/utils.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -23786,13 +23786,13 @@ var require_utils4 = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -23837,7 +23837,7 @@ var require_utils4 = __commonJS({
|
||||
var require_github = __commonJS({
|
||||
"node_modules/.pnpm/@actions+github@6.0.1/node_modules/@actions/github/lib/github.js"(exports) {
|
||||
"use strict";
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
||||
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
@ -23846,13 +23846,13 @@ var require_github = __commonJS({
|
||||
} };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
} : function(o, m, k, k2) {
|
||||
if (k2 === void 0) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
||||
});
|
||||
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
} : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = exports && exports.__importStar || function(mod) {
|
||||
@ -23940,11 +23940,11 @@ var require_utils5 = __commonJS({
|
||||
}, []);
|
||||
exports.flatten = (...args) => {
|
||||
const result = [];
|
||||
const flat = (arr) => {
|
||||
const flat2 = (arr) => {
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
const ele = arr[i];
|
||||
if (Array.isArray(ele)) {
|
||||
flat(ele);
|
||||
flat2(ele);
|
||||
continue;
|
||||
}
|
||||
if (ele !== void 0) {
|
||||
@ -23953,7 +23953,7 @@ var require_utils5 = __commonJS({
|
||||
}
|
||||
return result;
|
||||
};
|
||||
flat(args);
|
||||
flat2(args);
|
||||
return result;
|
||||
};
|
||||
}
|
||||
@ -26635,7 +26635,7 @@ var core3 = __toESM(require_core(), 1);
|
||||
var github = __toESM(require_github(), 1);
|
||||
import * as fs from "node:fs";
|
||||
|
||||
// node_modules/.pnpm/js-yaml@4.1.1/node_modules/js-yaml/dist/js-yaml.mjs
|
||||
// node_modules/.pnpm/js-yaml@4.1.0/node_modules/js-yaml/dist/js-yaml.mjs
|
||||
function isNothing(subject) {
|
||||
return typeof subject === "undefined" || subject === null;
|
||||
}
|
||||
@ -27499,18 +27499,6 @@ function charFromCodepoint(c) {
|
||||
(c - 65536 & 1023) + 56320
|
||||
);
|
||||
}
|
||||
function setProperty(object, key, value) {
|
||||
if (key === "__proto__") {
|
||||
Object.defineProperty(object, key, {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
value
|
||||
});
|
||||
} else {
|
||||
object[key] = value;
|
||||
}
|
||||
}
|
||||
var simpleEscapeCheck = new Array(256);
|
||||
var simpleEscapeMap = new Array(256);
|
||||
for (i = 0; i < 256; i++) {
|
||||
@ -27630,7 +27618,7 @@ function mergeMappings(state, destination, source, overridableKeys) {
|
||||
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
||||
key = sourceKeys[index];
|
||||
if (!_hasOwnProperty$1.call(destination, key)) {
|
||||
setProperty(destination, key, source[key]);
|
||||
destination[key] = source[key];
|
||||
overridableKeys[key] = true;
|
||||
}
|
||||
}
|
||||
@ -27670,7 +27658,16 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
|
||||
state.position = startPos || state.position;
|
||||
throwError(state, "duplicated mapping key");
|
||||
}
|
||||
setProperty(_result, keyNode, valueNode);
|
||||
if (keyNode === "__proto__") {
|
||||
Object.defineProperty(_result, keyNode, {
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true,
|
||||
value: valueNode
|
||||
});
|
||||
} else {
|
||||
_result[keyNode] = valueNode;
|
||||
}
|
||||
delete overridableKeys[keyNode];
|
||||
}
|
||||
return _result;
|
||||
@ -28834,7 +28831,7 @@ function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, te
|
||||
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
||||
}
|
||||
function writeScalar(state, string, level, iskey, inblock) {
|
||||
state.dump = (function() {
|
||||
state.dump = function() {
|
||||
if (string.length === 0) {
|
||||
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
||||
}
|
||||
@ -28872,7 +28869,7 @@ function writeScalar(state, string, level, iskey, inblock) {
|
||||
default:
|
||||
throw new exception("impossible error: invalid scalar style");
|
||||
}
|
||||
})();
|
||||
}();
|
||||
}
|
||||
function blockHeader(string, indentPerLevel) {
|
||||
var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
||||
@ -28886,12 +28883,12 @@ function dropEndingNewline(string) {
|
||||
}
|
||||
function foldString(string, width) {
|
||||
var lineRe = /(\n+)([^\n]*)/g;
|
||||
var result = (function() {
|
||||
var result = function() {
|
||||
var nextLF = string.indexOf("\n");
|
||||
nextLF = nextLF !== -1 ? nextLF : string.length;
|
||||
lineRe.lastIndex = nextLF;
|
||||
return foldLine(string.slice(0, nextLF), width);
|
||||
})();
|
||||
}();
|
||||
var prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
||||
var moreIndented;
|
||||
var match;
|
||||
@ -29261,7 +29258,7 @@ var Filter = class {
|
||||
}
|
||||
getPatterns(item) {
|
||||
if (Array.isArray(item)) {
|
||||
return item.map((i) => this.getPatterns(i)).flat();
|
||||
return flat(item.map((i) => this.getPatterns(i)));
|
||||
}
|
||||
if (typeof item === "string") {
|
||||
return [item];
|
||||
@ -29272,6 +29269,9 @@ var Filter = class {
|
||||
throw new Error(`Invalid filter YAML format: ${message}.`);
|
||||
}
|
||||
};
|
||||
function flat(arr) {
|
||||
return arr.reduce((acc, val) => acc.concat(val), []);
|
||||
}
|
||||
|
||||
// src/git.ts
|
||||
var core2 = __toESM(require_core(), 1);
|
||||
@ -29786,5 +29786,5 @@ fill-range/index.js:
|
||||
*)
|
||||
|
||||
js-yaml/dist/js-yaml.mjs:
|
||||
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
||||
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
||||
*/
|
||||
|
||||
@ -15,7 +15,7 @@ import { analyzeMetafile, build } from "esbuild";
|
||||
bundle: true,
|
||||
format: "esm",
|
||||
platform: "node",
|
||||
target: ["node24"],
|
||||
target: ["node20"],
|
||||
treeShaking: true,
|
||||
// Ensure require is properly defined: https://github.com/evanw/esbuild/issues/1921
|
||||
banner: {
|
||||
|
||||
38
package.json
38
package.json
@ -28,33 +28,33 @@
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/github": "^6.0.1",
|
||||
"js-yaml": "^4.1.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"micromatch": "^4.0.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3.3.1",
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@eslint/js": "^9.29.0",
|
||||
"@octokit/webhooks-types": "^7.6.1",
|
||||
"@tsconfig/node24": "^24.0.3",
|
||||
"@tsconfig/node20": "^20.1.6",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/micromatch": "^4.0.10",
|
||||
"@types/node": "^24.10.1",
|
||||
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
||||
"@typescript-eslint/parser": "^8.48.0",
|
||||
"chalk": "^5.6.2",
|
||||
"esbuild": "^0.27.0",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-import-resolver-typescript": "^4.4.4",
|
||||
"@types/micromatch": "^4.0.9",
|
||||
"@types/node": "^24.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.34.1",
|
||||
"@typescript-eslint/parser": "^8.34.1",
|
||||
"chalk": "^5.4.1",
|
||||
"esbuild": "^0.25.5",
|
||||
"eslint": "^9.29.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"eslint-import-resolver-typescript": "^4.4.3",
|
||||
"eslint-plugin-github": "^6.0.0",
|
||||
"eslint-plugin-import-x": "^4.16.1",
|
||||
"prettier": "^3.6.2",
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.48.0",
|
||||
"vitest": "^4.0.14"
|
||||
"eslint-plugin-import-x": "^4.15.2",
|
||||
"prettier": "^3.5.3",
|
||||
"typescript": "^5.8.3",
|
||||
"typescript-eslint": "^8.34.1",
|
||||
"vitest": "^3.2.4"
|
||||
},
|
||||
"volta": {
|
||||
"node": "24.11.1",
|
||||
"pnpm": "10.23.0"
|
||||
"node": "20.19.2",
|
||||
"pnpm": "10.12.1"
|
||||
}
|
||||
}
|
||||
|
||||
1452
pnpm-lock.yaml
1452
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,2 @@
|
||||
onlyBuiltDependencies:
|
||||
- esbuild
|
||||
- unrs-resolver
|
||||
|
||||
@ -59,7 +59,7 @@ export class Filter {
|
||||
|
||||
private getPatterns(item: FilterItemYaml): string[] {
|
||||
if (Array.isArray(item)) {
|
||||
return item.map(i => this.getPatterns(i)).flat()
|
||||
return flat(item.map(i => this.getPatterns(i)))
|
||||
}
|
||||
|
||||
if (typeof item === 'string') {
|
||||
@ -73,3 +73,9 @@ export class Filter {
|
||||
throw new Error(`Invalid filter YAML format: ${message}.`)
|
||||
}
|
||||
}
|
||||
|
||||
// Creates a new array with all sub-array elements concatenated
|
||||
// In future could be replaced by Array.prototype.flat (supported on Node.js 11+)
|
||||
function flat<T>(arr: T[][]): T[] {
|
||||
return arr.reduce((acc, val) => acc.concat(val), [])
|
||||
}
|
||||
|
||||
@ -194,7 +194,7 @@ async function getChangedFilesFromApi(token: string, prNumber: PullRequest): Pro
|
||||
// There's no obvious use-case for detection of renames
|
||||
// Therefore we treat it as if rename detection in git diff was turned off.
|
||||
// Rename is replaced by delete of original filename and add of new filename
|
||||
if ((row.status as ChangeStatus) === ChangeStatus.Renamed) {
|
||||
if (row.status === ChangeStatus.Renamed) {
|
||||
files.push({
|
||||
filename: row.filename,
|
||||
status: ChangeStatus.Added
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@tsconfig/node24/tsconfig.json",
|
||||
"extends": "@tsconfig/node20/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user