chrome-webstore-upload-keys 1.1.3 → 1.1.4

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.
Files changed (3) hide show
  1. package/cli.js +4 -0
  2. package/dist/index.js +4 -0
  3. package/package.json +1 -1
package/cli.js CHANGED
@@ -6,6 +6,10 @@ import {open} from 'openurl';
6
6
  import getPort from 'get-port';
7
7
  import pDefer from 'p-defer';
8
8
 
9
+ if (typeof fetch !== 'function') {
10
+ throw new TypeError('This script requires Node.js 18.0 or newer because it relies on the global `fetch` function.');
11
+ }
12
+
9
13
  const approvalCode = pDefer();
10
14
  const port = await getPort();
11
15
  const localhost = '127.0.0.1';
package/dist/index.js CHANGED
@@ -252,6 +252,10 @@ __nccwpck_require__.a(__webpack_module__, async (__webpack_handle_async_dependen
252
252
 
253
253
 
254
254
 
255
+ if (typeof fetch !== 'function') {
256
+ throw new TypeError('This script requires Node.js 18.0 or newer because it relies on the global `fetch` function.');
257
+ }
258
+
255
259
  const approvalCode = (0,p_defer__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)();
256
260
  const port = await (0,get_port__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)();
257
261
  const localhost = '127.0.0.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-webstore-upload-keys",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "CLI tool to generate OAuth keys for the Chrome Web Store",
5
5
  "keywords": [
6
6
  "chrome",