Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@uniformdev/context

Package Overview
Dependencies
Maintainers
8
Versions
929
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uniformdev/context - npm Package Compare versions

Comparing version
20.49.4-alpha.2
to
20.49.4-alpha.102
+19
-3
dist/api/api.js

@@ -72,3 +72,4 @@ "use strict";

handleRateLimits: () => handleRateLimits,
nullLimitPolicy: () => nullLimitPolicy
nullLimitPolicy: () => nullLimitPolicy,
rewriteFiltersForApi: () => rewriteFiltersForApi
});

@@ -243,3 +244,3 @@ module.exports = __toCommonJS(api_exports);

const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
backoffRetriesLeft -= 1;

@@ -249,2 +250,16 @@ }

}
var isPlainObject = (obj) => typeof obj === "object" && obj !== null && !Array.isArray(obj);
function rewriteFiltersForApi(filters) {
return Object.entries(filters != null ? filters : {}).reduce(
(acc, [key, value]) => {
const lhs = `filters.${key}` + (isPlainObject(value) ? `[${Object.keys(value)[0]}]` : "");
const rhs = isPlainObject(value) ? Object.values(value)[0] : value;
return {
...acc,
[lhs]: Array.isArray(rhs) ? rhs.map((v) => `${v}`.trim()).join(",") : `${rhs}`.trim()
};
},
{}
);
}

@@ -656,3 +671,4 @@ // src/api/AggregateClient.ts

handleRateLimits,
nullLimitPolicy
nullLimitPolicy,
rewriteFiltersForApi
});

@@ -177,3 +177,3 @@ var __defProp = Object.defineProperty;

const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
backoffRetriesLeft -= 1;

@@ -183,2 +183,16 @@ }

}
var isPlainObject = (obj) => typeof obj === "object" && obj !== null && !Array.isArray(obj);
function rewriteFiltersForApi(filters) {
return Object.entries(filters != null ? filters : {}).reduce(
(acc, [key, value]) => {
const lhs = `filters.${key}` + (isPlainObject(value) ? `[${Object.keys(value)[0]}]` : "");
const rhs = isPlainObject(value) ? Object.values(value)[0] : value;
return {
...acc,
[lhs]: Array.isArray(rhs) ? rhs.map((v) => `${v}`.trim()).join(",") : `${rhs}`.trim()
};
},
{}
);
}

@@ -589,3 +603,4 @@ // src/api/AggregateClient.ts

handleRateLimits,
nullLimitPolicy
nullLimitPolicy,
rewriteFiltersForApi
};
+2
-2
{
"name": "@uniformdev/context",
"version": "20.49.4-alpha.2+0201693aca",
"version": "20.49.4-alpha.102+140d1a56b4",
"description": "Uniform Context core package",

@@ -73,3 +73,3 @@ "license": "SEE LICENSE IN LICENSE.txt",

},
"gitHead": "0201693aca0f20b06ffaaef22decc086ec730035"
"gitHead": "140d1a56b4b45021216a166bcaf7ebe629681b0b"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display