Compare commits
49 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
05f0aba931 | ||
![]() |
462396174f | ||
![]() |
c19a7eb771 | ||
![]() |
c288441a7d | ||
![]() |
1d6ea46cac | ||
![]() |
02b41f5ff9 | ||
![]() |
b4a4dcabce | ||
![]() |
602aacf949 | ||
![]() |
51290e039a | ||
![]() |
b4badd8cce | ||
![]() |
652b4c06e8 | ||
![]() |
0b7a421316 | ||
![]() |
b26581aca1 | ||
![]() |
43e6b45c5d | ||
![]() |
fe1bc0e3d3 | ||
![]() |
d7917c6584 | ||
![]() |
3f646a3549 | ||
![]() |
6809677b7a | ||
![]() |
4edd678ac3 | ||
![]() |
f08255874b | ||
![]() |
92c02a00a1 | ||
![]() |
b70221184d | ||
![]() |
435fd74b2e | ||
![]() |
0626fa3ff3 | ||
![]() |
8817a797cb | ||
![]() |
54174910be | ||
![]() |
84ef162530 | ||
![]() |
b672a5115a | ||
![]() |
678cdc2808 | ||
![]() |
27b7bbb0ae | ||
![]() |
83610723bb | ||
![]() |
21acf46f4a | ||
![]() |
f356b3c86b | ||
![]() |
66275de060 | ||
![]() |
a16702bf7a | ||
![]() |
aa11897ec4 | ||
![]() |
6513fe1691 | ||
![]() |
45e0c78ac7 | ||
![]() |
a949a8338c | ||
![]() |
1f772e919b | ||
![]() |
684c5e6d94 | ||
![]() |
9d7201ded6 | ||
![]() |
f93ff33629 | ||
![]() |
729c70475c | ||
![]() |
2009d446ac | ||
![]() |
b693fc207f | ||
![]() |
0104c75ccc | ||
![]() |
4d0aab94b6 | ||
![]() |
df3e9932c4 |
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
|||||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
|
||||||
- name: Use Node.js 20.x
|
- name: Use Node.js 20.x
|
||||||
uses: actions/setup-node@v4.0.4
|
uses: actions/setup-node@v4.1.0
|
||||||
with:
|
with:
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
@ -65,6 +65,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT_TOKEN }}
|
token: ${{ secrets.PAT_TOKEN }}
|
||||||
config_path: ".eslintrc.json"
|
config_path: ".eslintrc.json"
|
||||||
|
ignore_path: ".eslintignore"
|
||||||
|
|
||||||
- name: Run build and test
|
- name: Run build and test
|
||||||
run: |
|
run: |
|
||||||
@ -74,6 +75,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Verify Changed files
|
- name: Verify Changed files
|
||||||
uses: tj-actions/verify-changed-files@v20
|
uses: tj-actions/verify-changed-files@v20
|
||||||
|
if: github.actor != 'dependabot[bot]'
|
||||||
id: changed_files
|
id: changed_files
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
|
98
HISTORY.md
98
HISTORY.md
@ -1,5 +1,103 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
# [45.0.4](https://github.com/tj-actions/changed-files/compare/v45.0.3...v45.0.4) - (2024-11-05)
|
||||||
|
|
||||||
|
## <!-- 0 -->🚀 Features
|
||||||
|
|
||||||
|
- Prevent ignore files warning ([#2318](https://github.com/tj-actions/changed-files/issues/2318)) ([1f772e9](https://github.com/tj-actions/changed-files/commit/1f772e919bcbf025d221836bc4b8e3b72e2ef117)) - (Tonye Jack)
|
||||||
|
|
||||||
|
## <!-- 1 -->🐛 Bug Fixes
|
||||||
|
|
||||||
|
- **deps:** Update dependency @actions/core to v1.11.1 ([4d0aab9](https://github.com/tj-actions/changed-files/commit/4d0aab94b6284beb85e6cc3dd23ec0ee523dcca6)) - (renovate[bot])
|
||||||
|
|
||||||
|
## <!-- 16 -->➕ Add
|
||||||
|
|
||||||
|
- Added missing changes and modified dist assets.
|
||||||
|
([9d7201d](https://github.com/tj-actions/changed-files/commit/9d7201ded6d75401ce2b888a4f643a921bfb8604)) - (GitHub Action)
|
||||||
|
- Added missing changes and modified dist assets.
|
||||||
|
([0104c75](https://github.com/tj-actions/changed-files/commit/0104c75ccc49741ff97b817da4cd36887e0c13cd)) - (GitHub Action)
|
||||||
|
|
||||||
|
## <!-- 30 -->📝 Other
|
||||||
|
|
||||||
|
- Step for dependabot PRs ([#2317](https://github.com/tj-actions/changed-files/issues/2317)) ([684c5e6](https://github.com/tj-actions/changed-files/commit/684c5e6d941e3591a9de8182da044dd242dc17c9)) - (Tonye Jack)
|
||||||
|
|
||||||
|
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||||
|
|
||||||
|
- **deps:** Update dependency eslint-plugin-jest to v28.9.0 ([4edd678](https://github.com/tj-actions/changed-files/commit/4edd678ac3f81e2dc578756871e4d00c19191daf)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.9.0 ([f082558](https://github.com/tj-actions/changed-files/commit/f08255874b882608b0d7f6dde476c5756dbfc08c)) - (renovate[bot])
|
||||||
|
- **deps:** Lock file maintenance ([92c02a0](https://github.com/tj-actions/changed-files/commit/92c02a00a1b05d13ef79d053e8e8e4aafc1431cd)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.8.7 ([b702211](https://github.com/tj-actions/changed-files/commit/b70221184d8c03f985dc253d1a84169c4b530010)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.8.6 ([435fd74](https://github.com/tj-actions/changed-files/commit/435fd74b2ec5d115590c1a20ba1101bf9a291563)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.8.5 ([0626fa3](https://github.com/tj-actions/changed-files/commit/0626fa3ff3e2030febaa380334fab666814bd24f)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/lodash to v4.17.13 ([8817a79](https://github.com/tj-actions/changed-files/commit/8817a797cbad83643006b4fafc757bb72a50bd51)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.8.4 ([5417491](https://github.com/tj-actions/changed-files/commit/54174910beb91e8c0eb59a8449720659f72bf24b)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.8.2 ([84ef162](https://github.com/tj-actions/changed-files/commit/84ef16253002b9f411c38d53e45521709f43247e)) - (renovate[bot])
|
||||||
|
- **deps:** Lock file maintenance ([b672a51](https://github.com/tj-actions/changed-files/commit/b672a5115a5ab8c2b27838329a827d3ffda1202c)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.8.1 ([678cdc2](https://github.com/tj-actions/changed-files/commit/678cdc28086f7f6f8762a1934db3e94e7c0cadb4)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.8.0 ([27b7bbb](https://github.com/tj-actions/changed-files/commit/27b7bbb0aeabaa9258fe4bfd52318bbbb9bdbc9c)) - (renovate[bot])
|
||||||
|
- **deps:** Update actions/setup-node action to v4.1.0 ([8361072](https://github.com/tj-actions/changed-files/commit/83610723bb32196f24d5880eca9cd59951b17c69)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.9 ([21acf46](https://github.com/tj-actions/changed-files/commit/21acf46f4af54c16f04ec314f1929b73692c4441)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/jest to v29.5.14 ([f356b3c](https://github.com/tj-actions/changed-files/commit/f356b3c86b5e3dbe272d6579b57cb7344f3e8ea3)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.8 ([66275de](https://github.com/tj-actions/changed-files/commit/66275de0606e56bdce755a9408b1cef1aac91580)) - (renovate[bot])
|
||||||
|
- **deps:** Lock file maintenance ([a16702b](https://github.com/tj-actions/changed-files/commit/a16702bf7a036756d8ef85e34bf2e6cbcd474726)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/lodash to v4.17.12 ([aa11897](https://github.com/tj-actions/changed-files/commit/aa11897ec4afaea2c563502c017812d493d21a90)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.7 ([6513fe1](https://github.com/tj-actions/changed-files/commit/6513fe1691ddc9793b54c3b337d6946cd331ab26)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/lodash to v4.17.11 ([45e0c78](https://github.com/tj-actions/changed-files/commit/45e0c78ac7fad3fc00ec4a92c7d93a3f4489a906)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.6 ([a949a83](https://github.com/tj-actions/changed-files/commit/a949a8338c60e9581f87873ab195f1a23066a4fc)) - (renovate[bot])
|
||||||
|
- **deps:** Lock file maintenance ([f93ff33](https://github.com/tj-actions/changed-files/commit/f93ff336292f0bcab245d8fc70fe7f1a6446464b)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency typescript to v5.6.3 ([729c704](https://github.com/tj-actions/changed-files/commit/729c70475c2976c3d4ca8897d34d9df975a4d05c)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.5 ([2009d44](https://github.com/tj-actions/changed-files/commit/2009d446ac92d696d7df2230847a71ba91db7d4a)) - (renovate[bot])
|
||||||
|
- **deps:** Lock file maintenance ([b693fc2](https://github.com/tj-actions/changed-files/commit/b693fc207f2cd18198a39916698cec17bc8e8d42)) - (renovate[bot])
|
||||||
|
|
||||||
|
## <!-- 9 -->⬆️ Upgrades
|
||||||
|
|
||||||
|
- Upgraded to v45.0.3 ([#2308](https://github.com/tj-actions/changed-files/issues/2308))
|
||||||
|
|
||||||
|
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([df3e993](https://github.com/tj-actions/changed-files/commit/df3e9932c48cda43e6e09567f3a1ce1b38ca76e9)) - (tj-actions[bot])
|
||||||
|
|
||||||
|
# [45.0.3](https://github.com/tj-actions/changed-files/compare/v45.0.2...v45.0.3) - (2024-10-03)
|
||||||
|
|
||||||
|
## <!-- 1 -->🐛 Bug Fixes
|
||||||
|
|
||||||
|
- Overwriting yaml filter patterns ([#2307](https://github.com/tj-actions/changed-files/issues/2307)) ([c3a1bb2](https://github.com/tj-actions/changed-files/commit/c3a1bb2c992d77180ae65be6ae6c166cf40f857c)) - (Tonye Jack)
|
||||||
|
- **deps:** Update dependency @actions/core to v1.11.0 ([9d4f8fe](https://github.com/tj-actions/changed-files/commit/9d4f8fea5842800088922c102ca4538178833673)) - (renovate[bot])
|
||||||
|
- Bug with files ignore yaml patterns not filtering the list of files ([#2304](https://github.com/tj-actions/changed-files/issues/2304)) ([d0cf164](https://github.com/tj-actions/changed-files/commit/d0cf1645b795cec63a72fbe846e317bf9178b010)) - (Tonye Jack)
|
||||||
|
- Test for since last remote commit check on pull_request closed ([#2295](https://github.com/tj-actions/changed-files/issues/2295)) ([e753fb0](https://github.com/tj-actions/changed-files/commit/e753fb0a6337371498559e2a3aba56403f65b949)) - (Tonye Jack)
|
||||||
|
|
||||||
|
## <!-- 16 -->➕ Add
|
||||||
|
|
||||||
|
- Added missing changes and modified dist assets.
|
||||||
|
([36d5b9d](https://github.com/tj-actions/changed-files/commit/36d5b9dda5f13e931f09f5033a176efb2f03e605)) - (GitHub Action)
|
||||||
|
- Added missing changes and modified dist assets.
|
||||||
|
([4dbe54f](https://github.com/tj-actions/changed-files/commit/4dbe54f96e17faab8feb2c0c323ff84faa4512d2)) - (GitHub Action)
|
||||||
|
|
||||||
|
## <!-- 3 -->📚 Documentation
|
||||||
|
|
||||||
|
- Update README.md ([#2300](https://github.com/tj-actions/changed-files/issues/2300)) ([641e22a](https://github.com/tj-actions/changed-files/commit/641e22af4a94c93fb947ec20045f1ea036579b71)) - (Tonye Jack)
|
||||||
|
- Update README.md ([#2296](https://github.com/tj-actions/changed-files/issues/2296)) ([1a71128](https://github.com/tj-actions/changed-files/commit/1a71128b6a67056616a4284adea37ae02b564f16)) - (Tonye Jack)
|
||||||
|
|
||||||
|
## <!-- 7 -->⚙️ Miscellaneous Tasks
|
||||||
|
|
||||||
|
- **deps:** Update dependency @types/lodash to v4.17.10 ([27843f1](https://github.com/tj-actions/changed-files/commit/27843f166754bb92655dfb6102aaa76ee2faf762)) - (renovate[bot])
|
||||||
|
- **deps:** Lock file maintenance ([8a4a975](https://github.com/tj-actions/changed-files/commit/8a4a9757b70fd0abbb3230709dd2efe832689c93)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.4 ([6bfa9e7](https://github.com/tj-actions/changed-files/commit/6bfa9e7a9a0cf32f41834ac67d934c8930978a10)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.3 ([625dbd6](https://github.com/tj-actions/changed-files/commit/625dbd682e29fb911c89c6a72b0e723206519c2c)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.2 ([c29c1d3](https://github.com/tj-actions/changed-files/commit/c29c1d3dd08b5aa5936b4f5eb5916104e8eb028b)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.7.0 ([e21f1a3](https://github.com/tj-actions/changed-files/commit/e21f1a3077058afe256713170452e771df5b8693)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/node to v22.6.1 ([792230f](https://github.com/tj-actions/changed-files/commit/792230fcedfb6be06f8b82405336b8c64d072307)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @vercel/ncc to v0.38.2 ([537f1c6](https://github.com/tj-actions/changed-files/commit/537f1c63183dc57ec71788609090fd4eb34d0645)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency @types/lodash to v4.17.9 ([82587d8](https://github.com/tj-actions/changed-files/commit/82587d885833b45b38f65922b2bab11734b2e666)) - (renovate[bot])
|
||||||
|
- **deps:** Lock file maintenance ([eda64a6](https://github.com/tj-actions/changed-files/commit/eda64a62bda002f91918e506fa907562d648e723)) - (renovate[bot])
|
||||||
|
- **deps:** Update actions/setup-node action to v4.0.4 ([4d5444c](https://github.com/tj-actions/changed-files/commit/4d5444c2c31b579919a04a4452abc5d87e4646ad)) - (renovate[bot])
|
||||||
|
- **deps:** Update peter-evans/create-pull-request action to v7.0.5 ([c2e104b](https://github.com/tj-actions/changed-files/commit/c2e104be2f2a434709460be32ce45f24994f8bd4)) - (renovate[bot])
|
||||||
|
- **deps:** Update dependency eslint to v8.57.1 ([eed685a](https://github.com/tj-actions/changed-files/commit/eed685a419db057cbbbc6590e9ecec893f8e5c27)) - (renovate[bot])
|
||||||
|
|
||||||
|
## <!-- 9 -->⬆️ Upgrades
|
||||||
|
|
||||||
|
- Upgraded to v45.0.2 ([#2282](https://github.com/tj-actions/changed-files/issues/2282))
|
||||||
|
|
||||||
|
Co-authored-by: jackton1 <17484350+jackton1@users.noreply.github.com> ([6f538bb](https://github.com/tj-actions/changed-files/commit/6f538bb83f28b3289d5cd90d638bbdca3e478ebe)) - (tj-actions[bot])
|
||||||
|
|
||||||
# [45.0.2](https://github.com/tj-actions/changed-files/compare/v45.0.1...v45.0.2) - (2024-09-16)
|
# [45.0.2](https://github.com/tj-actions/changed-files/compare/v45.0.1...v45.0.2) - (2024-09-16)
|
||||||
|
|
||||||
## <!-- 1 -->🐛 Bug Fixes
|
## <!-- 1 -->🐛 Bug Fixes
|
||||||
|
414
dist/index.js
generated
vendored
414
dist/index.js
generated
vendored
@ -22,13 +22,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
@ -395,13 +405,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
@ -828,13 +848,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getSHAForPullRequestEvent = exports.getSHAForNonPullRequestEvent = void 0;
|
exports.getSHAForPullRequestEvent = exports.getSHAForNonPullRequestEvent = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
@ -1392,13 +1422,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getInputs = void 0;
|
exports.getInputs = void 0;
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
@ -1640,13 +1680,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
@ -1887,13 +1937,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
}) : function(o, v) {
|
}) : function(o, v) {
|
||||||
o["default"] = v;
|
o["default"] = v;
|
||||||
});
|
});
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || (function () {
|
||||||
if (mod && mod.__esModule) return mod;
|
var ownKeys = function(o) {
|
||||||
var result = {};
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
var ar = [];
|
||||||
__setModuleDefault(result, mod);
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
||||||
return result;
|
return ar;
|
||||||
};
|
};
|
||||||
|
return ownKeys(o);
|
||||||
|
};
|
||||||
|
return function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
})();
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
@ -3423,6 +3483,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
|
exports.prepareKeyValueMessage = exports.issueFileCommand = void 0;
|
||||||
// We use any as a valid input type
|
// We use any as a valid input type
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
|
const crypto = __importStar(__nccwpck_require__(6982));
|
||||||
const fs = __importStar(__nccwpck_require__(9896));
|
const fs = __importStar(__nccwpck_require__(9896));
|
||||||
const os = __importStar(__nccwpck_require__(857));
|
const os = __importStar(__nccwpck_require__(857));
|
||||||
const utils_1 = __nccwpck_require__(302);
|
const utils_1 = __nccwpck_require__(302);
|
||||||
@ -62470,6 +62531,7 @@ function composeDoc(options, directives, { offset, start, value, end }, onError)
|
|||||||
const opts = Object.assign({ _directives: directives }, options);
|
const opts = Object.assign({ _directives: directives }, options);
|
||||||
const doc = new Document.Document(undefined, opts);
|
const doc = new Document.Document(undefined, opts);
|
||||||
const ctx = {
|
const ctx = {
|
||||||
|
atKey: false,
|
||||||
atRoot: true,
|
atRoot: true,
|
||||||
directives: doc.directives,
|
directives: doc.directives,
|
||||||
options: doc.options,
|
options: doc.options,
|
||||||
@ -62514,6 +62576,7 @@ exports.composeDoc = composeDoc;
|
|||||||
|
|
||||||
|
|
||||||
var Alias = __nccwpck_require__(4065);
|
var Alias = __nccwpck_require__(4065);
|
||||||
|
var identity = __nccwpck_require__(1127);
|
||||||
var composeCollection = __nccwpck_require__(7349);
|
var composeCollection = __nccwpck_require__(7349);
|
||||||
var composeScalar = __nccwpck_require__(5413);
|
var composeScalar = __nccwpck_require__(5413);
|
||||||
var resolveEnd = __nccwpck_require__(7788);
|
var resolveEnd = __nccwpck_require__(7788);
|
||||||
@ -62521,6 +62584,7 @@ var utilEmptyScalarPosition = __nccwpck_require__(2599);
|
|||||||
|
|
||||||
const CN = { composeNode, composeEmptyNode };
|
const CN = { composeNode, composeEmptyNode };
|
||||||
function composeNode(ctx, token, props, onError) {
|
function composeNode(ctx, token, props, onError) {
|
||||||
|
const atKey = ctx.atKey;
|
||||||
const { spaceBefore, comment, anchor, tag } = props;
|
const { spaceBefore, comment, anchor, tag } = props;
|
||||||
let node;
|
let node;
|
||||||
let isSrcToken = true;
|
let isSrcToken = true;
|
||||||
@ -62556,6 +62620,14 @@ function composeNode(ctx, token, props, onError) {
|
|||||||
}
|
}
|
||||||
if (anchor && node.anchor === '')
|
if (anchor && node.anchor === '')
|
||||||
onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string');
|
onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string');
|
||||||
|
if (atKey &&
|
||||||
|
ctx.options.stringKeys &&
|
||||||
|
(!identity.isScalar(node) ||
|
||||||
|
typeof node.value !== 'string' ||
|
||||||
|
(node.tag && node.tag !== 'tag:yaml.org,2002:str'))) {
|
||||||
|
const msg = 'With stringKeys, all keys must be strings';
|
||||||
|
onError(tag ?? token, 'NON_STRING_KEY', msg);
|
||||||
|
}
|
||||||
if (spaceBefore)
|
if (spaceBefore)
|
||||||
node.spaceBefore = true;
|
node.spaceBefore = true;
|
||||||
if (comment) {
|
if (comment) {
|
||||||
@ -62628,11 +62700,16 @@ function composeScalar(ctx, token, tagToken, onError) {
|
|||||||
const tagName = tagToken
|
const tagName = tagToken
|
||||||
? ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg))
|
? ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg))
|
||||||
: null;
|
: null;
|
||||||
const tag = tagToken && tagName
|
let tag;
|
||||||
? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError)
|
if (ctx.options.stringKeys && ctx.atKey) {
|
||||||
: token.type === 'scalar'
|
tag = ctx.schema[identity.SCALAR];
|
||||||
? findScalarTagByTest(ctx, value, token, onError)
|
}
|
||||||
: ctx.schema[identity.SCALAR];
|
else if (tagName)
|
||||||
|
tag = findScalarTagByName(ctx.schema, value, tagName, tagToken, onError);
|
||||||
|
else if (token.type === 'scalar')
|
||||||
|
tag = findScalarTagByTest(ctx, value, token, onError);
|
||||||
|
else
|
||||||
|
tag = ctx.schema[identity.SCALAR];
|
||||||
let scalar;
|
let scalar;
|
||||||
try {
|
try {
|
||||||
const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options);
|
const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options);
|
||||||
@ -62680,8 +62757,9 @@ function findScalarTagByName(schema, value, tagName, tagToken, onError) {
|
|||||||
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str');
|
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str');
|
||||||
return schema[identity.SCALAR];
|
return schema[identity.SCALAR];
|
||||||
}
|
}
|
||||||
function findScalarTagByTest({ directives, schema }, value, token, onError) {
|
function findScalarTagByTest({ atKey, directives, schema }, value, token, onError) {
|
||||||
const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[identity.SCALAR];
|
const tag = schema.tags.find(tag => (tag.default === true || (atKey && tag.default === 'key')) &&
|
||||||
|
tag.test?.test(value)) || schema[identity.SCALAR];
|
||||||
if (schema.compat) {
|
if (schema.compat) {
|
||||||
const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ??
|
const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ??
|
||||||
schema[identity.SCALAR];
|
schema[identity.SCALAR];
|
||||||
@ -62987,12 +63065,14 @@ function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, ta
|
|||||||
onError(offset, 'BAD_INDENT', startColMsg);
|
onError(offset, 'BAD_INDENT', startColMsg);
|
||||||
}
|
}
|
||||||
// key value
|
// key value
|
||||||
|
ctx.atKey = true;
|
||||||
const keyStart = keyProps.end;
|
const keyStart = keyProps.end;
|
||||||
const keyNode = key
|
const keyNode = key
|
||||||
? composeNode(ctx, key, keyProps, onError)
|
? composeNode(ctx, key, keyProps, onError)
|
||||||
: composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
: composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
||||||
if (ctx.schema.compat)
|
if (ctx.schema.compat)
|
||||||
utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError);
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError);
|
||||||
|
ctx.atKey = false;
|
||||||
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
||||||
onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique');
|
onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique');
|
||||||
// value properties
|
// value properties
|
||||||
@ -63275,6 +63355,8 @@ function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, ta
|
|||||||
const seq = new NodeClass(ctx.schema);
|
const seq = new NodeClass(ctx.schema);
|
||||||
if (ctx.atRoot)
|
if (ctx.atRoot)
|
||||||
ctx.atRoot = false;
|
ctx.atRoot = false;
|
||||||
|
if (ctx.atKey)
|
||||||
|
ctx.atKey = false;
|
||||||
let offset = bs.offset;
|
let offset = bs.offset;
|
||||||
let commentEnd = null;
|
let commentEnd = null;
|
||||||
for (const { start, value } of bs.items) {
|
for (const { start, value } of bs.items) {
|
||||||
@ -63390,6 +63472,8 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
|
|||||||
const atRoot = ctx.atRoot;
|
const atRoot = ctx.atRoot;
|
||||||
if (atRoot)
|
if (atRoot)
|
||||||
ctx.atRoot = false;
|
ctx.atRoot = false;
|
||||||
|
if (ctx.atKey)
|
||||||
|
ctx.atKey = false;
|
||||||
let offset = fc.offset + fc.start.source.length;
|
let offset = fc.offset + fc.start.source.length;
|
||||||
for (let i = 0; i < fc.items.length; ++i) {
|
for (let i = 0; i < fc.items.length; ++i) {
|
||||||
const collItem = fc.items[i];
|
const collItem = fc.items[i];
|
||||||
@ -63469,12 +63553,14 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
|
|||||||
else {
|
else {
|
||||||
// item is a key+value pair
|
// item is a key+value pair
|
||||||
// key value
|
// key value
|
||||||
|
ctx.atKey = true;
|
||||||
const keyStart = props.end;
|
const keyStart = props.end;
|
||||||
const keyNode = key
|
const keyNode = key
|
||||||
? composeNode(ctx, key, props, onError)
|
? composeNode(ctx, key, props, onError)
|
||||||
: composeEmptyNode(ctx, keyStart, start, null, props, onError);
|
: composeEmptyNode(ctx, keyStart, start, null, props, onError);
|
||||||
if (isBlock(key))
|
if (isBlock(key))
|
||||||
onError(keyNode.range, 'BLOCK_IN_FLOW', blockMsg);
|
onError(keyNode.range, 'BLOCK_IN_FLOW', blockMsg);
|
||||||
|
ctx.atKey = false;
|
||||||
// value properties
|
// value properties
|
||||||
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
||||||
flow: fcName,
|
flow: fcName,
|
||||||
@ -64088,11 +64174,7 @@ function mapIncludes(ctx, items, search) {
|
|||||||
return false;
|
return false;
|
||||||
const isEqual = typeof uniqueKeys === 'function'
|
const isEqual = typeof uniqueKeys === 'function'
|
||||||
? uniqueKeys
|
? uniqueKeys
|
||||||
: (a, b) => a === b ||
|
: (a, b) => a === b || (identity.isScalar(a) && identity.isScalar(b) && a.value === b.value);
|
||||||
(identity.isScalar(a) &&
|
|
||||||
identity.isScalar(b) &&
|
|
||||||
a.value === b.value &&
|
|
||||||
!(a.value === '<<' && ctx.schema.merge));
|
|
||||||
return items.some(pair => isEqual(pair.key, search));
|
return items.some(pair => isEqual(pair.key, search));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64144,6 +64226,7 @@ class Document {
|
|||||||
logLevel: 'warn',
|
logLevel: 'warn',
|
||||||
prettyErrors: true,
|
prettyErrors: true,
|
||||||
strict: true,
|
strict: true,
|
||||||
|
stringKeys: false,
|
||||||
uniqueKeys: true,
|
uniqueKeys: true,
|
||||||
version: '1.2'
|
version: '1.2'
|
||||||
}, options);
|
}, options);
|
||||||
@ -64367,7 +64450,7 @@ class Document {
|
|||||||
this.directives.yaml.version = '1.1';
|
this.directives.yaml.version = '1.1';
|
||||||
else
|
else
|
||||||
this.directives = new directives.Directives({ version: '1.1' });
|
this.directives = new directives.Directives({ version: '1.1' });
|
||||||
opt = { merge: true, resolveKnownTags: false, schema: 'yaml-1.1' };
|
opt = { resolveKnownTags: false, schema: 'yaml-1.1' };
|
||||||
break;
|
break;
|
||||||
case '1.2':
|
case '1.2':
|
||||||
case 'next':
|
case 'next':
|
||||||
@ -64375,7 +64458,7 @@ class Document {
|
|||||||
this.directives.yaml.version = version;
|
this.directives.yaml.version = version;
|
||||||
else
|
else
|
||||||
this.directives = new directives.Directives({ version });
|
this.directives = new directives.Directives({ version });
|
||||||
opt = { merge: false, resolveKnownTags: true, schema: 'core' };
|
opt = { resolveKnownTags: true, schema: 'core' };
|
||||||
break;
|
break;
|
||||||
case null:
|
case null:
|
||||||
if (this.directives)
|
if (this.directives)
|
||||||
@ -65718,24 +65801,17 @@ exports.YAMLSeq = YAMLSeq;
|
|||||||
|
|
||||||
|
|
||||||
var log = __nccwpck_require__(7249);
|
var log = __nccwpck_require__(7249);
|
||||||
|
var merge = __nccwpck_require__(452);
|
||||||
var stringify = __nccwpck_require__(2148);
|
var stringify = __nccwpck_require__(2148);
|
||||||
var identity = __nccwpck_require__(1127);
|
var identity = __nccwpck_require__(1127);
|
||||||
var Scalar = __nccwpck_require__(3301);
|
|
||||||
var toJS = __nccwpck_require__(6424);
|
var toJS = __nccwpck_require__(6424);
|
||||||
|
|
||||||
const MERGE_KEY = '<<';
|
|
||||||
function addPairToJSMap(ctx, map, { key, value }) {
|
function addPairToJSMap(ctx, map, { key, value }) {
|
||||||
if (ctx?.doc.schema.merge && isMergeKey(key)) {
|
if (identity.isNode(key) && key.addToJSMap)
|
||||||
value = identity.isAlias(value) ? value.resolve(ctx.doc) : value;
|
key.addToJSMap(ctx, map, value);
|
||||||
if (identity.isSeq(value))
|
// TODO: Should drop this special case for bare << handling
|
||||||
for (const it of value.items)
|
else if (merge.isMergeKey(ctx, key))
|
||||||
mergeToJSMap(ctx, map, it);
|
merge.addMergeToJSMap(ctx, map, value);
|
||||||
else if (Array.isArray(value))
|
|
||||||
for (const it of value)
|
|
||||||
mergeToJSMap(ctx, map, it);
|
|
||||||
else
|
|
||||||
mergeToJSMap(ctx, map, value);
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
const jsKey = toJS.toJS(key, '', ctx);
|
const jsKey = toJS.toJS(key, '', ctx);
|
||||||
if (map instanceof Map) {
|
if (map instanceof Map) {
|
||||||
@ -65760,41 +65836,6 @@ function addPairToJSMap(ctx, map, { key, value }) {
|
|||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
const isMergeKey = (key) => key === MERGE_KEY ||
|
|
||||||
(identity.isScalar(key) &&
|
|
||||||
key.value === MERGE_KEY &&
|
|
||||||
(!key.type || key.type === Scalar.Scalar.PLAIN));
|
|
||||||
// If the value associated with a merge key is a single mapping node, each of
|
|
||||||
// its key/value pairs is inserted into the current mapping, unless the key
|
|
||||||
// already exists in it. If the value associated with the merge key is a
|
|
||||||
// sequence, then this sequence is expected to contain mapping nodes and each
|
|
||||||
// of these nodes is merged in turn according to its order in the sequence.
|
|
||||||
// Keys in mapping nodes earlier in the sequence override keys specified in
|
|
||||||
// later mapping nodes. -- http://yaml.org/type/merge.html
|
|
||||||
function mergeToJSMap(ctx, map, value) {
|
|
||||||
const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
||||||
if (!identity.isMap(source))
|
|
||||||
throw new Error('Merge sources must be maps or map aliases');
|
|
||||||
const srcMap = source.toJSON(null, ctx, Map);
|
|
||||||
for (const [key, value] of srcMap) {
|
|
||||||
if (map instanceof Map) {
|
|
||||||
if (!map.has(key))
|
|
||||||
map.set(key, value);
|
|
||||||
}
|
|
||||||
else if (map instanceof Set) {
|
|
||||||
map.add(key);
|
|
||||||
}
|
|
||||||
else if (!Object.prototype.hasOwnProperty.call(map, key)) {
|
|
||||||
Object.defineProperty(map, key, {
|
|
||||||
value,
|
|
||||||
writable: true,
|
|
||||||
enumerable: true,
|
|
||||||
configurable: true
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
function stringifyKey(key, jsKey, ctx) {
|
function stringifyKey(key, jsKey, ctx) {
|
||||||
if (jsKey === null)
|
if (jsKey === null)
|
||||||
return '';
|
return '';
|
||||||
@ -68209,6 +68250,7 @@ var composer = __nccwpck_require__(9984);
|
|||||||
var Document = __nccwpck_require__(3021);
|
var Document = __nccwpck_require__(3021);
|
||||||
var errors = __nccwpck_require__(1464);
|
var errors = __nccwpck_require__(1464);
|
||||||
var log = __nccwpck_require__(7249);
|
var log = __nccwpck_require__(7249);
|
||||||
|
var identity = __nccwpck_require__(1127);
|
||||||
var lineCounter = __nccwpck_require__(6628);
|
var lineCounter = __nccwpck_require__(6628);
|
||||||
var parser = __nccwpck_require__(3456);
|
var parser = __nccwpck_require__(3456);
|
||||||
|
|
||||||
@ -68300,6 +68342,8 @@ function stringify(value, replacer, options) {
|
|||||||
if (!keepUndefined)
|
if (!keepUndefined)
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
if (identity.isDocument(value) && !_replacer)
|
||||||
|
return value.toString(options);
|
||||||
return new Document.Document(value, _replacer, options).toString(options);
|
return new Document.Document(value, _replacer, options).toString(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68331,10 +68375,9 @@ class Schema {
|
|||||||
: compat
|
: compat
|
||||||
? tags.getTags(null, compat)
|
? tags.getTags(null, compat)
|
||||||
: null;
|
: null;
|
||||||
this.merge = !!merge;
|
|
||||||
this.name = (typeof schema === 'string' && schema) || 'core';
|
this.name = (typeof schema === 'string' && schema) || 'core';
|
||||||
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
||||||
this.tags = tags.getTags(customTags, this.name);
|
this.tags = tags.getTags(customTags, this.name, merge);
|
||||||
this.toStringOptions = toStringDefaults ?? null;
|
this.toStringOptions = toStringDefaults ?? null;
|
||||||
Object.defineProperty(this, identity.MAP, { value: map.map });
|
Object.defineProperty(this, identity.MAP, { value: map.map });
|
||||||
Object.defineProperty(this, identity.SCALAR, { value: string.string });
|
Object.defineProperty(this, identity.SCALAR, { value: string.string });
|
||||||
@ -68664,7 +68707,7 @@ const jsonScalars = [
|
|||||||
identify: value => typeof value === 'boolean',
|
identify: value => typeof value === 'boolean',
|
||||||
default: true,
|
default: true,
|
||||||
tag: 'tag:yaml.org,2002:bool',
|
tag: 'tag:yaml.org,2002:bool',
|
||||||
test: /^true|false$/,
|
test: /^true$|^false$/,
|
||||||
resolve: str => str === 'true',
|
resolve: str => str === 'true',
|
||||||
stringify: stringifyJSON
|
stringify: stringifyJSON
|
||||||
},
|
},
|
||||||
@ -68717,6 +68760,7 @@ var int = __nccwpck_require__(9874);
|
|||||||
var schema = __nccwpck_require__(896);
|
var schema = __nccwpck_require__(896);
|
||||||
var schema$1 = __nccwpck_require__(3559);
|
var schema$1 = __nccwpck_require__(3559);
|
||||||
var binary = __nccwpck_require__(6083);
|
var binary = __nccwpck_require__(6083);
|
||||||
|
var merge = __nccwpck_require__(452);
|
||||||
var omap = __nccwpck_require__(303);
|
var omap = __nccwpck_require__(303);
|
||||||
var pairs = __nccwpck_require__(8385);
|
var pairs = __nccwpck_require__(8385);
|
||||||
var schema$2 = __nccwpck_require__(8294);
|
var schema$2 = __nccwpck_require__(8294);
|
||||||
@ -68742,6 +68786,7 @@ const tagsByName = {
|
|||||||
intOct: int.intOct,
|
intOct: int.intOct,
|
||||||
intTime: timestamp.intTime,
|
intTime: timestamp.intTime,
|
||||||
map: map.map,
|
map: map.map,
|
||||||
|
merge: merge.merge,
|
||||||
null: _null.nullTag,
|
null: _null.nullTag,
|
||||||
omap: omap.omap,
|
omap: omap.omap,
|
||||||
pairs: pairs.pairs,
|
pairs: pairs.pairs,
|
||||||
@ -68751,13 +68796,20 @@ const tagsByName = {
|
|||||||
};
|
};
|
||||||
const coreKnownTags = {
|
const coreKnownTags = {
|
||||||
'tag:yaml.org,2002:binary': binary.binary,
|
'tag:yaml.org,2002:binary': binary.binary,
|
||||||
|
'tag:yaml.org,2002:merge': merge.merge,
|
||||||
'tag:yaml.org,2002:omap': omap.omap,
|
'tag:yaml.org,2002:omap': omap.omap,
|
||||||
'tag:yaml.org,2002:pairs': pairs.pairs,
|
'tag:yaml.org,2002:pairs': pairs.pairs,
|
||||||
'tag:yaml.org,2002:set': set.set,
|
'tag:yaml.org,2002:set': set.set,
|
||||||
'tag:yaml.org,2002:timestamp': timestamp.timestamp
|
'tag:yaml.org,2002:timestamp': timestamp.timestamp
|
||||||
};
|
};
|
||||||
function getTags(customTags, schemaName) {
|
function getTags(customTags, schemaName, addMergeTag) {
|
||||||
let tags = schemas.get(schemaName);
|
const schemaTags = schemas.get(schemaName);
|
||||||
|
if (schemaTags && !customTags) {
|
||||||
|
return addMergeTag && !schemaTags.includes(merge.merge)
|
||||||
|
? schemaTags.concat(merge.merge)
|
||||||
|
: schemaTags.slice();
|
||||||
|
}
|
||||||
|
let tags = schemaTags;
|
||||||
if (!tags) {
|
if (!tags) {
|
||||||
if (Array.isArray(customTags))
|
if (Array.isArray(customTags))
|
||||||
tags = [];
|
tags = [];
|
||||||
@ -68776,17 +68828,21 @@ function getTags(customTags, schemaName) {
|
|||||||
else if (typeof customTags === 'function') {
|
else if (typeof customTags === 'function') {
|
||||||
tags = customTags(tags.slice());
|
tags = customTags(tags.slice());
|
||||||
}
|
}
|
||||||
return tags.map(tag => {
|
if (addMergeTag)
|
||||||
if (typeof tag !== 'string')
|
tags = tags.concat(merge.merge);
|
||||||
return tag;
|
return tags.reduce((tags, tag) => {
|
||||||
const tagObj = tagsByName[tag];
|
const tagObj = typeof tag === 'string' ? tagsByName[tag] : tag;
|
||||||
if (tagObj)
|
if (!tagObj) {
|
||||||
return tagObj;
|
const tagName = JSON.stringify(tag);
|
||||||
const keys = Object.keys(tagsByName)
|
const keys = Object.keys(tagsByName)
|
||||||
.map(key => JSON.stringify(key))
|
.map(key => JSON.stringify(key))
|
||||||
.join(', ');
|
.join(', ');
|
||||||
throw new Error(`Unknown custom tag "${tag}"; use one of ${keys}`);
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
||||||
});
|
}
|
||||||
|
if (!tags.includes(tagObj))
|
||||||
|
tags.push(tagObj);
|
||||||
|
return tags;
|
||||||
|
}, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.coreKnownTags = coreKnownTags;
|
exports.coreKnownTags = coreKnownTags;
|
||||||
@ -69048,6 +69104,82 @@ exports.intHex = intHex;
|
|||||||
exports.intOct = intOct;
|
exports.intOct = intOct;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 452:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var identity = __nccwpck_require__(1127);
|
||||||
|
var Scalar = __nccwpck_require__(3301);
|
||||||
|
|
||||||
|
// If the value associated with a merge key is a single mapping node, each of
|
||||||
|
// its key/value pairs is inserted into the current mapping, unless the key
|
||||||
|
// already exists in it. If the value associated with the merge key is a
|
||||||
|
// sequence, then this sequence is expected to contain mapping nodes and each
|
||||||
|
// of these nodes is merged in turn according to its order in the sequence.
|
||||||
|
// Keys in mapping nodes earlier in the sequence override keys specified in
|
||||||
|
// later mapping nodes. -- http://yaml.org/type/merge.html
|
||||||
|
const MERGE_KEY = '<<';
|
||||||
|
const merge = {
|
||||||
|
identify: value => value === MERGE_KEY ||
|
||||||
|
(typeof value === 'symbol' && value.description === MERGE_KEY),
|
||||||
|
default: 'key',
|
||||||
|
tag: 'tag:yaml.org,2002:merge',
|
||||||
|
test: /^<<$/,
|
||||||
|
resolve: () => Object.assign(new Scalar.Scalar(Symbol(MERGE_KEY)), {
|
||||||
|
addToJSMap: addMergeToJSMap
|
||||||
|
}),
|
||||||
|
stringify: () => MERGE_KEY
|
||||||
|
};
|
||||||
|
const isMergeKey = (ctx, key) => (merge.identify(key) ||
|
||||||
|
(identity.isScalar(key) &&
|
||||||
|
(!key.type || key.type === Scalar.Scalar.PLAIN) &&
|
||||||
|
merge.identify(key.value))) &&
|
||||||
|
ctx?.doc.schema.tags.some(tag => tag.tag === merge.tag && tag.default);
|
||||||
|
function addMergeToJSMap(ctx, map, value) {
|
||||||
|
value = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
|
||||||
|
if (identity.isSeq(value))
|
||||||
|
for (const it of value.items)
|
||||||
|
mergeValue(ctx, map, it);
|
||||||
|
else if (Array.isArray(value))
|
||||||
|
for (const it of value)
|
||||||
|
mergeValue(ctx, map, it);
|
||||||
|
else
|
||||||
|
mergeValue(ctx, map, value);
|
||||||
|
}
|
||||||
|
function mergeValue(ctx, map, value) {
|
||||||
|
const source = ctx && identity.isAlias(value) ? value.resolve(ctx.doc) : value;
|
||||||
|
if (!identity.isMap(source))
|
||||||
|
throw new Error('Merge sources must be maps or map aliases');
|
||||||
|
const srcMap = source.toJSON(null, ctx, Map);
|
||||||
|
for (const [key, value] of srcMap) {
|
||||||
|
if (map instanceof Map) {
|
||||||
|
if (!map.has(key))
|
||||||
|
map.set(key, value);
|
||||||
|
}
|
||||||
|
else if (map instanceof Set) {
|
||||||
|
map.add(key);
|
||||||
|
}
|
||||||
|
else if (!Object.prototype.hasOwnProperty.call(map, key)) {
|
||||||
|
Object.defineProperty(map, key, {
|
||||||
|
value,
|
||||||
|
writable: true,
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.addMergeToJSMap = addMergeToJSMap;
|
||||||
|
exports.isMergeKey = isMergeKey;
|
||||||
|
exports.merge = merge;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 303:
|
/***/ 303:
|
||||||
@ -69239,6 +69371,7 @@ var binary = __nccwpck_require__(6083);
|
|||||||
var bool = __nccwpck_require__(8398);
|
var bool = __nccwpck_require__(8398);
|
||||||
var float = __nccwpck_require__(5782);
|
var float = __nccwpck_require__(5782);
|
||||||
var int = __nccwpck_require__(873);
|
var int = __nccwpck_require__(873);
|
||||||
|
var merge = __nccwpck_require__(452);
|
||||||
var omap = __nccwpck_require__(303);
|
var omap = __nccwpck_require__(303);
|
||||||
var pairs = __nccwpck_require__(8385);
|
var pairs = __nccwpck_require__(8385);
|
||||||
var set = __nccwpck_require__(1528);
|
var set = __nccwpck_require__(1528);
|
||||||
@ -69259,6 +69392,7 @@ const schema = [
|
|||||||
float.floatExp,
|
float.floatExp,
|
||||||
float.float,
|
float.float,
|
||||||
binary.binary,
|
binary.binary,
|
||||||
|
merge.merge,
|
||||||
omap.omap,
|
omap.omap,
|
||||||
pairs.pairs,
|
pairs.pairs,
|
||||||
set.set,
|
set.set,
|
||||||
@ -69479,7 +69613,7 @@ const timestamp = {
|
|||||||
}
|
}
|
||||||
return new Date(date);
|
return new Date(date);
|
||||||
},
|
},
|
||||||
stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '')
|
stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, '')
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.floatTime = floatTime;
|
exports.floatTime = floatTime;
|
||||||
@ -69710,7 +69844,12 @@ function getTagObject(tags, item) {
|
|||||||
let obj;
|
let obj;
|
||||||
if (identity.isScalar(item)) {
|
if (identity.isScalar(item)) {
|
||||||
obj = item.value;
|
obj = item.value;
|
||||||
const match = tags.filter(t => t.identify?.(obj));
|
let match = tags.filter(t => t.identify?.(obj));
|
||||||
|
if (match.length > 1) {
|
||||||
|
const testMatch = match.filter(t => t.test);
|
||||||
|
if (testMatch.length > 0)
|
||||||
|
match = testMatch;
|
||||||
|
}
|
||||||
tagObj =
|
tagObj =
|
||||||
match.find(t => t.format === item.format) ?? match.find(t => !t.format);
|
match.find(t => t.format === item.format) ?? match.find(t => !t.format);
|
||||||
}
|
}
|
||||||
@ -70484,23 +70623,32 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
|
|||||||
start = start.replace(/\n+/g, `$&${indent}`);
|
start = start.replace(/\n+/g, `$&${indent}`);
|
||||||
}
|
}
|
||||||
const indentSize = indent ? '2' : '1'; // root is at -1
|
const indentSize = indent ? '2' : '1'; // root is at -1
|
||||||
let header = (literal ? '|' : '>') + (startWithSpace ? indentSize : '') + chomp;
|
// Leading | or > is added later
|
||||||
|
let header = (startWithSpace ? indentSize : '') + chomp;
|
||||||
if (comment) {
|
if (comment) {
|
||||||
header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' '));
|
header += ' ' + commentString(comment.replace(/ ?[\r\n]+/g, ' '));
|
||||||
if (onComment)
|
if (onComment)
|
||||||
onComment();
|
onComment();
|
||||||
}
|
}
|
||||||
if (literal) {
|
if (!literal) {
|
||||||
value = value.replace(/\n+/g, `$&${indent}`);
|
const foldedValue = value
|
||||||
return `${header}\n${indent}${start}${value}${end}`;
|
.replace(/\n+/g, '\n$&')
|
||||||
|
.replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
|
||||||
|
// ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
|
||||||
|
.replace(/\n+/g, `$&${indent}`);
|
||||||
|
let literalFallback = false;
|
||||||
|
const foldOptions = getFoldOptions(ctx, true);
|
||||||
|
if (blockQuote !== 'folded' && type !== Scalar.Scalar.BLOCK_FOLDED) {
|
||||||
|
foldOptions.onOverflow = () => {
|
||||||
|
literalFallback = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
const body = foldFlowLines.foldFlowLines(`${start}${foldedValue}${end}`, indent, foldFlowLines.FOLD_BLOCK, foldOptions);
|
||||||
|
if (!literalFallback)
|
||||||
|
return `>${header}\n${indent}${body}`;
|
||||||
}
|
}
|
||||||
value = value
|
value = value.replace(/\n+/g, `$&${indent}`);
|
||||||
.replace(/\n+/g, '\n$&')
|
return `|${header}\n${indent}${start}${value}${end}`;
|
||||||
.replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, '$1$2') // more-indented lines aren't folded
|
|
||||||
// ^ more-ind. ^ empty ^ capture next empty lines only at end of indent
|
|
||||||
.replace(/\n+/g, `$&${indent}`);
|
|
||||||
const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true));
|
|
||||||
return `${header}\n${indent}${body}`;
|
|
||||||
}
|
}
|
||||||
function plainString(item, ctx, onComment, onChompKeep) {
|
function plainString(item, ctx, onComment, onChompKeep) {
|
||||||
const { type, value } = item;
|
const { type, value } = item;
|
||||||
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tj-actions/changed-files",
|
"name": "@tj-actions/changed-files",
|
||||||
"version": "45.0.2",
|
"version": "45.0.4",
|
||||||
"description": "Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.",
|
"description": "Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user