From 408117033ec704432d10252344bd459889de48d7 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 22 Aug 2023 19:55:48 +0200 Subject: [PATCH] build: add missing `node` export condition --- package.json | 16 ++++++++++++++-- pnpm-lock.yaml | 16 ++++++++-------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 9f9b395..b785439 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,16 @@ "wintercg": "./dist/index.mjs", "worker": "./dist/index.mjs", "workerd": "./dist/index.mjs", + "node": { + "import": { + "types": "./dist/node.d.mts", + "default": "./dist/node.mjs" + }, + "require": { + "types": "./dist/node.d.cts", + "default": "./dist/node.cjs" + } + }, "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" @@ -27,7 +37,9 @@ "require": { "types": "./dist/node.d.cts", "default": "./dist/node.cjs" - } + }, + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" }, "./node": { "import": { @@ -59,7 +71,7 @@ }, "dependencies": { "destr": "^2.0.1", - "node-fetch-native": "^1.3.1", + "node-fetch-native": "^1.3.2", "ufo": "^1.2.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7adf48..5414fd6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ dependencies: specifier: ^2.0.1 version: 2.0.1 node-fetch-native: - specifier: ^1.3.1 - version: 1.3.1 + specifier: ^1.3.2 + version: 1.3.2 ufo: specifier: ^1.2.0 version: 1.2.0 @@ -1545,7 +1545,7 @@ packages: convert-gitmoji: 0.1.3 execa: 8.0.1 mri: 1.2.0 - node-fetch-native: 1.3.1 + node-fetch-native: 1.3.2 ofetch: 1.2.0 open: 9.1.0 pathe: 1.1.1 @@ -2550,7 +2550,7 @@ packages: defu: 6.1.2 https-proxy-agent: 5.0.1 mri: 1.2.0 - node-fetch-native: 1.3.1 + node-fetch-native: 1.3.2 pathe: 1.1.1 tar: 6.1.15 transitivePeerDependencies: @@ -3343,8 +3343,8 @@ packages: engines: {node: '>=10.5.0'} dev: true - /node-fetch-native@1.3.1: - resolution: {integrity: sha512-Z1q9inzb0c2+FuByzG5P2rHaNe3CEYLPqJywun4M/eOI0IHB3K9TDINfb1VA20vWFsW2rWUMaGIo87R3zwpMug==} + /node-fetch-native@1.3.2: + resolution: {integrity: sha512-tUUqW+/hr/kvh7uu5C6rvMNapVsrqhPW1SQLpuAS8eTtt04ODJ/n3D6wOeoNiIkUHmPix9C5pFqj8CmGbNM3kQ==} /node-forge@1.3.1: resolution: {integrity: sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==} @@ -3433,7 +3433,7 @@ packages: resolution: {integrity: sha512-R8CM00cUpy/+PS8jyf/8ijTgKNSOhrAap77DJD5hck6eNChMvJkz/lmN7HaxZW0BlCIVMWmgmDYRwALsc5ypPw==} dependencies: destr: 2.0.1 - node-fetch-native: 1.3.1 + node-fetch-native: 1.3.2 ufo: 1.2.0 dev: true @@ -4209,7 +4209,7 @@ packages: consola: 3.2.3 defu: 6.1.2 mime: 3.0.0 - node-fetch-native: 1.3.1 + node-fetch-native: 1.3.2 pathe: 1.1.1 dev: true