@napi-rs/cli 1.3.1 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/package.json +18 -9
- package/scripts/index.js +521 -224
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.0.0-alpha.1](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.3.3...@napi-rs/cli@2.0.0-alpha.1) (2021-10-01)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **cli:** missing main and types field in created package.json ([860a02a](https://github.com/napi-rs/napi-rs/commit/860a02a7cb575d8a33c2007ad38eda762e12ba79))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **cli:** dts flag for build command ([0e8de17](https://github.com/napi-rs/napi-rs/commit/0e8de173a4519c70ab9fcf9a4e0ec01aaca64d97))
|
|
15
|
+
|
|
16
|
+
# 2.0.0-alpha.0 (2021-09-22)
|
|
17
|
+
|
|
18
|
+
## [1.3.3](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.3.2...@napi-rs/cli@1.3.3) (2021-09-19)
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- **cli:** version of binary optional dependencies should be pinned ([27dbca8](https://github.com/napi-rs/napi-rs/commit/27dbca814c90bacbbb54e75a66eee56cb7372324))
|
|
23
|
+
|
|
24
|
+
## [1.3.2](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.3.1...@napi-rs/cli@1.3.2) (2021-09-14)
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
- **cli:** cargo config path and ci template in new command ([c385254](https://github.com/napi-rs/napi-rs/commit/c3852543a59a945686464040dbb6e4109a51e400))
|
|
29
|
+
|
|
6
30
|
## [1.3.1](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.3.0...@napi-rs/cli@1.3.1) (2021-09-02)
|
|
7
31
|
|
|
8
32
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@napi-rs/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"description": "Cli tools for napi-rs",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"rust",
|
|
8
|
+
"napi",
|
|
9
|
+
"n-api",
|
|
10
|
+
"neon"
|
|
11
|
+
],
|
|
6
12
|
"author": "LongYinan <lynweklm@gmail.com>",
|
|
7
13
|
"homepage": "https://github.com/napi-rs/napi-rs",
|
|
8
14
|
"license": "MIT",
|
|
9
15
|
"bin": {
|
|
10
16
|
"napi": "./scripts/index.js"
|
|
11
17
|
},
|
|
12
|
-
"files": [
|
|
18
|
+
"files": [
|
|
19
|
+
"scripts"
|
|
20
|
+
],
|
|
13
21
|
"engines": {
|
|
14
22
|
"node": ">= 10"
|
|
15
23
|
},
|
|
@@ -32,24 +40,25 @@
|
|
|
32
40
|
"url": "https://github.com/napi-rs/napi-rs/issues"
|
|
33
41
|
},
|
|
34
42
|
"dependencies": {
|
|
35
|
-
"inquirer": "^8.1.
|
|
43
|
+
"inquirer": "^8.1.5"
|
|
36
44
|
},
|
|
37
45
|
"devDependencies": {
|
|
38
|
-
"@octokit/rest": "^18.
|
|
39
|
-
"@types/inquirer": "^
|
|
46
|
+
"@octokit/rest": "^18.11.2",
|
|
47
|
+
"@types/inquirer": "^8.1.2",
|
|
40
48
|
"@types/js-yaml": "^4.0.3",
|
|
41
49
|
"chalk": "^4.1.2",
|
|
42
|
-
"clipanion": "^3.0
|
|
50
|
+
"clipanion": "^3.1.0",
|
|
43
51
|
"debug": "^4.3.2",
|
|
44
52
|
"fdir": "^5.1.0",
|
|
45
53
|
"js-yaml": "^4.1.0",
|
|
46
54
|
"putasset": "^5.0.3",
|
|
47
55
|
"toml": "^3.0.0",
|
|
48
56
|
"tslib": "^2.3.1",
|
|
49
|
-
"typanion": "^3.
|
|
57
|
+
"typanion": "^3.5.0"
|
|
50
58
|
},
|
|
51
59
|
"funding": {
|
|
52
60
|
"type": "github",
|
|
53
61
|
"url": "https://github.com/sponsors/Brooooooklyn"
|
|
54
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"gitHead": "16aacd8eec3110114ed45fa2311618160d9d5cfb"
|
|
55
64
|
}
|
package/scripts/index.js
CHANGED
|
@@ -23,10 +23,13 @@ var __spreadValues = (a, b) => {
|
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
25
|
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
26
|
+
var __require = typeof require !== "undefined" ? require : (x) => {
|
|
27
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
28
|
+
};
|
|
26
29
|
var __esm = (fn, res) => function __init() {
|
|
27
30
|
return fn && (res = (0, fn[Object.keys(fn)[0]])(fn = 0)), res;
|
|
28
31
|
};
|
|
29
|
-
var __commonJS = (cb, mod) => function
|
|
32
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
30
33
|
return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
31
34
|
};
|
|
32
35
|
var __export = (target, all) => {
|
|
@@ -249,6 +252,8 @@ var require_lib = __commonJS({
|
|
|
249
252
|
var makeTrait = (value) => () => {
|
|
250
253
|
return value;
|
|
251
254
|
};
|
|
255
|
+
function softAssert(cond) {
|
|
256
|
+
}
|
|
252
257
|
function makeValidator({ test }) {
|
|
253
258
|
return makeTrait(test)();
|
|
254
259
|
}
|
|
@@ -278,6 +283,17 @@ var require_lib = __commonJS({
|
|
|
278
283
|
return makeCoercionFn(target, key).bind(null, previous);
|
|
279
284
|
};
|
|
280
285
|
}
|
|
286
|
+
function makeLazyCoercionFn(fn, orig, generator) {
|
|
287
|
+
const commit = () => {
|
|
288
|
+
fn(generator());
|
|
289
|
+
return revert;
|
|
290
|
+
};
|
|
291
|
+
const revert = () => {
|
|
292
|
+
fn(orig);
|
|
293
|
+
return commit;
|
|
294
|
+
};
|
|
295
|
+
return commit;
|
|
296
|
+
}
|
|
281
297
|
function makeSetter(target, key) {
|
|
282
298
|
return (v) => {
|
|
283
299
|
target[key] = v;
|
|
@@ -299,7 +315,7 @@ var require_lib = __commonJS({
|
|
|
299
315
|
return makeValidator({
|
|
300
316
|
test: (value, state) => {
|
|
301
317
|
if (value !== expected)
|
|
302
|
-
return pushError(state, `Expected a literal (got ${getPrintable(
|
|
318
|
+
return pushError(state, `Expected a literal (got ${getPrintable(value)})`);
|
|
303
319
|
return true;
|
|
304
320
|
}
|
|
305
321
|
});
|
|
@@ -427,12 +443,12 @@ var require_lib = __commonJS({
|
|
|
427
443
|
var isArray = (spec, { delimiter } = {}) => makeValidator({
|
|
428
444
|
test: (value, state) => {
|
|
429
445
|
var _a2;
|
|
446
|
+
const originalValue = value;
|
|
430
447
|
if (typeof value === `string` && typeof delimiter !== `undefined`) {
|
|
431
448
|
if (typeof (state === null || state === void 0 ? void 0 : state.coercions) !== `undefined`) {
|
|
432
449
|
if (typeof (state === null || state === void 0 ? void 0 : state.coercion) === `undefined`)
|
|
433
450
|
return pushError(state, `Unbound coercion result`);
|
|
434
451
|
value = value.split(delimiter);
|
|
435
|
-
state.coercions.push([(_a2 = state.p) !== null && _a2 !== void 0 ? _a2 : `.`, state.coercion.bind(null, value)]);
|
|
436
452
|
}
|
|
437
453
|
}
|
|
438
454
|
if (!Array.isArray(value))
|
|
@@ -444,9 +460,95 @@ var require_lib = __commonJS({
|
|
|
444
460
|
break;
|
|
445
461
|
}
|
|
446
462
|
}
|
|
463
|
+
if (value !== originalValue)
|
|
464
|
+
state.coercions.push([(_a2 = state.p) !== null && _a2 !== void 0 ? _a2 : `.`, state.coercion.bind(null, value)]);
|
|
447
465
|
return valid;
|
|
448
466
|
}
|
|
449
467
|
});
|
|
468
|
+
var isSet = (spec, { delimiter } = {}) => {
|
|
469
|
+
const isArrayValidator = isArray(spec, { delimiter });
|
|
470
|
+
return makeValidator({
|
|
471
|
+
test: (value, state) => {
|
|
472
|
+
var _a2, _b;
|
|
473
|
+
if (Object.getPrototypeOf(value).toString() === `[object Set]`) {
|
|
474
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercions) !== `undefined`) {
|
|
475
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercion) === `undefined`)
|
|
476
|
+
return pushError(state, `Unbound coercion result`);
|
|
477
|
+
const originalValues = [...value];
|
|
478
|
+
const coercedValues = [...value];
|
|
479
|
+
if (!isArrayValidator(coercedValues, Object.assign(Object.assign({}, state), { coercion: void 0 })))
|
|
480
|
+
return false;
|
|
481
|
+
const updateValue = () => coercedValues.some((val, t) => val !== originalValues[t]) ? new Set(coercedValues) : value;
|
|
482
|
+
state.coercions.push([(_a2 = state.p) !== null && _a2 !== void 0 ? _a2 : `.`, makeLazyCoercionFn(state.coercion, value, updateValue)]);
|
|
483
|
+
return true;
|
|
484
|
+
} else {
|
|
485
|
+
let valid = true;
|
|
486
|
+
for (const subValue of value) {
|
|
487
|
+
valid = spec(subValue, Object.assign({}, state)) && valid;
|
|
488
|
+
if (!valid && (state === null || state === void 0 ? void 0 : state.errors) == null) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return valid;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercions) !== `undefined`) {
|
|
496
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercion) === `undefined`)
|
|
497
|
+
return pushError(state, `Unbound coercion result`);
|
|
498
|
+
const store = { value };
|
|
499
|
+
if (!isArrayValidator(value, Object.assign(Object.assign({}, state), { coercion: makeCoercionFn(store, `value`) })))
|
|
500
|
+
return false;
|
|
501
|
+
state.coercions.push([(_b = state.p) !== null && _b !== void 0 ? _b : `.`, makeLazyCoercionFn(state.coercion, value, () => new Set(store.value))]);
|
|
502
|
+
return true;
|
|
503
|
+
}
|
|
504
|
+
return pushError(state, `Expected a set (got ${getPrintable(value)})`);
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
var isMap = (keySpec, valueSpec) => {
|
|
509
|
+
const isArrayValidator = isArray(isTuple([keySpec, valueSpec]));
|
|
510
|
+
return makeValidator({
|
|
511
|
+
test: (value, state) => {
|
|
512
|
+
var _a2, _b;
|
|
513
|
+
if (Object.getPrototypeOf(value).toString() === `[object Map]`) {
|
|
514
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercions) !== `undefined`) {
|
|
515
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercion) === `undefined`)
|
|
516
|
+
return pushError(state, `Unbound coercion result`);
|
|
517
|
+
const originalValues = [...value];
|
|
518
|
+
const coercedValues = [...value];
|
|
519
|
+
if (!isArrayValidator(coercedValues, Object.assign(Object.assign({}, state), { coercion: void 0 })))
|
|
520
|
+
return false;
|
|
521
|
+
const updateValue = () => coercedValues.some((val, t) => val[0] !== originalValues[t][0] || val[1] !== originalValues[t][1]) ? new Map(coercedValues) : value;
|
|
522
|
+
state.coercions.push([(_a2 = state.p) !== null && _a2 !== void 0 ? _a2 : `.`, makeLazyCoercionFn(state.coercion, value, updateValue)]);
|
|
523
|
+
return true;
|
|
524
|
+
} else {
|
|
525
|
+
let valid = true;
|
|
526
|
+
for (const [key, subValue] of value) {
|
|
527
|
+
valid = keySpec(key, Object.assign({}, state)) && valid;
|
|
528
|
+
if (!valid && (state === null || state === void 0 ? void 0 : state.errors) == null) {
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
valid = valueSpec(subValue, Object.assign(Object.assign({}, state), { p: computeKey(state, key) })) && valid;
|
|
532
|
+
if (!valid && (state === null || state === void 0 ? void 0 : state.errors) == null) {
|
|
533
|
+
break;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
return valid;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercions) !== `undefined`) {
|
|
540
|
+
if (typeof (state === null || state === void 0 ? void 0 : state.coercion) === `undefined`)
|
|
541
|
+
return pushError(state, `Unbound coercion result`);
|
|
542
|
+
const store = { value };
|
|
543
|
+
if (!isArrayValidator(value, Object.assign(Object.assign({}, state), { coercion: makeCoercionFn(store, `value`) })))
|
|
544
|
+
return false;
|
|
545
|
+
state.coercions.push([(_b = state.p) !== null && _b !== void 0 ? _b : `.`, makeLazyCoercionFn(state.coercion, value, () => new Map(store.value))]);
|
|
546
|
+
return true;
|
|
547
|
+
}
|
|
548
|
+
return pushError(state, `Expected a map (got ${getPrintable(value)})`);
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
};
|
|
450
552
|
var isTuple = (spec, { delimiter } = {}) => {
|
|
451
553
|
const lengthValidator = hasExactLength(spec.length);
|
|
452
554
|
return makeValidator({
|
|
@@ -535,6 +637,9 @@ var require_lib = __commonJS({
|
|
|
535
637
|
}
|
|
536
638
|
});
|
|
537
639
|
};
|
|
640
|
+
var isPartial = (props) => {
|
|
641
|
+
return isObject3(props, { extra: isDict(isUnknown()) });
|
|
642
|
+
};
|
|
538
643
|
var isInstanceOf = (constructor) => makeValidator({
|
|
539
644
|
test: (value, state) => {
|
|
540
645
|
if (!(value instanceof constructor))
|
|
@@ -740,7 +845,7 @@ var require_lib = __commonJS({
|
|
|
740
845
|
test: (value, state) => {
|
|
741
846
|
if (!iso8601RegExp.test(value))
|
|
742
847
|
return pushError(state, `Expected to be a valid ISO 8601 date string (got ${getPrintable(value)})`);
|
|
743
|
-
return
|
|
848
|
+
return true;
|
|
744
849
|
}
|
|
745
850
|
});
|
|
746
851
|
var isHexColor = ({ alpha = false }) => makeValidator({
|
|
@@ -878,13 +983,16 @@ var require_lib = __commonJS({
|
|
|
878
983
|
exports2.isJSON = isJSON;
|
|
879
984
|
exports2.isLiteral = isLiteral;
|
|
880
985
|
exports2.isLowerCase = isLowerCase;
|
|
986
|
+
exports2.isMap = isMap;
|
|
881
987
|
exports2.isNegative = isNegative;
|
|
882
988
|
exports2.isNullable = isNullable;
|
|
883
989
|
exports2.isNumber = isNumber;
|
|
884
990
|
exports2.isObject = isObject3;
|
|
885
991
|
exports2.isOneOf = isOneOf;
|
|
886
992
|
exports2.isOptional = isOptional;
|
|
993
|
+
exports2.isPartial = isPartial;
|
|
887
994
|
exports2.isPositive = isPositive;
|
|
995
|
+
exports2.isSet = isSet;
|
|
888
996
|
exports2.isString = isString;
|
|
889
997
|
exports2.isTuple = isTuple;
|
|
890
998
|
exports2.isUUID4 = isUUID4;
|
|
@@ -892,6 +1000,7 @@ var require_lib = __commonJS({
|
|
|
892
1000
|
exports2.isUpperCase = isUpperCase;
|
|
893
1001
|
exports2.iso8601RegExp = iso8601RegExp;
|
|
894
1002
|
exports2.makeCoercionFn = makeCoercionFn;
|
|
1003
|
+
exports2.makeLazyCoercionFn = makeLazyCoercionFn;
|
|
895
1004
|
exports2.makeSetter = makeSetter;
|
|
896
1005
|
exports2.makeTrait = makeTrait;
|
|
897
1006
|
exports2.makeValidator = makeValidator;
|
|
@@ -899,6 +1008,7 @@ var require_lib = __commonJS({
|
|
|
899
1008
|
exports2.plural = plural;
|
|
900
1009
|
exports2.pushError = pushError;
|
|
901
1010
|
exports2.simpleKeyRegExp = simpleKeyRegExp;
|
|
1011
|
+
exports2.softAssert = softAssert;
|
|
902
1012
|
exports2.uuid4RegExp = uuid4RegExp;
|
|
903
1013
|
}
|
|
904
1014
|
});
|
|
@@ -10365,18 +10475,18 @@ var require_register = __commonJS({
|
|
|
10365
10475
|
var require_add = __commonJS({
|
|
10366
10476
|
"node_modules/before-after-hook/lib/add.js"(exports2, module2) {
|
|
10367
10477
|
module2.exports = addHook;
|
|
10368
|
-
function addHook(state, kind, name,
|
|
10369
|
-
var orig =
|
|
10478
|
+
function addHook(state, kind, name, hook3) {
|
|
10479
|
+
var orig = hook3;
|
|
10370
10480
|
if (!state.registry[name]) {
|
|
10371
10481
|
state.registry[name] = [];
|
|
10372
10482
|
}
|
|
10373
10483
|
if (kind === "before") {
|
|
10374
|
-
|
|
10484
|
+
hook3 = function(method, options) {
|
|
10375
10485
|
return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
|
|
10376
10486
|
};
|
|
10377
10487
|
}
|
|
10378
10488
|
if (kind === "after") {
|
|
10379
|
-
|
|
10489
|
+
hook3 = function(method, options) {
|
|
10380
10490
|
var result;
|
|
10381
10491
|
return Promise.resolve().then(method.bind(null, options)).then(function(result_) {
|
|
10382
10492
|
result = result_;
|
|
@@ -10387,14 +10497,14 @@ var require_add = __commonJS({
|
|
|
10387
10497
|
};
|
|
10388
10498
|
}
|
|
10389
10499
|
if (kind === "error") {
|
|
10390
|
-
|
|
10500
|
+
hook3 = function(method, options) {
|
|
10391
10501
|
return Promise.resolve().then(method.bind(null, options)).catch(function(error) {
|
|
10392
10502
|
return orig(error, options);
|
|
10393
10503
|
});
|
|
10394
10504
|
};
|
|
10395
10505
|
}
|
|
10396
10506
|
state.registry[name].push({
|
|
10397
|
-
hook:
|
|
10507
|
+
hook: hook3,
|
|
10398
10508
|
orig
|
|
10399
10509
|
});
|
|
10400
10510
|
}
|
|
@@ -10428,13 +10538,13 @@ var require_before_after_hook = __commonJS({
|
|
|
10428
10538
|
var removeHook = require_remove();
|
|
10429
10539
|
var bind = Function.bind;
|
|
10430
10540
|
var bindable = bind.bind(bind);
|
|
10431
|
-
function bindApi(
|
|
10541
|
+
function bindApi(hook3, state, name) {
|
|
10432
10542
|
var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state]);
|
|
10433
|
-
|
|
10434
|
-
|
|
10543
|
+
hook3.api = { remove: removeHookRef };
|
|
10544
|
+
hook3.remove = removeHookRef;
|
|
10435
10545
|
["before", "error", "after", "wrap"].forEach(function(kind) {
|
|
10436
10546
|
var args = name ? [state, kind, name] : [state, kind];
|
|
10437
|
-
|
|
10547
|
+
hook3[kind] = hook3.api[kind] = bindable(addHook, null).apply(null, args);
|
|
10438
10548
|
});
|
|
10439
10549
|
}
|
|
10440
10550
|
function HookSingular() {
|
|
@@ -10450,9 +10560,9 @@ var require_before_after_hook = __commonJS({
|
|
|
10450
10560
|
var state = {
|
|
10451
10561
|
registry: {}
|
|
10452
10562
|
};
|
|
10453
|
-
var
|
|
10454
|
-
bindApi(
|
|
10455
|
-
return
|
|
10563
|
+
var hook3 = register.bind(null, state);
|
|
10564
|
+
bindApi(hook3, state);
|
|
10565
|
+
return hook3;
|
|
10456
10566
|
}
|
|
10457
10567
|
var collectionHookDeprecationMessageDisplayed = false;
|
|
10458
10568
|
function Hook() {
|
|
@@ -11091,13 +11201,13 @@ function getHeaders(headers) {
|
|
|
11091
11201
|
});
|
|
11092
11202
|
}
|
|
11093
11203
|
function createHeadersIterator(target, kind) {
|
|
11094
|
-
const
|
|
11095
|
-
|
|
11204
|
+
const iterator3 = Object.create(HeadersIteratorPrototype);
|
|
11205
|
+
iterator3[INTERNAL] = {
|
|
11096
11206
|
target,
|
|
11097
11207
|
kind,
|
|
11098
11208
|
index: 0
|
|
11099
11209
|
};
|
|
11100
|
-
return
|
|
11210
|
+
return iterator3;
|
|
11101
11211
|
}
|
|
11102
11212
|
function exportNodeCompatibleHeaders(headers) {
|
|
11103
11213
|
const obj = Object.assign({ __proto__: null }, headers[MAP]);
|
|
@@ -12150,44 +12260,6 @@ var init_dist_web5 = __esm({
|
|
|
12150
12260
|
}
|
|
12151
12261
|
});
|
|
12152
12262
|
|
|
12153
|
-
// node_modules/@octokit/auth-token/dist-web/index.js
|
|
12154
|
-
async function auth(token) {
|
|
12155
|
-
const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
|
|
12156
|
-
return {
|
|
12157
|
-
type: "token",
|
|
12158
|
-
token,
|
|
12159
|
-
tokenType
|
|
12160
|
-
};
|
|
12161
|
-
}
|
|
12162
|
-
function withAuthorizationPrefix(token) {
|
|
12163
|
-
if (token.split(/\./).length === 3) {
|
|
12164
|
-
return `bearer ${token}`;
|
|
12165
|
-
}
|
|
12166
|
-
return `token ${token}`;
|
|
12167
|
-
}
|
|
12168
|
-
async function hook(token, request2, route, parameters) {
|
|
12169
|
-
const endpoint2 = request2.endpoint.merge(route, parameters);
|
|
12170
|
-
endpoint2.headers.authorization = withAuthorizationPrefix(token);
|
|
12171
|
-
return request2(endpoint2);
|
|
12172
|
-
}
|
|
12173
|
-
var createTokenAuth;
|
|
12174
|
-
var init_dist_web6 = __esm({
|
|
12175
|
-
"node_modules/@octokit/auth-token/dist-web/index.js"() {
|
|
12176
|
-
createTokenAuth = function createTokenAuth2(token) {
|
|
12177
|
-
if (!token) {
|
|
12178
|
-
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
12179
|
-
}
|
|
12180
|
-
if (typeof token !== "string") {
|
|
12181
|
-
throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
|
|
12182
|
-
}
|
|
12183
|
-
token = token.replace(/^(token|bearer) +/i, "");
|
|
12184
|
-
return Object.assign(auth.bind(null, token), {
|
|
12185
|
-
hook: hook.bind(null, token)
|
|
12186
|
-
});
|
|
12187
|
-
};
|
|
12188
|
-
}
|
|
12189
|
-
});
|
|
12190
|
-
|
|
12191
12263
|
// node_modules/@octokit/plugin-request-log/dist-web/index.js
|
|
12192
12264
|
function requestLog(octokit) {
|
|
12193
12265
|
octokit.hook.wrap("request", (request2, options) => {
|
|
@@ -12205,115 +12277,13 @@ function requestLog(octokit) {
|
|
|
12205
12277
|
});
|
|
12206
12278
|
}
|
|
12207
12279
|
var VERSION5;
|
|
12208
|
-
var
|
|
12280
|
+
var init_dist_web6 = __esm({
|
|
12209
12281
|
"node_modules/@octokit/plugin-request-log/dist-web/index.js"() {
|
|
12210
12282
|
VERSION5 = "1.0.4";
|
|
12211
12283
|
requestLog.VERSION = VERSION5;
|
|
12212
12284
|
}
|
|
12213
12285
|
});
|
|
12214
12286
|
|
|
12215
|
-
// node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
|
|
12216
|
-
function normalizePaginatedListResponse(response) {
|
|
12217
|
-
if (!response.data) {
|
|
12218
|
-
return {
|
|
12219
|
-
...response,
|
|
12220
|
-
data: []
|
|
12221
|
-
};
|
|
12222
|
-
}
|
|
12223
|
-
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
12224
|
-
if (!responseNeedsNormalization)
|
|
12225
|
-
return response;
|
|
12226
|
-
const incompleteResults = response.data.incomplete_results;
|
|
12227
|
-
const repositorySelection = response.data.repository_selection;
|
|
12228
|
-
const totalCount = response.data.total_count;
|
|
12229
|
-
delete response.data.incomplete_results;
|
|
12230
|
-
delete response.data.repository_selection;
|
|
12231
|
-
delete response.data.total_count;
|
|
12232
|
-
const namespaceKey = Object.keys(response.data)[0];
|
|
12233
|
-
const data = response.data[namespaceKey];
|
|
12234
|
-
response.data = data;
|
|
12235
|
-
if (typeof incompleteResults !== "undefined") {
|
|
12236
|
-
response.data.incomplete_results = incompleteResults;
|
|
12237
|
-
}
|
|
12238
|
-
if (typeof repositorySelection !== "undefined") {
|
|
12239
|
-
response.data.repository_selection = repositorySelection;
|
|
12240
|
-
}
|
|
12241
|
-
response.data.total_count = totalCount;
|
|
12242
|
-
return response;
|
|
12243
|
-
}
|
|
12244
|
-
function iterator(octokit, route, parameters) {
|
|
12245
|
-
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
|
12246
|
-
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
12247
|
-
const method = options.method;
|
|
12248
|
-
const headers = options.headers;
|
|
12249
|
-
let url = options.url;
|
|
12250
|
-
return {
|
|
12251
|
-
[Symbol.asyncIterator]: () => ({
|
|
12252
|
-
async next() {
|
|
12253
|
-
if (!url)
|
|
12254
|
-
return { done: true };
|
|
12255
|
-
try {
|
|
12256
|
-
const response = await requestMethod({ method, url, headers });
|
|
12257
|
-
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
12258
|
-
url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
|
|
12259
|
-
return { value: normalizedResponse };
|
|
12260
|
-
} catch (error) {
|
|
12261
|
-
if (error.status !== 409)
|
|
12262
|
-
throw error;
|
|
12263
|
-
url = "";
|
|
12264
|
-
return {
|
|
12265
|
-
value: {
|
|
12266
|
-
status: 200,
|
|
12267
|
-
headers: {},
|
|
12268
|
-
data: []
|
|
12269
|
-
}
|
|
12270
|
-
};
|
|
12271
|
-
}
|
|
12272
|
-
}
|
|
12273
|
-
})
|
|
12274
|
-
};
|
|
12275
|
-
}
|
|
12276
|
-
function paginate(octokit, route, parameters, mapFn) {
|
|
12277
|
-
if (typeof parameters === "function") {
|
|
12278
|
-
mapFn = parameters;
|
|
12279
|
-
parameters = void 0;
|
|
12280
|
-
}
|
|
12281
|
-
return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
|
|
12282
|
-
}
|
|
12283
|
-
function gather(octokit, results, iterator2, mapFn) {
|
|
12284
|
-
return iterator2.next().then((result) => {
|
|
12285
|
-
if (result.done) {
|
|
12286
|
-
return results;
|
|
12287
|
-
}
|
|
12288
|
-
let earlyExit = false;
|
|
12289
|
-
function done() {
|
|
12290
|
-
earlyExit = true;
|
|
12291
|
-
}
|
|
12292
|
-
results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
|
|
12293
|
-
if (earlyExit) {
|
|
12294
|
-
return results;
|
|
12295
|
-
}
|
|
12296
|
-
return gather(octokit, results, iterator2, mapFn);
|
|
12297
|
-
});
|
|
12298
|
-
}
|
|
12299
|
-
function paginateRest(octokit) {
|
|
12300
|
-
return {
|
|
12301
|
-
paginate: Object.assign(paginate.bind(null, octokit), {
|
|
12302
|
-
iterator: iterator.bind(null, octokit)
|
|
12303
|
-
})
|
|
12304
|
-
};
|
|
12305
|
-
}
|
|
12306
|
-
var VERSION6, composePaginateRest;
|
|
12307
|
-
var init_dist_web8 = __esm({
|
|
12308
|
-
"node_modules/@octokit/plugin-paginate-rest/dist-web/index.js"() {
|
|
12309
|
-
VERSION6 = "2.16.0";
|
|
12310
|
-
composePaginateRest = Object.assign(paginate, {
|
|
12311
|
-
iterator
|
|
12312
|
-
});
|
|
12313
|
-
paginateRest.VERSION = VERSION6;
|
|
12314
|
-
}
|
|
12315
|
-
});
|
|
12316
|
-
|
|
12317
12287
|
// node_modules/putasset/node_modules/universal-user-agent/dist-web/index.js
|
|
12318
12288
|
function getUserAgent2() {
|
|
12319
12289
|
try {
|
|
@@ -12322,7 +12292,7 @@ function getUserAgent2() {
|
|
|
12322
12292
|
return "<environment undetectable>";
|
|
12323
12293
|
}
|
|
12324
12294
|
}
|
|
12325
|
-
var
|
|
12295
|
+
var init_dist_web7 = __esm({
|
|
12326
12296
|
"node_modules/putasset/node_modules/universal-user-agent/dist-web/index.js"() {
|
|
12327
12297
|
}
|
|
12328
12298
|
});
|
|
@@ -12337,7 +12307,7 @@ function getUserAgent3() {
|
|
|
12337
12307
|
}
|
|
12338
12308
|
return "<environment undetectable>";
|
|
12339
12309
|
}
|
|
12340
|
-
var
|
|
12310
|
+
var init_dist_web8 = __esm({
|
|
12341
12311
|
"node_modules/putasset/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-web/index.js"() {
|
|
12342
12312
|
}
|
|
12343
12313
|
});
|
|
@@ -12394,10 +12364,10 @@ function withCustomRequest2(customRequest) {
|
|
|
12394
12364
|
});
|
|
12395
12365
|
}
|
|
12396
12366
|
var VERSION9, GraphqlError, NON_VARIABLE_OPTIONS2, GHES_V3_SUFFIX_REGEX2, graphql$12;
|
|
12397
|
-
var
|
|
12367
|
+
var init_dist_web9 = __esm({
|
|
12398
12368
|
"node_modules/putasset/node_modules/@octokit/graphql/dist-web/index.js"() {
|
|
12399
12369
|
init_dist_web5();
|
|
12400
|
-
|
|
12370
|
+
init_dist_web8();
|
|
12401
12371
|
VERSION9 = "4.5.7";
|
|
12402
12372
|
GraphqlError = class extends Error {
|
|
12403
12373
|
constructor(request2, response) {
|
|
@@ -12432,24 +12402,68 @@ var init_dist_web11 = __esm({
|
|
|
12432
12402
|
}
|
|
12433
12403
|
});
|
|
12434
12404
|
|
|
12405
|
+
// node_modules/putasset/node_modules/@octokit/auth-token/dist-web/index.js
|
|
12406
|
+
async function auth2(token) {
|
|
12407
|
+
const isApp = token.split(/\./).length === 3;
|
|
12408
|
+
const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
|
|
12409
|
+
const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
|
|
12410
|
+
const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
|
|
12411
|
+
return {
|
|
12412
|
+
type: "token",
|
|
12413
|
+
token,
|
|
12414
|
+
tokenType
|
|
12415
|
+
};
|
|
12416
|
+
}
|
|
12417
|
+
function withAuthorizationPrefix2(token) {
|
|
12418
|
+
if (token.split(/\./).length === 3) {
|
|
12419
|
+
return `bearer ${token}`;
|
|
12420
|
+
}
|
|
12421
|
+
return `token ${token}`;
|
|
12422
|
+
}
|
|
12423
|
+
async function hook2(token, request2, route, parameters) {
|
|
12424
|
+
const endpoint2 = request2.endpoint.merge(route, parameters);
|
|
12425
|
+
endpoint2.headers.authorization = withAuthorizationPrefix2(token);
|
|
12426
|
+
return request2(endpoint2);
|
|
12427
|
+
}
|
|
12428
|
+
var REGEX_IS_INSTALLATION_LEGACY, REGEX_IS_INSTALLATION, REGEX_IS_USER_TO_SERVER, createTokenAuth3;
|
|
12429
|
+
var init_dist_web10 = __esm({
|
|
12430
|
+
"node_modules/putasset/node_modules/@octokit/auth-token/dist-web/index.js"() {
|
|
12431
|
+
REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
|
|
12432
|
+
REGEX_IS_INSTALLATION = /^ghs_/;
|
|
12433
|
+
REGEX_IS_USER_TO_SERVER = /^ghu_/;
|
|
12434
|
+
createTokenAuth3 = function createTokenAuth4(token) {
|
|
12435
|
+
if (!token) {
|
|
12436
|
+
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
12437
|
+
}
|
|
12438
|
+
if (typeof token !== "string") {
|
|
12439
|
+
throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
|
|
12440
|
+
}
|
|
12441
|
+
token = token.replace(/^(token|bearer) +/i, "");
|
|
12442
|
+
return Object.assign(auth2.bind(null, token), {
|
|
12443
|
+
hook: hook2.bind(null, token)
|
|
12444
|
+
});
|
|
12445
|
+
};
|
|
12446
|
+
}
|
|
12447
|
+
});
|
|
12448
|
+
|
|
12435
12449
|
// node_modules/putasset/node_modules/@octokit/core/dist-web/index.js
|
|
12436
12450
|
var import_before_after_hook2, VERSION10, Octokit3;
|
|
12437
|
-
var
|
|
12451
|
+
var init_dist_web11 = __esm({
|
|
12438
12452
|
"node_modules/putasset/node_modules/@octokit/core/dist-web/index.js"() {
|
|
12439
|
-
|
|
12453
|
+
init_dist_web7();
|
|
12440
12454
|
import_before_after_hook2 = __toModule(require_before_after_hook());
|
|
12441
12455
|
init_dist_web5();
|
|
12442
|
-
|
|
12443
|
-
|
|
12456
|
+
init_dist_web9();
|
|
12457
|
+
init_dist_web10();
|
|
12444
12458
|
VERSION10 = "2.5.4";
|
|
12445
12459
|
Octokit3 = class {
|
|
12446
12460
|
constructor(options = {}) {
|
|
12447
|
-
const
|
|
12461
|
+
const hook3 = new import_before_after_hook2.Collection();
|
|
12448
12462
|
const requestDefaults = {
|
|
12449
12463
|
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
12450
12464
|
headers: {},
|
|
12451
12465
|
request: Object.assign({}, options.request, {
|
|
12452
|
-
hook:
|
|
12466
|
+
hook: hook3.bind(null, "request")
|
|
12453
12467
|
}),
|
|
12454
12468
|
mediaType: {
|
|
12455
12469
|
previews: [],
|
|
@@ -12482,23 +12496,23 @@ var init_dist_web12 = __esm({
|
|
|
12482
12496
|
warn: console.warn.bind(console),
|
|
12483
12497
|
error: console.error.bind(console)
|
|
12484
12498
|
}, options.log);
|
|
12485
|
-
this.hook =
|
|
12499
|
+
this.hook = hook3;
|
|
12486
12500
|
if (!options.authStrategy) {
|
|
12487
12501
|
if (!options.auth) {
|
|
12488
12502
|
this.auth = async () => ({
|
|
12489
12503
|
type: "unauthenticated"
|
|
12490
12504
|
});
|
|
12491
12505
|
} else {
|
|
12492
|
-
const
|
|
12493
|
-
|
|
12494
|
-
this.auth =
|
|
12506
|
+
const auth3 = createTokenAuth3(options.auth);
|
|
12507
|
+
hook3.wrap("request", auth3.hook);
|
|
12508
|
+
this.auth = auth3;
|
|
12495
12509
|
}
|
|
12496
12510
|
} else {
|
|
12497
|
-
const
|
|
12511
|
+
const auth3 = options.authStrategy(Object.assign({
|
|
12498
12512
|
request: this.request
|
|
12499
12513
|
}, options.auth));
|
|
12500
|
-
|
|
12501
|
-
this.auth =
|
|
12514
|
+
hook3.wrap("request", auth3.hook);
|
|
12515
|
+
this.auth = auth3;
|
|
12502
12516
|
}
|
|
12503
12517
|
const classConstructor = this.constructor;
|
|
12504
12518
|
classConstructor.plugins.forEach((plugin) => {
|
|
@@ -12542,6 +12556,108 @@ var init_dist_web12 = __esm({
|
|
|
12542
12556
|
}
|
|
12543
12557
|
});
|
|
12544
12558
|
|
|
12559
|
+
// node_modules/putasset/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
|
|
12560
|
+
function normalizePaginatedListResponse2(response) {
|
|
12561
|
+
if (!response.data) {
|
|
12562
|
+
return {
|
|
12563
|
+
...response,
|
|
12564
|
+
data: []
|
|
12565
|
+
};
|
|
12566
|
+
}
|
|
12567
|
+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
12568
|
+
if (!responseNeedsNormalization)
|
|
12569
|
+
return response;
|
|
12570
|
+
const incompleteResults = response.data.incomplete_results;
|
|
12571
|
+
const repositorySelection = response.data.repository_selection;
|
|
12572
|
+
const totalCount = response.data.total_count;
|
|
12573
|
+
delete response.data.incomplete_results;
|
|
12574
|
+
delete response.data.repository_selection;
|
|
12575
|
+
delete response.data.total_count;
|
|
12576
|
+
const namespaceKey = Object.keys(response.data)[0];
|
|
12577
|
+
const data = response.data[namespaceKey];
|
|
12578
|
+
response.data = data;
|
|
12579
|
+
if (typeof incompleteResults !== "undefined") {
|
|
12580
|
+
response.data.incomplete_results = incompleteResults;
|
|
12581
|
+
}
|
|
12582
|
+
if (typeof repositorySelection !== "undefined") {
|
|
12583
|
+
response.data.repository_selection = repositorySelection;
|
|
12584
|
+
}
|
|
12585
|
+
response.data.total_count = totalCount;
|
|
12586
|
+
return response;
|
|
12587
|
+
}
|
|
12588
|
+
function iterator2(octokit, route, parameters) {
|
|
12589
|
+
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
|
12590
|
+
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
12591
|
+
const method = options.method;
|
|
12592
|
+
const headers = options.headers;
|
|
12593
|
+
let url = options.url;
|
|
12594
|
+
return {
|
|
12595
|
+
[Symbol.asyncIterator]: () => ({
|
|
12596
|
+
async next() {
|
|
12597
|
+
if (!url)
|
|
12598
|
+
return { done: true };
|
|
12599
|
+
try {
|
|
12600
|
+
const response = await requestMethod({ method, url, headers });
|
|
12601
|
+
const normalizedResponse = normalizePaginatedListResponse2(response);
|
|
12602
|
+
url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
|
|
12603
|
+
return { value: normalizedResponse };
|
|
12604
|
+
} catch (error) {
|
|
12605
|
+
if (error.status !== 409)
|
|
12606
|
+
throw error;
|
|
12607
|
+
url = "";
|
|
12608
|
+
return {
|
|
12609
|
+
value: {
|
|
12610
|
+
status: 200,
|
|
12611
|
+
headers: {},
|
|
12612
|
+
data: []
|
|
12613
|
+
}
|
|
12614
|
+
};
|
|
12615
|
+
}
|
|
12616
|
+
}
|
|
12617
|
+
})
|
|
12618
|
+
};
|
|
12619
|
+
}
|
|
12620
|
+
function paginate2(octokit, route, parameters, mapFn) {
|
|
12621
|
+
if (typeof parameters === "function") {
|
|
12622
|
+
mapFn = parameters;
|
|
12623
|
+
parameters = void 0;
|
|
12624
|
+
}
|
|
12625
|
+
return gather2(octokit, [], iterator2(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
|
|
12626
|
+
}
|
|
12627
|
+
function gather2(octokit, results, iterator3, mapFn) {
|
|
12628
|
+
return iterator3.next().then((result) => {
|
|
12629
|
+
if (result.done) {
|
|
12630
|
+
return results;
|
|
12631
|
+
}
|
|
12632
|
+
let earlyExit = false;
|
|
12633
|
+
function done() {
|
|
12634
|
+
earlyExit = true;
|
|
12635
|
+
}
|
|
12636
|
+
results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
|
|
12637
|
+
if (earlyExit) {
|
|
12638
|
+
return results;
|
|
12639
|
+
}
|
|
12640
|
+
return gather2(octokit, results, iterator3, mapFn);
|
|
12641
|
+
});
|
|
12642
|
+
}
|
|
12643
|
+
function paginateRest2(octokit) {
|
|
12644
|
+
return {
|
|
12645
|
+
paginate: Object.assign(paginate2.bind(null, octokit), {
|
|
12646
|
+
iterator: iterator2.bind(null, octokit)
|
|
12647
|
+
})
|
|
12648
|
+
};
|
|
12649
|
+
}
|
|
12650
|
+
var VERSION11, composePaginateRest2;
|
|
12651
|
+
var init_dist_web12 = __esm({
|
|
12652
|
+
"node_modules/putasset/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js"() {
|
|
12653
|
+
VERSION11 = "2.16.3";
|
|
12654
|
+
composePaginateRest2 = Object.assign(paginate2, {
|
|
12655
|
+
iterator: iterator2
|
|
12656
|
+
});
|
|
12657
|
+
paginateRest2.VERSION = VERSION11;
|
|
12658
|
+
}
|
|
12659
|
+
});
|
|
12660
|
+
|
|
12545
12661
|
// node_modules/putasset/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js
|
|
12546
12662
|
function endpointsToMethods2(octokit, endpointsMap) {
|
|
12547
12663
|
const newMethods = {};
|
|
@@ -12601,7 +12717,7 @@ function decorate2(octokit, scope, methodName, defaults, decorations) {
|
|
|
12601
12717
|
function restEndpointMethods2(octokit) {
|
|
12602
12718
|
return endpointsToMethods2(octokit, Endpoints2);
|
|
12603
12719
|
}
|
|
12604
|
-
var Endpoints2,
|
|
12720
|
+
var Endpoints2, VERSION12;
|
|
12605
12721
|
var init_dist_web13 = __esm({
|
|
12606
12722
|
"node_modules/putasset/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js"() {
|
|
12607
12723
|
Endpoints2 = {
|
|
@@ -14594,8 +14710,8 @@ var init_dist_web13 = __esm({
|
|
|
14594
14710
|
updateAuthenticated: ["PATCH /user"]
|
|
14595
14711
|
}
|
|
14596
14712
|
};
|
|
14597
|
-
|
|
14598
|
-
restEndpointMethods2.VERSION =
|
|
14713
|
+
VERSION12 = "3.17.0";
|
|
14714
|
+
restEndpointMethods2.VERSION = VERSION12;
|
|
14599
14715
|
}
|
|
14600
14716
|
});
|
|
14601
14717
|
|
|
@@ -14604,16 +14720,16 @@ var dist_web_exports = {};
|
|
|
14604
14720
|
__export(dist_web_exports, {
|
|
14605
14721
|
Octokit: () => Octokit4
|
|
14606
14722
|
});
|
|
14607
|
-
var
|
|
14723
|
+
var VERSION13, Octokit4;
|
|
14608
14724
|
var init_dist_web14 = __esm({
|
|
14609
14725
|
"node_modules/putasset/node_modules/@octokit/rest/dist-web/index.js"() {
|
|
14726
|
+
init_dist_web11();
|
|
14727
|
+
init_dist_web6();
|
|
14610
14728
|
init_dist_web12();
|
|
14611
|
-
init_dist_web7();
|
|
14612
|
-
init_dist_web8();
|
|
14613
14729
|
init_dist_web13();
|
|
14614
|
-
|
|
14615
|
-
Octokit4 = Octokit3.plugin(requestLog, restEndpointMethods2,
|
|
14616
|
-
userAgent: `octokit-rest.js/${
|
|
14730
|
+
VERSION13 = "17.11.2";
|
|
14731
|
+
Octokit4 = Octokit3.plugin(requestLog, restEndpointMethods2, paginateRest2).defaults({
|
|
14732
|
+
userAgent: `octokit-rest.js/${VERSION13}`
|
|
14617
14733
|
});
|
|
14618
14734
|
}
|
|
14619
14735
|
});
|
|
@@ -23307,16 +23423,24 @@ var require_package = __commonJS({
|
|
|
23307
23423
|
"cli/package.json"(exports2, module2) {
|
|
23308
23424
|
module2.exports = {
|
|
23309
23425
|
name: "@napi-rs/cli",
|
|
23310
|
-
version: "
|
|
23426
|
+
version: "2.0.0-alpha.1",
|
|
23311
23427
|
description: "Cli tools for napi-rs",
|
|
23312
|
-
keywords: [
|
|
23428
|
+
keywords: [
|
|
23429
|
+
"cli",
|
|
23430
|
+
"rust",
|
|
23431
|
+
"napi",
|
|
23432
|
+
"n-api",
|
|
23433
|
+
"neon"
|
|
23434
|
+
],
|
|
23313
23435
|
author: "LongYinan <lynweklm@gmail.com>",
|
|
23314
23436
|
homepage: "https://github.com/napi-rs/napi-rs",
|
|
23315
23437
|
license: "MIT",
|
|
23316
23438
|
bin: {
|
|
23317
23439
|
napi: "./scripts/index.js"
|
|
23318
23440
|
},
|
|
23319
|
-
files: [
|
|
23441
|
+
files: [
|
|
23442
|
+
"scripts"
|
|
23443
|
+
],
|
|
23320
23444
|
engines: {
|
|
23321
23445
|
node: ">= 10"
|
|
23322
23446
|
},
|
|
@@ -23339,26 +23463,27 @@ var require_package = __commonJS({
|
|
|
23339
23463
|
url: "https://github.com/napi-rs/napi-rs/issues"
|
|
23340
23464
|
},
|
|
23341
23465
|
dependencies: {
|
|
23342
|
-
inquirer: "^8.1.
|
|
23466
|
+
inquirer: "^8.1.5"
|
|
23343
23467
|
},
|
|
23344
23468
|
devDependencies: {
|
|
23345
|
-
"@octokit/rest": "^18.
|
|
23346
|
-
"@types/inquirer": "^
|
|
23469
|
+
"@octokit/rest": "^18.11.2",
|
|
23470
|
+
"@types/inquirer": "^8.1.2",
|
|
23347
23471
|
"@types/js-yaml": "^4.0.3",
|
|
23348
23472
|
chalk: "^4.1.2",
|
|
23349
|
-
clipanion: "^3.0
|
|
23473
|
+
clipanion: "^3.1.0",
|
|
23350
23474
|
debug: "^4.3.2",
|
|
23351
23475
|
fdir: "^5.1.0",
|
|
23352
23476
|
"js-yaml": "^4.1.0",
|
|
23353
23477
|
putasset: "^5.0.3",
|
|
23354
23478
|
toml: "^3.0.0",
|
|
23355
23479
|
tslib: "^2.3.1",
|
|
23356
|
-
typanion: "^3.
|
|
23480
|
+
typanion: "^3.5.0"
|
|
23357
23481
|
},
|
|
23358
23482
|
funding: {
|
|
23359
23483
|
type: "github",
|
|
23360
23484
|
url: "https://github.com/sponsors/Brooooooklyn"
|
|
23361
|
-
}
|
|
23485
|
+
},
|
|
23486
|
+
gitHead: "16aacd8eec3110114ed45fa2311618160d9d5cfb"
|
|
23362
23487
|
};
|
|
23363
23488
|
}
|
|
23364
23489
|
});
|
|
@@ -23553,6 +23678,7 @@ var BuildCommand = class extends import_clipanion2.Command {
|
|
|
23553
23678
|
this.cargoName = import_clipanion2.Option.String("--cargo-name");
|
|
23554
23679
|
this.targetTripleDir = import_clipanion2.Option.String("--target", (_a = process.env.RUST_TARGET) != null ? _a : "");
|
|
23555
23680
|
this.features = import_clipanion2.Option.String("--features");
|
|
23681
|
+
this.dts = import_clipanion2.Option.String("--dts");
|
|
23556
23682
|
this.cargoFlags = import_clipanion2.Option.String("--cargo-flags", "");
|
|
23557
23683
|
this.cargoCwd = import_clipanion2.Option.String("--cargo-cwd");
|
|
23558
23684
|
this.destDir = import_clipanion2.Option.String({
|
|
@@ -23561,10 +23687,10 @@ var BuildCommand = class extends import_clipanion2.Command {
|
|
|
23561
23687
|
}
|
|
23562
23688
|
execute() {
|
|
23563
23689
|
return __async(this, null, function* () {
|
|
23564
|
-
var _a2, _b, _c, _d, _e;
|
|
23690
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
23565
23691
|
const cwd = this.cargoCwd ? (0, import_path3.join)(process.cwd(), this.cargoCwd) : process.cwd();
|
|
23566
23692
|
const releaseFlag = this.isRelease ? `--release` : "";
|
|
23567
|
-
const
|
|
23693
|
+
const targetFlag = this.targetTripleDir ? `--target ${this.targetTripleDir}` : "";
|
|
23568
23694
|
const featuresFlag = this.features ? `--features ${this.features}` : "";
|
|
23569
23695
|
const triple = this.targetTripleDir ? parseTriple(this.targetTripleDir) : getDefaultTargetTriple((0, import_child_process2.execSync)("rustup show active-toolchain", {
|
|
23570
23696
|
env: process.env
|
|
@@ -23572,14 +23698,17 @@ var BuildCommand = class extends import_clipanion2.Command {
|
|
|
23572
23698
|
debug3(`Current triple is: ${import_chalk2.default.green(triple.raw)}`);
|
|
23573
23699
|
const externalFlags = [
|
|
23574
23700
|
releaseFlag,
|
|
23575
|
-
|
|
23701
|
+
targetFlag,
|
|
23576
23702
|
featuresFlag,
|
|
23577
23703
|
this.cargoFlags
|
|
23578
23704
|
].filter((flag) => Boolean(flag)).join(" ");
|
|
23579
23705
|
const cargoCommand = `cargo build ${externalFlags}`;
|
|
23706
|
+
const intermediateTypeFile = (0, import_path3.join)(__dirname, `type_def.${Date.now()}.tmp`);
|
|
23580
23707
|
debug3(`Run ${import_chalk2.default.green(cargoCommand)}`);
|
|
23581
23708
|
(0, import_child_process2.execSync)(cargoCommand, {
|
|
23582
|
-
env: process.env,
|
|
23709
|
+
env: __spreadProps(__spreadValues({}, process.env), {
|
|
23710
|
+
TYPE_DEF_TMP_PATH: intermediateTypeFile
|
|
23711
|
+
}),
|
|
23583
23712
|
stdio: "inherit",
|
|
23584
23713
|
cwd
|
|
23585
23714
|
});
|
|
@@ -23654,6 +23783,7 @@ var BuildCommand = class extends import_clipanion2.Command {
|
|
|
23654
23783
|
}
|
|
23655
23784
|
debug3(`Write binary content to [${import_chalk2.default.yellowBright(distModulePath)}]`);
|
|
23656
23785
|
yield copyFileAsync(sourcePath, distModulePath);
|
|
23786
|
+
yield processIntermediateTypeFile(intermediateTypeFile, (0, import_path3.join)((_f = this.destDir) != null ? _f : ".", (_g = this.dts) != null ? _g : "index.d.ts"));
|
|
23657
23787
|
});
|
|
23658
23788
|
}
|
|
23659
23789
|
};
|
|
@@ -23675,6 +23805,43 @@ function findUp() {
|
|
|
23675
23805
|
return findUp(dirs.join(import_path3.sep));
|
|
23676
23806
|
});
|
|
23677
23807
|
}
|
|
23808
|
+
function processIntermediateTypeFile(source, target) {
|
|
23809
|
+
return __async(this, null, function* () {
|
|
23810
|
+
if (!(yield existsAsync(source))) {
|
|
23811
|
+
debug3(`do not find tmp type file. skip type generation`);
|
|
23812
|
+
return;
|
|
23813
|
+
}
|
|
23814
|
+
const tmpFile = yield readFileAsync(source, "utf8");
|
|
23815
|
+
const lines = tmpFile.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
23816
|
+
let dts = "";
|
|
23817
|
+
const classes = new Map();
|
|
23818
|
+
const impls = new Map();
|
|
23819
|
+
lines.forEach((line) => {
|
|
23820
|
+
const def = JSON.parse(line);
|
|
23821
|
+
switch (def.kind) {
|
|
23822
|
+
case "fn":
|
|
23823
|
+
case "enum":
|
|
23824
|
+
dts += def.def + "\n";
|
|
23825
|
+
break;
|
|
23826
|
+
case "struct":
|
|
23827
|
+
classes.set(def.name, def.def);
|
|
23828
|
+
break;
|
|
23829
|
+
case "impl":
|
|
23830
|
+
impls.set(def.name, def.def);
|
|
23831
|
+
}
|
|
23832
|
+
});
|
|
23833
|
+
for (const [name, def] of impls.entries()) {
|
|
23834
|
+
const classDef = classes.get(name);
|
|
23835
|
+
dts += `export class ${name} {
|
|
23836
|
+
${(classDef != null ? classDef : "").split("\n").map((line) => line.trim()).join("\n ")}
|
|
23837
|
+
${def.split("\n").map((line) => line.trim()).join("\n ")}
|
|
23838
|
+
}
|
|
23839
|
+
`;
|
|
23840
|
+
}
|
|
23841
|
+
yield unlinkAsync(source);
|
|
23842
|
+
yield writeFileAsync(target, dts, "utf8");
|
|
23843
|
+
});
|
|
23844
|
+
}
|
|
23678
23845
|
|
|
23679
23846
|
// cli/src/create-npm-dir.ts
|
|
23680
23847
|
var import_fs2 = __toModule(require("fs"));
|
|
@@ -25740,17 +25907,17 @@ function loadDocuments(input, options) {
|
|
|
25740
25907
|
}
|
|
25741
25908
|
return state.documents;
|
|
25742
25909
|
}
|
|
25743
|
-
function loadAll$1(input,
|
|
25744
|
-
if (
|
|
25745
|
-
options =
|
|
25746
|
-
|
|
25910
|
+
function loadAll$1(input, iterator3, options) {
|
|
25911
|
+
if (iterator3 !== null && typeof iterator3 === "object" && typeof options === "undefined") {
|
|
25912
|
+
options = iterator3;
|
|
25913
|
+
iterator3 = null;
|
|
25747
25914
|
}
|
|
25748
25915
|
var documents = loadDocuments(input, options);
|
|
25749
|
-
if (typeof
|
|
25916
|
+
if (typeof iterator3 !== "function") {
|
|
25750
25917
|
return documents;
|
|
25751
25918
|
}
|
|
25752
25919
|
for (var index = 0, length = documents.length; index < length; index += 1) {
|
|
25753
|
-
|
|
25920
|
+
iterator3(documents[index]);
|
|
25754
25921
|
}
|
|
25755
25922
|
}
|
|
25756
25923
|
function load$1(input, options) {
|
|
@@ -26460,14 +26627,14 @@ jobs:
|
|
|
26460
26627
|
sudo apt-get install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu -y
|
|
26461
26628
|
build: |
|
|
26462
26629
|
yarn build --target=aarch64-unknown-linux-gnu
|
|
26463
|
-
aarch64-linux-gnu-strip
|
|
26630
|
+
aarch64-linux-gnu-strip ${app}.linux-arm64-gnu.node
|
|
26464
26631
|
- host: ubuntu-latest
|
|
26465
26632
|
target: 'armv7-unknown-linux-gnueabihf'
|
|
26466
26633
|
setup: |
|
|
26467
26634
|
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
|
|
26468
26635
|
build: |
|
|
26469
26636
|
yarn build --target=armv7-unknown-linux-gnueabihf
|
|
26470
|
-
arm-linux-gnueabihf-strip
|
|
26637
|
+
arm-linux-gnueabihf-strip ${app}.linux-arm-gnueabihf.node
|
|
26471
26638
|
- host: ubuntu-latest
|
|
26472
26639
|
target: 'aarch64-linux-android'
|
|
26473
26640
|
build: |
|
|
@@ -26481,7 +26648,7 @@ jobs:
|
|
|
26481
26648
|
docker pull ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
|
|
26482
26649
|
docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
|
|
26483
26650
|
build: |
|
|
26484
|
-
docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd)
|
|
26651
|
+
docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd):/build -w /build builder sh -c "yarn build --target=aarch64-unknown-linux-musl && /aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip ${app}.linux-arm64-musl.node"
|
|
26485
26652
|
- host: windows-latest
|
|
26486
26653
|
target: 'aarch64-pc-windows-msvc'
|
|
26487
26654
|
build: yarn build --target aarch64-pc-windows-msvc
|
|
@@ -27050,6 +27217,8 @@ var createPackageJson = (name, binaryName, targets) => {
|
|
|
27050
27217
|
const pkgContent = {
|
|
27051
27218
|
name,
|
|
27052
27219
|
version: "0.0.0",
|
|
27220
|
+
main: "index.js",
|
|
27221
|
+
types: "index.d.ts",
|
|
27053
27222
|
napi: {
|
|
27054
27223
|
name: binaryName
|
|
27055
27224
|
},
|
|
@@ -27195,10 +27364,10 @@ var NewProjectCommand = class extends import_clipanion4.Command {
|
|
|
27195
27364
|
const enableLinuxArm7 = this.targets.includes("armv7-unknown-linux-gnueabihf");
|
|
27196
27365
|
const cargoConfig = createCargoConfig(enableLinuxArm7, enableLinuxArm8Gnu, enableLinuxArm8Musl);
|
|
27197
27366
|
if (cargoConfig.length) {
|
|
27198
|
-
const configDir = (0, import_path5.join)(process.cwd(), this.dirname, ".
|
|
27367
|
+
const configDir = (0, import_path5.join)(process.cwd(), this.dirname, ".cargo");
|
|
27199
27368
|
if (!this.dryRun) {
|
|
27200
27369
|
(0, import_fs3.mkdirSync)(configDir);
|
|
27201
|
-
this.writeFile((0, import_path5.join)(".
|
|
27370
|
+
this.writeFile((0, import_path5.join)(".cargo", "config.toml"), cargoConfig);
|
|
27202
27371
|
}
|
|
27203
27372
|
}
|
|
27204
27373
|
});
|
|
@@ -27337,17 +27506,49 @@ function withCustomRequest(customRequest) {
|
|
|
27337
27506
|
});
|
|
27338
27507
|
}
|
|
27339
27508
|
|
|
27509
|
+
// node_modules/@octokit/auth-token/dist-web/index.js
|
|
27510
|
+
async function auth(token) {
|
|
27511
|
+
const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
|
|
27512
|
+
return {
|
|
27513
|
+
type: "token",
|
|
27514
|
+
token,
|
|
27515
|
+
tokenType
|
|
27516
|
+
};
|
|
27517
|
+
}
|
|
27518
|
+
function withAuthorizationPrefix(token) {
|
|
27519
|
+
if (token.split(/\./).length === 3) {
|
|
27520
|
+
return `bearer ${token}`;
|
|
27521
|
+
}
|
|
27522
|
+
return `token ${token}`;
|
|
27523
|
+
}
|
|
27524
|
+
async function hook(token, request2, route, parameters) {
|
|
27525
|
+
const endpoint2 = request2.endpoint.merge(route, parameters);
|
|
27526
|
+
endpoint2.headers.authorization = withAuthorizationPrefix(token);
|
|
27527
|
+
return request2(endpoint2);
|
|
27528
|
+
}
|
|
27529
|
+
var createTokenAuth = function createTokenAuth2(token) {
|
|
27530
|
+
if (!token) {
|
|
27531
|
+
throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
27532
|
+
}
|
|
27533
|
+
if (typeof token !== "string") {
|
|
27534
|
+
throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
|
|
27535
|
+
}
|
|
27536
|
+
token = token.replace(/^(token|bearer) +/i, "");
|
|
27537
|
+
return Object.assign(auth.bind(null, token), {
|
|
27538
|
+
hook: hook.bind(null, token)
|
|
27539
|
+
});
|
|
27540
|
+
};
|
|
27541
|
+
|
|
27340
27542
|
// node_modules/@octokit/core/dist-web/index.js
|
|
27341
|
-
init_dist_web6();
|
|
27342
27543
|
var VERSION4 = "3.5.1";
|
|
27343
27544
|
var Octokit = class {
|
|
27344
27545
|
constructor(options = {}) {
|
|
27345
|
-
const
|
|
27546
|
+
const hook3 = new import_before_after_hook.Collection();
|
|
27346
27547
|
const requestDefaults = {
|
|
27347
27548
|
baseUrl: request.endpoint.DEFAULTS.baseUrl,
|
|
27348
27549
|
headers: {},
|
|
27349
27550
|
request: Object.assign({}, options.request, {
|
|
27350
|
-
hook:
|
|
27551
|
+
hook: hook3.bind(null, "request")
|
|
27351
27552
|
}),
|
|
27352
27553
|
mediaType: {
|
|
27353
27554
|
previews: [],
|
|
@@ -27377,27 +27578,27 @@ var Octokit = class {
|
|
|
27377
27578
|
warn: console.warn.bind(console),
|
|
27378
27579
|
error: console.error.bind(console)
|
|
27379
27580
|
}, options.log);
|
|
27380
|
-
this.hook =
|
|
27581
|
+
this.hook = hook3;
|
|
27381
27582
|
if (!options.authStrategy) {
|
|
27382
27583
|
if (!options.auth) {
|
|
27383
27584
|
this.auth = async () => ({
|
|
27384
27585
|
type: "unauthenticated"
|
|
27385
27586
|
});
|
|
27386
27587
|
} else {
|
|
27387
|
-
const
|
|
27388
|
-
|
|
27389
|
-
this.auth =
|
|
27588
|
+
const auth3 = createTokenAuth(options.auth);
|
|
27589
|
+
hook3.wrap("request", auth3.hook);
|
|
27590
|
+
this.auth = auth3;
|
|
27390
27591
|
}
|
|
27391
27592
|
} else {
|
|
27392
27593
|
const { authStrategy, ...otherOptions } = options;
|
|
27393
|
-
const
|
|
27594
|
+
const auth3 = authStrategy(Object.assign({
|
|
27394
27595
|
request: this.request,
|
|
27395
27596
|
log: this.log,
|
|
27396
27597
|
octokit: this,
|
|
27397
27598
|
octokitOptions: otherOptions
|
|
27398
27599
|
}, options.auth));
|
|
27399
|
-
|
|
27400
|
-
this.auth =
|
|
27600
|
+
hook3.wrap("request", auth3.hook);
|
|
27601
|
+
this.auth = auth3;
|
|
27401
27602
|
}
|
|
27402
27603
|
const classConstructor = this.constructor;
|
|
27403
27604
|
classConstructor.plugins.forEach((plugin) => {
|
|
@@ -27431,8 +27632,104 @@ Octokit.VERSION = VERSION4;
|
|
|
27431
27632
|
Octokit.plugins = [];
|
|
27432
27633
|
|
|
27433
27634
|
// node_modules/@octokit/rest/dist-web/index.js
|
|
27434
|
-
|
|
27435
|
-
|
|
27635
|
+
init_dist_web6();
|
|
27636
|
+
|
|
27637
|
+
// node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
|
|
27638
|
+
var VERSION6 = "2.16.0";
|
|
27639
|
+
function normalizePaginatedListResponse(response) {
|
|
27640
|
+
if (!response.data) {
|
|
27641
|
+
return {
|
|
27642
|
+
...response,
|
|
27643
|
+
data: []
|
|
27644
|
+
};
|
|
27645
|
+
}
|
|
27646
|
+
const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
|
|
27647
|
+
if (!responseNeedsNormalization)
|
|
27648
|
+
return response;
|
|
27649
|
+
const incompleteResults = response.data.incomplete_results;
|
|
27650
|
+
const repositorySelection = response.data.repository_selection;
|
|
27651
|
+
const totalCount = response.data.total_count;
|
|
27652
|
+
delete response.data.incomplete_results;
|
|
27653
|
+
delete response.data.repository_selection;
|
|
27654
|
+
delete response.data.total_count;
|
|
27655
|
+
const namespaceKey = Object.keys(response.data)[0];
|
|
27656
|
+
const data = response.data[namespaceKey];
|
|
27657
|
+
response.data = data;
|
|
27658
|
+
if (typeof incompleteResults !== "undefined") {
|
|
27659
|
+
response.data.incomplete_results = incompleteResults;
|
|
27660
|
+
}
|
|
27661
|
+
if (typeof repositorySelection !== "undefined") {
|
|
27662
|
+
response.data.repository_selection = repositorySelection;
|
|
27663
|
+
}
|
|
27664
|
+
response.data.total_count = totalCount;
|
|
27665
|
+
return response;
|
|
27666
|
+
}
|
|
27667
|
+
function iterator(octokit, route, parameters) {
|
|
27668
|
+
const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
|
|
27669
|
+
const requestMethod = typeof route === "function" ? route : octokit.request;
|
|
27670
|
+
const method = options.method;
|
|
27671
|
+
const headers = options.headers;
|
|
27672
|
+
let url = options.url;
|
|
27673
|
+
return {
|
|
27674
|
+
[Symbol.asyncIterator]: () => ({
|
|
27675
|
+
async next() {
|
|
27676
|
+
if (!url)
|
|
27677
|
+
return { done: true };
|
|
27678
|
+
try {
|
|
27679
|
+
const response = await requestMethod({ method, url, headers });
|
|
27680
|
+
const normalizedResponse = normalizePaginatedListResponse(response);
|
|
27681
|
+
url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
|
|
27682
|
+
return { value: normalizedResponse };
|
|
27683
|
+
} catch (error) {
|
|
27684
|
+
if (error.status !== 409)
|
|
27685
|
+
throw error;
|
|
27686
|
+
url = "";
|
|
27687
|
+
return {
|
|
27688
|
+
value: {
|
|
27689
|
+
status: 200,
|
|
27690
|
+
headers: {},
|
|
27691
|
+
data: []
|
|
27692
|
+
}
|
|
27693
|
+
};
|
|
27694
|
+
}
|
|
27695
|
+
}
|
|
27696
|
+
})
|
|
27697
|
+
};
|
|
27698
|
+
}
|
|
27699
|
+
function paginate(octokit, route, parameters, mapFn) {
|
|
27700
|
+
if (typeof parameters === "function") {
|
|
27701
|
+
mapFn = parameters;
|
|
27702
|
+
parameters = void 0;
|
|
27703
|
+
}
|
|
27704
|
+
return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
|
|
27705
|
+
}
|
|
27706
|
+
function gather(octokit, results, iterator3, mapFn) {
|
|
27707
|
+
return iterator3.next().then((result) => {
|
|
27708
|
+
if (result.done) {
|
|
27709
|
+
return results;
|
|
27710
|
+
}
|
|
27711
|
+
let earlyExit = false;
|
|
27712
|
+
function done() {
|
|
27713
|
+
earlyExit = true;
|
|
27714
|
+
}
|
|
27715
|
+
results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
|
|
27716
|
+
if (earlyExit) {
|
|
27717
|
+
return results;
|
|
27718
|
+
}
|
|
27719
|
+
return gather(octokit, results, iterator3, mapFn);
|
|
27720
|
+
});
|
|
27721
|
+
}
|
|
27722
|
+
var composePaginateRest = Object.assign(paginate, {
|
|
27723
|
+
iterator
|
|
27724
|
+
});
|
|
27725
|
+
function paginateRest(octokit) {
|
|
27726
|
+
return {
|
|
27727
|
+
paginate: Object.assign(paginate.bind(null, octokit), {
|
|
27728
|
+
iterator: iterator.bind(null, octokit)
|
|
27729
|
+
})
|
|
27730
|
+
};
|
|
27731
|
+
}
|
|
27732
|
+
paginateRest.VERSION = VERSION6;
|
|
27436
27733
|
|
|
27437
27734
|
// node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js
|
|
27438
27735
|
var Endpoints = {
|
|
@@ -29065,7 +29362,7 @@ var PrePublishCommand = class extends import_clipanion6.Command {
|
|
|
29065
29362
|
yield VersionCommand.updatePackageJson(this.prefix, this.configFileName);
|
|
29066
29363
|
yield updatePackageJson(packageJsonPath, {
|
|
29067
29364
|
optionalDependencies: platforms.reduce((acc, cur) => {
|
|
29068
|
-
acc[`${packageName}-${cur.platformArchABI}`] =
|
|
29365
|
+
acc[`${packageName}-${cur.platformArchABI}`] = `${version}`;
|
|
29069
29366
|
return acc;
|
|
29070
29367
|
}, {})
|
|
29071
29368
|
});
|