New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@5app/fetch

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@5app/fetch - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

11

dist/index.d.ts

@@ -5,8 +5,13 @@ export interface Options {

}
type ResponseObject = object;
/**
* @typedef {object} ResponseObject
*/
/**
* Request to get JSON from a web resource
* @param {string} url - URL to resource
* @param {object} options - Request options
* @returns {Promise<object>} JSON Object
* @param {object} [options] - Request options
* @returns {Promise<ResponseObject>} JSON Object
*/
export declare function fetchJSON(url: string, options: Options): Promise<unknown>;
export declare function fetchJSON(url: string, options?: Options): Promise<ResponseObject>;
export {};

@@ -6,6 +6,9 @@ import fetch from 'node-fetch';

/**
* @typedef {object} ResponseObject
*/
/**
* Request to get JSON from a web resource
* @param {string} url - URL to resource
* @param {object} options - Request options
* @returns {Promise<object>} JSON Object
* @param {object} [options] - Request options
* @returns {Promise<ResponseObject>} JSON Object
*/

@@ -12,0 +15,0 @@ export async function fetchJSON(url, options) {

{
"name": "@5app/fetch",
"version": "1.0.3",
"version": "1.0.4",
"description": "Description",

@@ -16,5 +16,6 @@ "main": "dist/index.js",

"lint-fix": "npm run lint -- --fix",
"lint-diff": "LIST=`git diff-index --name-only HEAD | grep '.*\\.js$';`; if [ \"$LIST\" ]; then eslint $LIST; fi",
"lint-diff": "LIST=`git diff-index --name-only HEAD | grep '.*\\.ts$';`; if [ \"$LIST\" ]; then eslint $LIST; fi",
"precommit-msg": "echo 'Running pre-commit checks... (skip using --no-verify)'",
"test": "npm run build"
"spec": "npm run build",
"test": "npm run lint && npm run spec"
},

@@ -31,18 +32,19 @@ "repository": {

"devDependencies": {
"@5app/semantic-release-config": "^1.0.1",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@tsconfig/node16-strictest-esm": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^5.36.2",
"@typescript-eslint/parser": "^5.36.2",
"eslint": "^8.23.0",
"eslint-config-5app": "^0.16.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"@5app/prettier-config": "^1.0.4",
"@5app/semantic-release-config": "^1.1.0",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@tsconfig/node18-strictest-esm": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"eslint": "^8.49.0",
"eslint-config-5app": "^0.19.1",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"prettier": "^2.7.1",
"prettier": "^3.0.3",
"pretty-quick": "^3.1.3",
"semantic-release": "^19.0.5",
"typescript": "^4.8.2"
"semantic-release": "^21.1.1",
"typescript": "^5.2.2"
},

@@ -70,5 +72,6 @@ "publishConfig": {

},
"prettier": "@5app/prettier-config",
"dependencies": {
"node-fetch": "^3.2.10"
"node-fetch": "^3.3.2"
}
}
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