@napi-rs/cli 1.3.1 → 1.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/cli",
3
- "version": "1.3.1",
3
+ "version": "1.3.5",
4
4
  "description": "Cli tools for napi-rs",
5
5
  "keywords": ["cli", "rust", "napi", "n-api", "neon"],
6
6
  "author": "LongYinan <lynweklm@gmail.com>",
@@ -32,11 +32,11 @@
32
32
  "url": "https://github.com/napi-rs/napi-rs/issues"
33
33
  },
34
34
  "dependencies": {
35
- "inquirer": "^8.1.2"
35
+ "inquirer": "^8.1.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@octokit/rest": "^18.10.0",
39
- "@types/inquirer": "^7.3.3",
39
+ "@types/inquirer": "^8.1.1",
40
40
  "@types/js-yaml": "^4.0.3",
41
41
  "chalk": "^4.1.2",
42
42
  "clipanion": "^3.0.1",
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 __require() {
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) => {
@@ -10365,18 +10368,18 @@ var require_register = __commonJS({
10365
10368
  var require_add = __commonJS({
10366
10369
  "node_modules/before-after-hook/lib/add.js"(exports2, module2) {
10367
10370
  module2.exports = addHook;
10368
- function addHook(state, kind, name, hook2) {
10369
- var orig = hook2;
10371
+ function addHook(state, kind, name, hook3) {
10372
+ var orig = hook3;
10370
10373
  if (!state.registry[name]) {
10371
10374
  state.registry[name] = [];
10372
10375
  }
10373
10376
  if (kind === "before") {
10374
- hook2 = function(method, options) {
10377
+ hook3 = function(method, options) {
10375
10378
  return Promise.resolve().then(orig.bind(null, options)).then(method.bind(null, options));
10376
10379
  };
10377
10380
  }
10378
10381
  if (kind === "after") {
10379
- hook2 = function(method, options) {
10382
+ hook3 = function(method, options) {
10380
10383
  var result;
10381
10384
  return Promise.resolve().then(method.bind(null, options)).then(function(result_) {
10382
10385
  result = result_;
@@ -10387,14 +10390,14 @@ var require_add = __commonJS({
10387
10390
  };
10388
10391
  }
10389
10392
  if (kind === "error") {
10390
- hook2 = function(method, options) {
10393
+ hook3 = function(method, options) {
10391
10394
  return Promise.resolve().then(method.bind(null, options)).catch(function(error) {
10392
10395
  return orig(error, options);
10393
10396
  });
10394
10397
  };
10395
10398
  }
10396
10399
  state.registry[name].push({
10397
- hook: hook2,
10400
+ hook: hook3,
10398
10401
  orig
10399
10402
  });
10400
10403
  }
@@ -10428,13 +10431,13 @@ var require_before_after_hook = __commonJS({
10428
10431
  var removeHook = require_remove();
10429
10432
  var bind = Function.bind;
10430
10433
  var bindable = bind.bind(bind);
10431
- function bindApi(hook2, state, name) {
10434
+ function bindApi(hook3, state, name) {
10432
10435
  var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state]);
10433
- hook2.api = { remove: removeHookRef };
10434
- hook2.remove = removeHookRef;
10436
+ hook3.api = { remove: removeHookRef };
10437
+ hook3.remove = removeHookRef;
10435
10438
  ["before", "error", "after", "wrap"].forEach(function(kind) {
10436
10439
  var args = name ? [state, kind, name] : [state, kind];
10437
- hook2[kind] = hook2.api[kind] = bindable(addHook, null).apply(null, args);
10440
+ hook3[kind] = hook3.api[kind] = bindable(addHook, null).apply(null, args);
10438
10441
  });
10439
10442
  }
10440
10443
  function HookSingular() {
@@ -10450,9 +10453,9 @@ var require_before_after_hook = __commonJS({
10450
10453
  var state = {
10451
10454
  registry: {}
10452
10455
  };
10453
- var hook2 = register.bind(null, state);
10454
- bindApi(hook2, state);
10455
- return hook2;
10456
+ var hook3 = register.bind(null, state);
10457
+ bindApi(hook3, state);
10458
+ return hook3;
10456
10459
  }
10457
10460
  var collectionHookDeprecationMessageDisplayed = false;
10458
10461
  function Hook() {
@@ -11091,13 +11094,13 @@ function getHeaders(headers) {
11091
11094
  });
11092
11095
  }
11093
11096
  function createHeadersIterator(target, kind) {
11094
- const iterator2 = Object.create(HeadersIteratorPrototype);
11095
- iterator2[INTERNAL] = {
11097
+ const iterator3 = Object.create(HeadersIteratorPrototype);
11098
+ iterator3[INTERNAL] = {
11096
11099
  target,
11097
11100
  kind,
11098
11101
  index: 0
11099
11102
  };
11100
- return iterator2;
11103
+ return iterator3;
11101
11104
  }
11102
11105
  function exportNodeCompatibleHeaders(headers) {
11103
11106
  const obj = Object.assign({ __proto__: null }, headers[MAP]);
@@ -12150,44 +12153,6 @@ var init_dist_web5 = __esm({
12150
12153
  }
12151
12154
  });
12152
12155
 
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
12156
  // node_modules/@octokit/plugin-request-log/dist-web/index.js
12192
12157
  function requestLog(octokit) {
12193
12158
  octokit.hook.wrap("request", (request2, options) => {
@@ -12205,115 +12170,13 @@ function requestLog(octokit) {
12205
12170
  });
12206
12171
  }
12207
12172
  var VERSION5;
12208
- var init_dist_web7 = __esm({
12173
+ var init_dist_web6 = __esm({
12209
12174
  "node_modules/@octokit/plugin-request-log/dist-web/index.js"() {
12210
12175
  VERSION5 = "1.0.4";
12211
12176
  requestLog.VERSION = VERSION5;
12212
12177
  }
12213
12178
  });
12214
12179
 
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
12180
  // node_modules/putasset/node_modules/universal-user-agent/dist-web/index.js
12318
12181
  function getUserAgent2() {
12319
12182
  try {
@@ -12322,7 +12185,7 @@ function getUserAgent2() {
12322
12185
  return "<environment undetectable>";
12323
12186
  }
12324
12187
  }
12325
- var init_dist_web9 = __esm({
12188
+ var init_dist_web7 = __esm({
12326
12189
  "node_modules/putasset/node_modules/universal-user-agent/dist-web/index.js"() {
12327
12190
  }
12328
12191
  });
@@ -12337,7 +12200,7 @@ function getUserAgent3() {
12337
12200
  }
12338
12201
  return "<environment undetectable>";
12339
12202
  }
12340
- var init_dist_web10 = __esm({
12203
+ var init_dist_web8 = __esm({
12341
12204
  "node_modules/putasset/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-web/index.js"() {
12342
12205
  }
12343
12206
  });
@@ -12394,10 +12257,10 @@ function withCustomRequest2(customRequest) {
12394
12257
  });
12395
12258
  }
12396
12259
  var VERSION9, GraphqlError, NON_VARIABLE_OPTIONS2, GHES_V3_SUFFIX_REGEX2, graphql$12;
12397
- var init_dist_web11 = __esm({
12260
+ var init_dist_web9 = __esm({
12398
12261
  "node_modules/putasset/node_modules/@octokit/graphql/dist-web/index.js"() {
12399
12262
  init_dist_web5();
12400
- init_dist_web10();
12263
+ init_dist_web8();
12401
12264
  VERSION9 = "4.5.7";
12402
12265
  GraphqlError = class extends Error {
12403
12266
  constructor(request2, response) {
@@ -12432,24 +12295,68 @@ var init_dist_web11 = __esm({
12432
12295
  }
12433
12296
  });
12434
12297
 
12298
+ // node_modules/putasset/node_modules/@octokit/auth-token/dist-web/index.js
12299
+ async function auth2(token) {
12300
+ const isApp = token.split(/\./).length === 3;
12301
+ const isInstallation = REGEX_IS_INSTALLATION_LEGACY.test(token) || REGEX_IS_INSTALLATION.test(token);
12302
+ const isUserToServer = REGEX_IS_USER_TO_SERVER.test(token);
12303
+ const tokenType = isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth";
12304
+ return {
12305
+ type: "token",
12306
+ token,
12307
+ tokenType
12308
+ };
12309
+ }
12310
+ function withAuthorizationPrefix2(token) {
12311
+ if (token.split(/\./).length === 3) {
12312
+ return `bearer ${token}`;
12313
+ }
12314
+ return `token ${token}`;
12315
+ }
12316
+ async function hook2(token, request2, route, parameters) {
12317
+ const endpoint2 = request2.endpoint.merge(route, parameters);
12318
+ endpoint2.headers.authorization = withAuthorizationPrefix2(token);
12319
+ return request2(endpoint2);
12320
+ }
12321
+ var REGEX_IS_INSTALLATION_LEGACY, REGEX_IS_INSTALLATION, REGEX_IS_USER_TO_SERVER, createTokenAuth3;
12322
+ var init_dist_web10 = __esm({
12323
+ "node_modules/putasset/node_modules/@octokit/auth-token/dist-web/index.js"() {
12324
+ REGEX_IS_INSTALLATION_LEGACY = /^v1\./;
12325
+ REGEX_IS_INSTALLATION = /^ghs_/;
12326
+ REGEX_IS_USER_TO_SERVER = /^ghu_/;
12327
+ createTokenAuth3 = function createTokenAuth4(token) {
12328
+ if (!token) {
12329
+ throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
12330
+ }
12331
+ if (typeof token !== "string") {
12332
+ throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
12333
+ }
12334
+ token = token.replace(/^(token|bearer) +/i, "");
12335
+ return Object.assign(auth2.bind(null, token), {
12336
+ hook: hook2.bind(null, token)
12337
+ });
12338
+ };
12339
+ }
12340
+ });
12341
+
12435
12342
  // node_modules/putasset/node_modules/@octokit/core/dist-web/index.js
12436
12343
  var import_before_after_hook2, VERSION10, Octokit3;
12437
- var init_dist_web12 = __esm({
12344
+ var init_dist_web11 = __esm({
12438
12345
  "node_modules/putasset/node_modules/@octokit/core/dist-web/index.js"() {
12439
- init_dist_web9();
12346
+ init_dist_web7();
12440
12347
  import_before_after_hook2 = __toModule(require_before_after_hook());
12441
12348
  init_dist_web5();
12442
- init_dist_web11();
12443
- init_dist_web6();
12349
+ init_dist_web9();
12350
+ init_dist_web10();
12444
12351
  VERSION10 = "2.5.4";
12445
12352
  Octokit3 = class {
12446
12353
  constructor(options = {}) {
12447
- const hook2 = new import_before_after_hook2.Collection();
12354
+ const hook3 = new import_before_after_hook2.Collection();
12448
12355
  const requestDefaults = {
12449
12356
  baseUrl: request.endpoint.DEFAULTS.baseUrl,
12450
12357
  headers: {},
12451
12358
  request: Object.assign({}, options.request, {
12452
- hook: hook2.bind(null, "request")
12359
+ hook: hook3.bind(null, "request")
12453
12360
  }),
12454
12361
  mediaType: {
12455
12362
  previews: [],
@@ -12482,23 +12389,23 @@ var init_dist_web12 = __esm({
12482
12389
  warn: console.warn.bind(console),
12483
12390
  error: console.error.bind(console)
12484
12391
  }, options.log);
12485
- this.hook = hook2;
12392
+ this.hook = hook3;
12486
12393
  if (!options.authStrategy) {
12487
12394
  if (!options.auth) {
12488
12395
  this.auth = async () => ({
12489
12396
  type: "unauthenticated"
12490
12397
  });
12491
12398
  } else {
12492
- const auth2 = createTokenAuth(options.auth);
12493
- hook2.wrap("request", auth2.hook);
12494
- this.auth = auth2;
12399
+ const auth3 = createTokenAuth3(options.auth);
12400
+ hook3.wrap("request", auth3.hook);
12401
+ this.auth = auth3;
12495
12402
  }
12496
12403
  } else {
12497
- const auth2 = options.authStrategy(Object.assign({
12404
+ const auth3 = options.authStrategy(Object.assign({
12498
12405
  request: this.request
12499
12406
  }, options.auth));
12500
- hook2.wrap("request", auth2.hook);
12501
- this.auth = auth2;
12407
+ hook3.wrap("request", auth3.hook);
12408
+ this.auth = auth3;
12502
12409
  }
12503
12410
  const classConstructor = this.constructor;
12504
12411
  classConstructor.plugins.forEach((plugin) => {
@@ -12542,6 +12449,108 @@ var init_dist_web12 = __esm({
12542
12449
  }
12543
12450
  });
12544
12451
 
12452
+ // node_modules/putasset/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
12453
+ function normalizePaginatedListResponse2(response) {
12454
+ if (!response.data) {
12455
+ return {
12456
+ ...response,
12457
+ data: []
12458
+ };
12459
+ }
12460
+ const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
12461
+ if (!responseNeedsNormalization)
12462
+ return response;
12463
+ const incompleteResults = response.data.incomplete_results;
12464
+ const repositorySelection = response.data.repository_selection;
12465
+ const totalCount = response.data.total_count;
12466
+ delete response.data.incomplete_results;
12467
+ delete response.data.repository_selection;
12468
+ delete response.data.total_count;
12469
+ const namespaceKey = Object.keys(response.data)[0];
12470
+ const data = response.data[namespaceKey];
12471
+ response.data = data;
12472
+ if (typeof incompleteResults !== "undefined") {
12473
+ response.data.incomplete_results = incompleteResults;
12474
+ }
12475
+ if (typeof repositorySelection !== "undefined") {
12476
+ response.data.repository_selection = repositorySelection;
12477
+ }
12478
+ response.data.total_count = totalCount;
12479
+ return response;
12480
+ }
12481
+ function iterator2(octokit, route, parameters) {
12482
+ const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
12483
+ const requestMethod = typeof route === "function" ? route : octokit.request;
12484
+ const method = options.method;
12485
+ const headers = options.headers;
12486
+ let url = options.url;
12487
+ return {
12488
+ [Symbol.asyncIterator]: () => ({
12489
+ async next() {
12490
+ if (!url)
12491
+ return { done: true };
12492
+ try {
12493
+ const response = await requestMethod({ method, url, headers });
12494
+ const normalizedResponse = normalizePaginatedListResponse2(response);
12495
+ url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
12496
+ return { value: normalizedResponse };
12497
+ } catch (error) {
12498
+ if (error.status !== 409)
12499
+ throw error;
12500
+ url = "";
12501
+ return {
12502
+ value: {
12503
+ status: 200,
12504
+ headers: {},
12505
+ data: []
12506
+ }
12507
+ };
12508
+ }
12509
+ }
12510
+ })
12511
+ };
12512
+ }
12513
+ function paginate2(octokit, route, parameters, mapFn) {
12514
+ if (typeof parameters === "function") {
12515
+ mapFn = parameters;
12516
+ parameters = void 0;
12517
+ }
12518
+ return gather2(octokit, [], iterator2(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
12519
+ }
12520
+ function gather2(octokit, results, iterator3, mapFn) {
12521
+ return iterator3.next().then((result) => {
12522
+ if (result.done) {
12523
+ return results;
12524
+ }
12525
+ let earlyExit = false;
12526
+ function done() {
12527
+ earlyExit = true;
12528
+ }
12529
+ results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
12530
+ if (earlyExit) {
12531
+ return results;
12532
+ }
12533
+ return gather2(octokit, results, iterator3, mapFn);
12534
+ });
12535
+ }
12536
+ function paginateRest2(octokit) {
12537
+ return {
12538
+ paginate: Object.assign(paginate2.bind(null, octokit), {
12539
+ iterator: iterator2.bind(null, octokit)
12540
+ })
12541
+ };
12542
+ }
12543
+ var VERSION11, composePaginateRest2;
12544
+ var init_dist_web12 = __esm({
12545
+ "node_modules/putasset/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js"() {
12546
+ VERSION11 = "2.16.3";
12547
+ composePaginateRest2 = Object.assign(paginate2, {
12548
+ iterator: iterator2
12549
+ });
12550
+ paginateRest2.VERSION = VERSION11;
12551
+ }
12552
+ });
12553
+
12545
12554
  // node_modules/putasset/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js
12546
12555
  function endpointsToMethods2(octokit, endpointsMap) {
12547
12556
  const newMethods = {};
@@ -12601,7 +12610,7 @@ function decorate2(octokit, scope, methodName, defaults, decorations) {
12601
12610
  function restEndpointMethods2(octokit) {
12602
12611
  return endpointsToMethods2(octokit, Endpoints2);
12603
12612
  }
12604
- var Endpoints2, VERSION11;
12613
+ var Endpoints2, VERSION12;
12605
12614
  var init_dist_web13 = __esm({
12606
12615
  "node_modules/putasset/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js"() {
12607
12616
  Endpoints2 = {
@@ -14594,8 +14603,8 @@ var init_dist_web13 = __esm({
14594
14603
  updateAuthenticated: ["PATCH /user"]
14595
14604
  }
14596
14605
  };
14597
- VERSION11 = "3.17.0";
14598
- restEndpointMethods2.VERSION = VERSION11;
14606
+ VERSION12 = "3.17.0";
14607
+ restEndpointMethods2.VERSION = VERSION12;
14599
14608
  }
14600
14609
  });
14601
14610
 
@@ -14604,16 +14613,16 @@ var dist_web_exports = {};
14604
14613
  __export(dist_web_exports, {
14605
14614
  Octokit: () => Octokit4
14606
14615
  });
14607
- var VERSION12, Octokit4;
14616
+ var VERSION13, Octokit4;
14608
14617
  var init_dist_web14 = __esm({
14609
14618
  "node_modules/putasset/node_modules/@octokit/rest/dist-web/index.js"() {
14619
+ init_dist_web11();
14620
+ init_dist_web6();
14610
14621
  init_dist_web12();
14611
- init_dist_web7();
14612
- init_dist_web8();
14613
14622
  init_dist_web13();
14614
- VERSION12 = "17.11.2";
14615
- Octokit4 = Octokit3.plugin(requestLog, restEndpointMethods2, paginateRest).defaults({
14616
- userAgent: `octokit-rest.js/${VERSION12}`
14623
+ VERSION13 = "17.11.2";
14624
+ Octokit4 = Octokit3.plugin(requestLog, restEndpointMethods2, paginateRest2).defaults({
14625
+ userAgent: `octokit-rest.js/${VERSION13}`
14617
14626
  });
14618
14627
  }
14619
14628
  });
@@ -23307,7 +23316,7 @@ var require_package = __commonJS({
23307
23316
  "cli/package.json"(exports2, module2) {
23308
23317
  module2.exports = {
23309
23318
  name: "@napi-rs/cli",
23310
- version: "1.3.1",
23319
+ version: "1.3.4",
23311
23320
  description: "Cli tools for napi-rs",
23312
23321
  keywords: ["cli", "rust", "napi", "n-api", "neon"],
23313
23322
  author: "LongYinan <lynweklm@gmail.com>",
@@ -23339,11 +23348,11 @@ var require_package = __commonJS({
23339
23348
  url: "https://github.com/napi-rs/napi-rs/issues"
23340
23349
  },
23341
23350
  dependencies: {
23342
- inquirer: "^8.1.2"
23351
+ inquirer: "^8.1.3"
23343
23352
  },
23344
23353
  devDependencies: {
23345
23354
  "@octokit/rest": "^18.10.0",
23346
- "@types/inquirer": "^7.3.3",
23355
+ "@types/inquirer": "^8.1.1",
23347
23356
  "@types/js-yaml": "^4.0.3",
23348
23357
  chalk: "^4.1.2",
23349
23358
  clipanion: "^3.0.1",
@@ -25740,17 +25749,17 @@ function loadDocuments(input, options) {
25740
25749
  }
25741
25750
  return state.documents;
25742
25751
  }
25743
- function loadAll$1(input, iterator2, options) {
25744
- if (iterator2 !== null && typeof iterator2 === "object" && typeof options === "undefined") {
25745
- options = iterator2;
25746
- iterator2 = null;
25752
+ function loadAll$1(input, iterator3, options) {
25753
+ if (iterator3 !== null && typeof iterator3 === "object" && typeof options === "undefined") {
25754
+ options = iterator3;
25755
+ iterator3 = null;
25747
25756
  }
25748
25757
  var documents = loadDocuments(input, options);
25749
- if (typeof iterator2 !== "function") {
25758
+ if (typeof iterator3 !== "function") {
25750
25759
  return documents;
25751
25760
  }
25752
25761
  for (var index = 0, length = documents.length; index < length; index += 1) {
25753
- iterator2(documents[index]);
25762
+ iterator3(documents[index]);
25754
25763
  }
25755
25764
  }
25756
25765
  function load$1(input, options) {
@@ -26422,7 +26431,9 @@ jobs:
26422
26431
  settings:
26423
26432
  - host: macos-latest
26424
26433
  target: 'x86_64-apple-darwin'
26425
- build: yarn build
26434
+ build: |
26435
+ yarn build
26436
+ strip -x *.node
26426
26437
  - host: windows-latest
26427
26438
  build: yarn build
26428
26439
  target: 'x86_64-pc-windows-msvc'
@@ -26453,21 +26464,25 @@ jobs:
26453
26464
  build: docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd):/build -w /build builder yarn build && strip ${app}.linux-x64-musl.node
26454
26465
  - host: macos-latest
26455
26466
  target: 'aarch64-apple-darwin'
26456
- build: yarn build --target=aarch64-apple-darwin
26467
+ build: |
26468
+ yarn build --target=aarch64-apple-darwin
26469
+ strip -x *.node
26457
26470
  - host: ubuntu-latest
26458
26471
  target: 'aarch64-unknown-linux-gnu'
26459
26472
  setup: |
26473
+ sudo apt-get update
26460
26474
  sudo apt-get install g++-aarch64-linux-gnu gcc-aarch64-linux-gnu -y
26461
26475
  build: |
26462
26476
  yarn build --target=aarch64-unknown-linux-gnu
26463
- aarch64-linux-gnu-strip \${{ env.APP_NAME }}.linux-arm64-gnu.node
26477
+ aarch64-linux-gnu-strip ${app}.linux-arm64-gnu.node
26464
26478
  - host: ubuntu-latest
26465
26479
  target: 'armv7-unknown-linux-gnueabihf'
26466
26480
  setup: |
26481
+ sudo apt-get update
26467
26482
  sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
26468
26483
  build: |
26469
26484
  yarn build --target=armv7-unknown-linux-gnueabihf
26470
- arm-linux-gnueabihf-strip \${{ env.APP_NAME }}.linux-arm-gnueabihf.node
26485
+ arm-linux-gnueabihf-strip ${app}.linux-arm-gnueabihf.node
26471
26486
  - host: ubuntu-latest
26472
26487
  target: 'aarch64-linux-android'
26473
26488
  build: |
@@ -26481,7 +26496,7 @@ jobs:
26481
26496
  docker pull ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
26482
26497
  docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
26483
26498
  build: |
26484
- docker run --rm -v ~/.cargo/git:/root/.cargo/git -v ~/.cargo/registry:/root/.cargo/registry -v $(pwd):/${app} -w /${app} builder sh -c "yarn build -- --target=aarch64-unknown-linux-musl && /aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip ${app}.linux-arm64-musl.node"
26499
+ 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
26500
  - host: windows-latest
26486
26501
  target: 'aarch64-pc-windows-msvc'
26487
26502
  build: yarn build --target aarch64-pc-windows-msvc
@@ -26556,7 +26571,7 @@ jobs:
26556
26571
  path: \${{ env.APP_NAME }}.*.node
26557
26572
 
26558
26573
  build-freebsd:
26559
- runs-on: macos-latest
26574
+ runs-on: macos-10.15
26560
26575
  name: Build FreeBSD
26561
26576
  steps:
26562
26577
  - uses: actions/checkout@v2
@@ -26573,7 +26588,9 @@ jobs:
26573
26588
  usesh: true
26574
26589
  mem: 3000
26575
26590
  prepare: |
26576
- pkg install -y curl node yarn npm python2
26591
+ pkg install -y curl node14 python2
26592
+ curl -qL https://www.npmjs.com/install.sh | sh
26593
+ npm install -g yarn
26577
26594
  curl https://sh.rustup.rs -sSf --output rustup.sh
26578
26595
  sh rustup.sh -y --profile minimal --default-toolchain stable
26579
26596
  export PATH="/usr/local/cargo/bin:$PATH"
@@ -26754,20 +26771,25 @@ jobs:
26754
26771
  run: ls -R .
26755
26772
  shell: bash
26756
26773
 
26774
+ - name: Cache NPM dependencies
26775
+ uses: actions/cache@v2
26776
+ with:
26777
+ path: node_modules
26778
+ key: npm-cache-test-linux-aarch64-gnu-\${{ matrix.node }}-\${{ hashFiles('yarn.lock') }}
26779
+
26780
+ - name: Install dependencies
26781
+ run: yarn install --ignore-scripts --ignore-platform --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
26782
+
26757
26783
  - name: Setup and run tests
26758
- uses: docker://multiarch/ubuntu-core:arm64-focal
26784
+ uses: addnab/docker-run-action@v3
26759
26785
  with:
26760
- args: >
26761
- sh -c "
26762
- apt-get update && \\
26763
- apt-get install -y ca-certificates gnupg2 curl apt-transport-https && \\
26764
- curl -sL https://deb.nodesource.com/setup_\${{ matrix.node }}.x | bash - && \\
26765
- apt-get install -y nodejs && \\
26766
- npm install -g yarn && \\
26767
- yarn install --ignore-scripts --registry https://registry.npmjs.org --network-timeout 300000 && \\
26768
- yarn test && \\
26769
- ls -la
26770
- "
26786
+ image: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-\${{ matrix.node }}
26787
+ options: -v \${{ github.workspace }}:/build -w /build
26788
+ run: |
26789
+ set -e
26790
+ yarn test
26791
+ ls -la
26792
+
26771
26793
  test-linux-aarch64-musl-binding:
26772
26794
  name: Test bindings on aarch64-unknown-linux-musl - node@\${{ matrix.node }}
26773
26795
  needs:
@@ -26790,16 +26812,25 @@ jobs:
26790
26812
  run: ls -R .
26791
26813
  shell: bash
26792
26814
 
26815
+ - name: Cache NPM dependencies
26816
+ uses: actions/cache@v2
26817
+ with:
26818
+ path: node_modules
26819
+ key: npm-cache-test-linux-aarch64-musl-\${{ matrix.node }}-\${{ hashFiles('yarn.lock') }}
26820
+
26821
+ - name: Install dependencies
26822
+ run: yarn install --ignore-scripts --ignore-platform --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
26823
+
26793
26824
  - name: Setup and run tests
26794
- uses: docker://multiarch/alpine:aarch64-latest-stable
26825
+ uses: addnab/docker-run-action@v3
26795
26826
  with:
26796
- args: >
26797
- sh -c "
26798
- apk add nodejs npm && \\
26799
- npm install -g yarn && \\
26800
- yarn install --ignore-scripts --registry https://registry.npmjs.org --network-timeout 300000 && \\
26801
- npm test
26802
- "
26827
+ image: multiarch/alpine:aarch64-latest-stable
26828
+ options: -v \${{ github.workspace }}:/build -w /build
26829
+ run: |
26830
+ set -e
26831
+ apk add nodejs npm yarn
26832
+ yarn test
26833
+
26803
26834
  test-linux-arm-gnueabihf-binding:
26804
26835
  name: Test bindings on armv7-unknown-linux-gnueabihf - node@\${{ matrix.node }}
26805
26836
  needs:
@@ -26825,20 +26856,25 @@ jobs:
26825
26856
  run: ls -R .
26826
26857
  shell: bash
26827
26858
 
26859
+ - name: Cache NPM dependencies
26860
+ uses: actions/cache@v2
26861
+ with:
26862
+ path: node_modules
26863
+ key: npm-cache-test-linux-arm-gnueabihf-\${{ matrix.node }}-\${{ hashFiles('yarn.lock') }}
26864
+
26865
+ - name: Install dependencies
26866
+ run: yarn install --ignore-scripts --ignore-platform --frozen-lockfile --registry https://registry.npmjs.org --network-timeout 300000
26867
+
26828
26868
  - name: Setup and run tests
26829
- uses: docker://multiarch/ubuntu-core:armhf-focal
26869
+ uses: addnab/docker-run-action@v3
26830
26870
  with:
26831
- args: >
26832
- sh -c "
26833
- apt-get update && \\
26834
- apt-get install -y ca-certificates gnupg2 curl apt-transport-https && \\
26835
- curl -sL https://deb.nodesource.com/setup_\${{ matrix.node }}.x | bash - && \\
26836
- apt-get install -y nodejs && \\
26837
- npm install -g yarn && \\
26838
- yarn install --ignore-scripts --registry https://registry.npmjs.org --network-timeout 300000 && \\
26839
- yarn test && \\
26840
- ls -la
26841
- "
26871
+ image: ghcr.io/napi-rs/napi-rs/nodejs:armhf-\${{ matrix.node }}
26872
+ options: -v \${{ github.workspace }}:/build -w /build
26873
+ run: |
26874
+ set -e
26875
+ yarn test
26876
+ ls -la
26877
+
26842
26878
  publish:
26843
26879
  name: Publish
26844
26880
  runs-on: ubuntu-latest
@@ -26961,6 +26997,7 @@ var createGithubActionsCIYml = (binaryName, targets) => {
26961
26997
  } else {
26962
26998
  requiredSteps.push(TEST_LINUX_ARM_GNUEABIHF);
26963
26999
  }
27000
+ fullTemplate.jobs.publish.needs = requiredSteps;
26964
27001
  return dump(fullTemplate, {
26965
27002
  lineWidth: 1e3
26966
27003
  });
@@ -27195,10 +27232,10 @@ var NewProjectCommand = class extends import_clipanion4.Command {
27195
27232
  const enableLinuxArm7 = this.targets.includes("armv7-unknown-linux-gnueabihf");
27196
27233
  const cargoConfig = createCargoConfig(enableLinuxArm7, enableLinuxArm8Gnu, enableLinuxArm8Musl);
27197
27234
  if (cargoConfig.length) {
27198
- const configDir = (0, import_path5.join)(process.cwd(), this.dirname, ".config");
27235
+ const configDir = (0, import_path5.join)(process.cwd(), this.dirname, ".cargo");
27199
27236
  if (!this.dryRun) {
27200
27237
  (0, import_fs3.mkdirSync)(configDir);
27201
- this.writeFile((0, import_path5.join)(".config", "config.toml"), cargoConfig);
27238
+ this.writeFile((0, import_path5.join)(".cargo", "config.toml"), cargoConfig);
27202
27239
  }
27203
27240
  }
27204
27241
  });
@@ -27337,17 +27374,49 @@ function withCustomRequest(customRequest) {
27337
27374
  });
27338
27375
  }
27339
27376
 
27377
+ // node_modules/@octokit/auth-token/dist-web/index.js
27378
+ async function auth(token) {
27379
+ const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
27380
+ return {
27381
+ type: "token",
27382
+ token,
27383
+ tokenType
27384
+ };
27385
+ }
27386
+ function withAuthorizationPrefix(token) {
27387
+ if (token.split(/\./).length === 3) {
27388
+ return `bearer ${token}`;
27389
+ }
27390
+ return `token ${token}`;
27391
+ }
27392
+ async function hook(token, request2, route, parameters) {
27393
+ const endpoint2 = request2.endpoint.merge(route, parameters);
27394
+ endpoint2.headers.authorization = withAuthorizationPrefix(token);
27395
+ return request2(endpoint2);
27396
+ }
27397
+ var createTokenAuth = function createTokenAuth2(token) {
27398
+ if (!token) {
27399
+ throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
27400
+ }
27401
+ if (typeof token !== "string") {
27402
+ throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
27403
+ }
27404
+ token = token.replace(/^(token|bearer) +/i, "");
27405
+ return Object.assign(auth.bind(null, token), {
27406
+ hook: hook.bind(null, token)
27407
+ });
27408
+ };
27409
+
27340
27410
  // node_modules/@octokit/core/dist-web/index.js
27341
- init_dist_web6();
27342
27411
  var VERSION4 = "3.5.1";
27343
27412
  var Octokit = class {
27344
27413
  constructor(options = {}) {
27345
- const hook2 = new import_before_after_hook.Collection();
27414
+ const hook3 = new import_before_after_hook.Collection();
27346
27415
  const requestDefaults = {
27347
27416
  baseUrl: request.endpoint.DEFAULTS.baseUrl,
27348
27417
  headers: {},
27349
27418
  request: Object.assign({}, options.request, {
27350
- hook: hook2.bind(null, "request")
27419
+ hook: hook3.bind(null, "request")
27351
27420
  }),
27352
27421
  mediaType: {
27353
27422
  previews: [],
@@ -27377,27 +27446,27 @@ var Octokit = class {
27377
27446
  warn: console.warn.bind(console),
27378
27447
  error: console.error.bind(console)
27379
27448
  }, options.log);
27380
- this.hook = hook2;
27449
+ this.hook = hook3;
27381
27450
  if (!options.authStrategy) {
27382
27451
  if (!options.auth) {
27383
27452
  this.auth = async () => ({
27384
27453
  type: "unauthenticated"
27385
27454
  });
27386
27455
  } else {
27387
- const auth2 = createTokenAuth(options.auth);
27388
- hook2.wrap("request", auth2.hook);
27389
- this.auth = auth2;
27456
+ const auth3 = createTokenAuth(options.auth);
27457
+ hook3.wrap("request", auth3.hook);
27458
+ this.auth = auth3;
27390
27459
  }
27391
27460
  } else {
27392
27461
  const { authStrategy, ...otherOptions } = options;
27393
- const auth2 = authStrategy(Object.assign({
27462
+ const auth3 = authStrategy(Object.assign({
27394
27463
  request: this.request,
27395
27464
  log: this.log,
27396
27465
  octokit: this,
27397
27466
  octokitOptions: otherOptions
27398
27467
  }, options.auth));
27399
- hook2.wrap("request", auth2.hook);
27400
- this.auth = auth2;
27468
+ hook3.wrap("request", auth3.hook);
27469
+ this.auth = auth3;
27401
27470
  }
27402
27471
  const classConstructor = this.constructor;
27403
27472
  classConstructor.plugins.forEach((plugin) => {
@@ -27431,8 +27500,104 @@ Octokit.VERSION = VERSION4;
27431
27500
  Octokit.plugins = [];
27432
27501
 
27433
27502
  // node_modules/@octokit/rest/dist-web/index.js
27434
- init_dist_web7();
27435
- init_dist_web8();
27503
+ init_dist_web6();
27504
+
27505
+ // node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
27506
+ var VERSION6 = "2.16.0";
27507
+ function normalizePaginatedListResponse(response) {
27508
+ if (!response.data) {
27509
+ return {
27510
+ ...response,
27511
+ data: []
27512
+ };
27513
+ }
27514
+ const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
27515
+ if (!responseNeedsNormalization)
27516
+ return response;
27517
+ const incompleteResults = response.data.incomplete_results;
27518
+ const repositorySelection = response.data.repository_selection;
27519
+ const totalCount = response.data.total_count;
27520
+ delete response.data.incomplete_results;
27521
+ delete response.data.repository_selection;
27522
+ delete response.data.total_count;
27523
+ const namespaceKey = Object.keys(response.data)[0];
27524
+ const data = response.data[namespaceKey];
27525
+ response.data = data;
27526
+ if (typeof incompleteResults !== "undefined") {
27527
+ response.data.incomplete_results = incompleteResults;
27528
+ }
27529
+ if (typeof repositorySelection !== "undefined") {
27530
+ response.data.repository_selection = repositorySelection;
27531
+ }
27532
+ response.data.total_count = totalCount;
27533
+ return response;
27534
+ }
27535
+ function iterator(octokit, route, parameters) {
27536
+ const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
27537
+ const requestMethod = typeof route === "function" ? route : octokit.request;
27538
+ const method = options.method;
27539
+ const headers = options.headers;
27540
+ let url = options.url;
27541
+ return {
27542
+ [Symbol.asyncIterator]: () => ({
27543
+ async next() {
27544
+ if (!url)
27545
+ return { done: true };
27546
+ try {
27547
+ const response = await requestMethod({ method, url, headers });
27548
+ const normalizedResponse = normalizePaginatedListResponse(response);
27549
+ url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
27550
+ return { value: normalizedResponse };
27551
+ } catch (error) {
27552
+ if (error.status !== 409)
27553
+ throw error;
27554
+ url = "";
27555
+ return {
27556
+ value: {
27557
+ status: 200,
27558
+ headers: {},
27559
+ data: []
27560
+ }
27561
+ };
27562
+ }
27563
+ }
27564
+ })
27565
+ };
27566
+ }
27567
+ function paginate(octokit, route, parameters, mapFn) {
27568
+ if (typeof parameters === "function") {
27569
+ mapFn = parameters;
27570
+ parameters = void 0;
27571
+ }
27572
+ return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
27573
+ }
27574
+ function gather(octokit, results, iterator3, mapFn) {
27575
+ return iterator3.next().then((result) => {
27576
+ if (result.done) {
27577
+ return results;
27578
+ }
27579
+ let earlyExit = false;
27580
+ function done() {
27581
+ earlyExit = true;
27582
+ }
27583
+ results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);
27584
+ if (earlyExit) {
27585
+ return results;
27586
+ }
27587
+ return gather(octokit, results, iterator3, mapFn);
27588
+ });
27589
+ }
27590
+ var composePaginateRest = Object.assign(paginate, {
27591
+ iterator
27592
+ });
27593
+ function paginateRest(octokit) {
27594
+ return {
27595
+ paginate: Object.assign(paginate.bind(null, octokit), {
27596
+ iterator: iterator.bind(null, octokit)
27597
+ })
27598
+ };
27599
+ }
27600
+ paginateRest.VERSION = VERSION6;
27436
27601
 
27437
27602
  // node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js
27438
27603
  var Endpoints = {
@@ -29065,7 +29230,7 @@ var PrePublishCommand = class extends import_clipanion6.Command {
29065
29230
  yield VersionCommand.updatePackageJson(this.prefix, this.configFileName);
29066
29231
  yield updatePackageJson(packageJsonPath, {
29067
29232
  optionalDependencies: platforms.reduce((acc, cur) => {
29068
- acc[`${packageName}-${cur.platformArchABI}`] = `^${version}`;
29233
+ acc[`${packageName}-${cur.platformArchABI}`] = `${version}`;
29069
29234
  return acc;
29070
29235
  }, {})
29071
29236
  });
package/CHANGELOG.md DELETED
@@ -1,56 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [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
-
8
- ### Bug Fixes
9
-
10
- - **cli:** ci template ([45d3e68](https://github.com/napi-rs/napi-rs/commit/45d3e68ff3307546de46650443fd8db0906a7856))
11
- - **cli:** missed inquirer dependency ([c303f35](https://github.com/napi-rs/napi-rs/commit/c303f358efc0cd66b0e5505749953fa8e536b7af))
12
-
13
- # [1.3.0](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.2.1...@napi-rs/cli@1.3.0) (2021-09-01)
14
-
15
- ### Features
16
-
17
- - **cli:** add back new command ([2c23f44](https://github.com/napi-rs/napi-rs/commit/2c23f444b09fbecef21e36a22a35e472cecb9cd2))
18
-
19
- ## [1.2.1](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.2.0...@napi-rs/cli@1.2.1) (2021-08-09)
20
-
21
- ### Bug Fixes
22
-
23
- - **cli:** create dist dir if not existed while building ([e90ea93](https://github.com/napi-rs/napi-rs/commit/e90ea9304a2a3180148f7e8f9e5f63eeb374a3cf))
24
-
25
- # [1.2.0](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.1.0...@napi-rs/cli@1.2.0) (2021-08-06)
26
-
27
- ### Features
28
-
29
- - **cli:** upgrade clipanion v3 ([67ad0a4](https://github.com/napi-rs/napi-rs/commit/67ad0a4d4daa0e0d14dc488bec190dcb27022634))
30
-
31
- # [1.1.0](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.0.4...@napi-rs/cli@1.1.0) (2021-06-07)
32
-
33
- ### Features
34
-
35
- - **cli:** support skip gh-release in prepublish command ([253360e](https://github.com/napi-rs/napi-rs/commit/253360efb9a4675be88393d6a335ec75fbb326c8))
36
- - **cli:** update new project template ([9aac626](https://github.com/napi-rs/napi-rs/commit/9aac6267b72b3ef1a317d7e3a5a84827c6c37850))
37
-
38
- ## [1.0.3](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.0.2...@napi-rs/cli@1.0.3) (2021-02-06)
39
-
40
- ### Bug Fixes
41
-
42
- - **cli:** new command without npm scope ([5ef1887](https://github.com/napi-rs/napi-rs/commit/5ef1887ea96d529bf6bd4e52d6d77ffbd6baf13e))
43
-
44
- ## [1.0.2](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.0.1...@napi-rs/cli@1.0.2) (2021-01-15)
45
-
46
- ### Bug Fixes
47
-
48
- - **cli:** mkdir -p is not valid command in powershell ([84a6ea9](https://github.com/napi-rs/napi-rs/commit/84a6ea9223e4eabbf1feac6cf7a71211f3404ce7))
49
-
50
- ## [1.0.1](https://github.com/napi-rs/napi-rs/compare/@napi-rs/cli@1.0.0-alpha.14...@napi-rs/cli@1.0.1) (2021-01-07)
51
-
52
- ### Bug Fixes
53
-
54
- - **cli:** fix random node process got killed issue ([58d4634](https://github.com/napi-rs/napi-rs/commit/58d4634dacca673a83bf49cfb2dd15c7f8444865))
55
-
56
- # 1.0.0 (2020-12-29)