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

@windingtree/org.id-utils

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windingtree/org.id-utils - npm Package Compare versions

Comparing version 0.2.10 to 0.2.11

32

dist/http/request.js

@@ -21,11 +21,2 @@ "use strict";

};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -45,3 +36,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

// Send HTTP request
const request = (url, method, data, extraHeaders, timeout = 10000, transformResponse) => __awaiter(void 0, void 0, void 0, function* () {
const request = async (url, method, data, extraHeaders, timeout = 10000, transformResponse) => {
if (!regexp.uri.exec(url)) {

@@ -62,7 +53,14 @@ throw new errors_1.HttpError(`Request URL not matching well formed URI criteria: ${url}`, 'BAD_REQUEST');

timeout,
headers: Object.assign(Object.assign({ 'Accept': 'application/json', 'Accept-Encoding': 'gzip,deflate', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive' }, (method !== 'get'
? { 'Content-Type': 'application/json' }
: {})), (extraHeaders
? extraHeaders
: {})),
headers: {
'Accept': 'application/json',
'Accept-Encoding': 'gzip,deflate',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
...(method !== 'get'
? { 'Content-Type': 'application/json' }
: {}),
...(extraHeaders
? extraHeaders
: {})
},
data,

@@ -72,3 +70,3 @@ cancelToken: cancelTokenSource.token,

};
const response = yield axios_1.default(request);
const response = await axios_1.default(request);
clearTimeout(connectionTimeout);

@@ -101,4 +99,4 @@ return response.data;

}
});
};
exports.request = request;
//# sourceMappingURL=request.js.map
{
"name": "@windingtree/org.id-utils",
"version": "0.2.10",
"version": "0.2.11",
"description": "Shared ORGiD utilities",

@@ -44,10 +44,10 @@ "main": "dist/index.js",

"devDependencies": {
"jest": "27.0.1",
"ts-jest": "27.0.1",
"jest": "27.0.3",
"ts-jest": "27.0.2",
"@types/jest": "26.0.23",
"eslint": "7.27.0",
"@typescript-eslint/eslint-plugin": "4.25.0",
"@typescript-eslint/parser": "4.25.0",
"@typescript-eslint/eslint-plugin": "4.26.0",
"@typescript-eslint/parser": "4.26.0",
"typedoc": "0.20.36",
"typedoc-plugin-markdown": "3.8.2",
"typedoc-plugin-markdown": "3.9.0",
"typescript": "4.2.4",

@@ -54,0 +54,0 @@ "@windingtree/org.id-test-helpers": "0.2.2"

Sorry, the diff of this file is not supported yet

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