@js-bits/fetch
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -0,1 +1,2 @@ | ||
/// <reference lib="DOM" /> | ||
import nodeFetch from 'node-fetch'; | ||
@@ -2,0 +3,0 @@ import nodeAbortController from 'abort-controller'; |
import { fetch, AbortController } from './index.js'; | ||
describe(`fetch`, () => { | ||
describe('fetch', () => { | ||
test('should be defined', () => { | ||
@@ -9,3 +9,3 @@ expect(fetch).toBeDefined(); | ||
describe(`AbortController`, () => { | ||
describe('AbortController', () => { | ||
test('should be defined', () => { | ||
@@ -12,0 +12,0 @@ expect(AbortController).toBeDefined(); |
{ | ||
"compilerOptions": { | ||
"checkJs": true | ||
}, | ||
"typeAcquisition": { | ||
"include": [ | ||
"jest" | ||
] | ||
"include": ["jest"] | ||
} | ||
} | ||
} |
{ | ||
"name": "@js-bits/fetch", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Cross-environment (nodejs/web) fetch API", | ||
"keywords": [ | ||
"javascript", | ||
"typescript", | ||
"fetch", | ||
@@ -15,2 +16,3 @@ "api", | ||
"module": "./index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
@@ -36,17 +38,21 @@ ".": { | ||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --verbose", | ||
"build": "rimraf ./dist && yarn build:dts", | ||
"build:dts": "tsc ./index.js --allowJs --emitDeclarationOnly --declaration --esModuleInterop --outDir dist", | ||
"test-coverage": "yarn test --coverage", | ||
"test-watch": "yarn test --watch", | ||
"lint": "eslint '**/*.{js,jsx}'", | ||
"husky:pre-push": "npx husky add .husky/pre-push \"yarn lint\" && npx husky add .husky/pre-push \"yarn test\" && git add .husky/pre-push", | ||
"husky:init": "npx husky install && yarn husky:pre-commit && yarn husky:pre-push" | ||
"lint": "tsc --noEmit && eslint '**/*.{js,jsx,ts,tsx}'", | ||
"prepare": "husky install" | ||
}, | ||
"dependencies": { | ||
"abort-controller": "^3.0.0", | ||
"node-fetch": "^3.2.3" | ||
"node-fetch": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@js-bits/formalinter": "^0.2.1", | ||
"@types/jest": "^27.4.1", | ||
"husky": "^7.0.1", | ||
"jest": "^27.5.1" | ||
"@js-bits/formalinter": "^1.0.3", | ||
"@types/jest": "29.4.3", | ||
"husky": "^8.0.3", | ||
"jest": "^29.5.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"rimraf": "^5.0.1", | ||
"typescript": "^4.8.4" | ||
}, | ||
@@ -53,0 +59,0 @@ "jest": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5682
10
57
3
7
Updatednode-fetch@^3.3.1