Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@js-bits/fetch

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-bits/fetch - npm Package Compare versions

Comparing version 3.0.2 to 3.1.0

.github/workflows/npm-publish.yml

1

index.js

@@ -0,1 +1,2 @@

/// <reference lib="DOM" />
import nodeFetch from 'node-fetch';

@@ -2,0 +3,0 @@ import nodeAbortController from 'abort-controller';

4

index.test.js
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc