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

@takeshape/util

Package Overview
Dependencies
Maintainers
4
Versions
762
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@takeshape/util - npm Package Compare versions

Comparing version 7.239.0 to 8.0.1

es/browser.js

6

es/index.js
export * from './types';
export * from './mime';
export * from './gzip';
export * from './delay';

@@ -12,2 +11,7 @@ export * from './strings';

export * from './tracing';
export * from './merge';
export * from './map'; // Node-only exports
export * from './encryption';
export * from './gzip';
export * from './search-params';

6

es/search-params.js
import { URLSearchParams } from 'url';
function toSearchParamsEntries(obj) {
return Object.entries(obj).map(([k, v]) => {
var _v$toString;
return [k, (_v$toString = v === null || v === void 0 ? void 0 : v.toString()) !== null && _v$toString !== void 0 ? _v$toString : ''];
});
return Object.entries(obj).map(([k, v]) => [k, (v === null || v === void 0 ? void 0 : v.toString()) ?? '']);
}

@@ -10,0 +6,0 @@

@@ -7,4 +7,4 @@ "use strict";

exports.arrayContainsAll = arrayContainsAll;
exports.isDefined = isDefined;
exports.setIsEqual = setIsEqual;
exports.isDefined = isDefined;
exports.toArray = toArray;

@@ -11,0 +11,0 @@

@@ -6,5 +6,6 @@ "use strict";

});
exports.decrypt = void 0;
exports.decryptDataKey = decryptDataKey;
exports.encrypt = void 0;
exports.generateDataKey = generateDataKey;
exports.decryptDataKey = decryptDataKey;
exports.decrypt = exports.encrypt = void 0;

@@ -11,0 +12,0 @@ var _crypto = _interopRequireDefault(require("crypto"));

@@ -6,3 +6,3 @@ "use strict";

});
exports.gunzip = exports.gzip = void 0;
exports.gzip = exports.gunzip = void 0;

@@ -9,0 +9,0 @@ var _pify = _interopRequireDefault(require("pify"));

export * from './types';
export * from './mime';
export * from './gzip';
export * from './delay';

@@ -12,3 +11,7 @@ export * from './strings';

export * from './tracing';
export * from './merge';
export * from './map';
export * from './encryption';
export * from './gzip';
export * from './search-params';
//# sourceMappingURL=index.d.ts.map

@@ -33,15 +33,2 @@ "use strict";

var _gzip = require("./gzip");
Object.keys(_gzip).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _gzip[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _gzip[key];
}
});
});
var _delay = require("./delay");

@@ -151,2 +138,54 @@

var _merge = require("./merge");
Object.keys(_merge).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _merge[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _merge[key];
}
});
});
var _map = require("./map");
Object.keys(_map).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _map[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _map[key];
}
});
});
var _encryption = require("./encryption");
Object.keys(_encryption).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _encryption[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _encryption[key];
}
});
});
var _gzip = require("./gzip");
Object.keys(_gzip).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _gzip[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _gzip[key];
}
});
});
var _searchParams = require("./search-params");

@@ -153,0 +192,0 @@

@@ -6,5 +6,5 @@ "use strict";

});
exports.not = not;
exports.equals = equals;
exports.falsy = falsy;
exports.not = not;

@@ -11,0 +11,0 @@ function not(predicate) {

@@ -11,7 +11,3 @@ "use strict";

function toSearchParamsEntries(obj) {
return Object.entries(obj).map(([k, v]) => {
var _v$toString;
return [k, (_v$toString = v === null || v === void 0 ? void 0 : v.toString()) !== null && _v$toString !== void 0 ? _v$toString : ''];
});
return Object.entries(obj).map(([k, v]) => [k, (v === null || v === void 0 ? void 0 : v.toString()) ?? '']);
}

@@ -18,0 +14,0 @@

@@ -6,6 +6,6 @@ "use strict";

});
exports.camelCase = void 0;
exports.isEmptyString = isEmptyString;
exports.isUuid = isUuid;
exports.pascalCase = pascalCase;
exports.isUuid = isUuid;
exports.isEmptyString = isEmptyString;
exports.camelCase = void 0;

@@ -12,0 +12,0 @@ var _upperFirst = _interopRequireDefault(require("lodash/upperFirst"));

@@ -6,4 +6,4 @@ "use strict";

});
exports.createEnumMatcher = createEnumMatcher;
exports.isObject = isObject;
exports.createEnumMatcher = createEnumMatcher;

@@ -10,0 +10,0 @@ function isObject(obj) {

@@ -6,4 +6,4 @@ "use strict";

});
exports.default = void 0;
exports.value = value;
exports.default = void 0;

@@ -10,0 +10,0 @@ function value(x) {

{
"name": "@takeshape/util",
"version": "7.239.0",
"version": "8.0.1",
"description": "Shared utilities",

@@ -13,6 +13,7 @@ "homepage": "https://www.takeshape.io",

"engines": {
"node": ">=12"
"node": ">=14"
},
"main": "lib/index.js",
"module": "es/index.js",
"browser": "es/browser.js",
"types": "lib/index.d.ts",

@@ -19,0 +20,0 @@ "files": [

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