@vonage/vetch
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -15,3 +15,3 @@ "use strict"; | ||
HTTPMethods["PATCH"] = "PATCH"; | ||
})(HTTPMethods = exports.HTTPMethods || (exports.HTTPMethods = {})); | ||
})(HTTPMethods || (exports.HTTPMethods = HTTPMethods = {})); | ||
//# sourceMappingURL=HTTPMethods.js.map |
@@ -7,3 +7,3 @@ "use strict"; | ||
ResponseTypes["json"] = "json"; | ||
})(ResponseTypes = exports.ResponseTypes || (exports.ResponseTypes = {})); | ||
})(ResponseTypes || (exports.ResponseTypes = ResponseTypes = {})); | ||
//# sourceMappingURL=responseTypes.js.map |
@@ -50,2 +50,3 @@ "use strict"; | ||
catch { | ||
// continue | ||
} | ||
@@ -89,3 +90,5 @@ return data; | ||
} | ||
// Set our user agent | ||
opts.headers['user-agent'] = `@vonage/server-sdk/3.0.0 node/${process.version.replace('v', '')}`; | ||
// Allow a custom timeout to be used | ||
const httpAgent = new http_1.default.Agent({ | ||
@@ -92,0 +95,0 @@ timeout: this.defaults.timeout, |
{ | ||
"name": "@vonage/vetch", | ||
"version": "1.3.0", | ||
"description": "Vonage package for server side fetch.", | ||
"homepage": "https://github.com/vonage/vonage-node-sdk/tree/master/packages/vetch#readme", | ||
"bugs": { | ||
"url": "https://github.com/Vonage/vonage-node-sdk/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Vonage/vonage-node-sdk.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"author": "Kelly J Andrews <kelly@kellyjandrews.com>", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"/dist" | ||
], | ||
"scripts": { | ||
"build": "npm run clean && npm run compile", | ||
"clean": "npx shx rm -rf dist tsconfig.tsbuildinfo", | ||
"compile": "npx tsc --build --verbose" | ||
}, | ||
"dependencies": { | ||
"debug": "^4.3.4", | ||
"lodash.merge": "^4.6.2", | ||
"node-fetch": "^2.6" | ||
}, | ||
"devDependencies": { | ||
"nock": "^13.2.9" | ||
}, | ||
"publishConfig": { | ||
"directory": "dist" | ||
}, | ||
"gitHead": "328f18e5c8a458cb4d06d7955ec2399a6ce6f5d8" | ||
"name": "@vonage/vetch", | ||
"version": "1.4.0", | ||
"description": "Vonage package for server side fetch.", | ||
"homepage": "https://github.com/vonage/vonage-node-sdk/tree/master/packages/vetch#readme", | ||
"bugs": { | ||
"url": "https://github.com/Vonage/vonage-node-sdk/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Vonage/vonage-node-sdk.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"author": "Kelly J Andrews <kelly@kellyjandrews.com>", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"/dist" | ||
], | ||
"scripts": { | ||
"build": "npm run clean && npm run compile", | ||
"clean": "npx shx rm -rf dist tsconfig.tsbuildinfo", | ||
"compile": "npx tsc --build --verbose" | ||
}, | ||
"dependencies": { | ||
"debug": "^4.3.4", | ||
"lodash.merge": "^4.6.2", | ||
"node-fetch": "^2.6" | ||
}, | ||
"devDependencies": { | ||
"nock": "^13.3.1" | ||
}, | ||
"publishConfig": { | ||
"directory": "dist" | ||
}, | ||
"gitHead": "328f18e5c8a458cb4d06d7955ec2399a6ce6f5d8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
19872
292