Socket
Socket
Sign inDemoInstall

@webiny/utils

Package Overview
Dependencies
9
Maintainers
1
Versions
314
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.40.0-beta.2 to 5.40.0-beta.3

middleware.d.ts

19

generateId.js

@@ -11,14 +11,11 @@ "use strict";

* Package nanoid-dictionary is missing types
*/ // @ts-expect-error
*/
// @ts-expect-error
const DEFAULT_SIZE = 21;
const generateAlphaNumericId = (0, _nanoid.customAlphabet)(_nanoidDictionary.alphanumeric, DEFAULT_SIZE);
exports.generateAlphaNumericId = generateAlphaNumericId;
const generateAlphaNumericLowerCaseId = (0, _nanoid.customAlphabet)(`${_nanoidDictionary.lowercase}${_nanoidDictionary.numbers}`, DEFAULT_SIZE);
exports.generateAlphaNumericLowerCaseId = generateAlphaNumericLowerCaseId;
const generateAlphaId = (0, _nanoid.customAlphabet)(`${_nanoidDictionary.lowercase}${_nanoidDictionary.uppercase}`, DEFAULT_SIZE);
exports.generateAlphaId = generateAlphaId;
const generateAlphaLowerCaseId = (0, _nanoid.customAlphabet)(_nanoidDictionary.lowercase, DEFAULT_SIZE);
exports.generateAlphaLowerCaseId = generateAlphaLowerCaseId;
const generateAlphaUpperCaseId = (0, _nanoid.customAlphabet)(_nanoidDictionary.uppercase, DEFAULT_SIZE);
exports.generateAlphaUpperCaseId = generateAlphaUpperCaseId;
const generateAlphaNumericId = exports.generateAlphaNumericId = (0, _nanoid.customAlphabet)(_nanoidDictionary.alphanumeric, DEFAULT_SIZE);
const generateAlphaNumericLowerCaseId = exports.generateAlphaNumericLowerCaseId = (0, _nanoid.customAlphabet)(`${_nanoidDictionary.lowercase}${_nanoidDictionary.numbers}`, DEFAULT_SIZE);
const generateAlphaId = exports.generateAlphaId = (0, _nanoid.customAlphabet)(`${_nanoidDictionary.lowercase}${_nanoidDictionary.uppercase}`, DEFAULT_SIZE);
const generateAlphaLowerCaseId = exports.generateAlphaLowerCaseId = (0, _nanoid.customAlphabet)(_nanoidDictionary.lowercase, DEFAULT_SIZE);
const generateAlphaUpperCaseId = exports.generateAlphaUpperCaseId = (0, _nanoid.customAlphabet)(_nanoidDictionary.uppercase, DEFAULT_SIZE);
const generateId = (size = DEFAULT_SIZE) => {

@@ -25,0 +22,0 @@ return (0, _nanoid.nanoid)(size);

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

exports.getWebinyVersionHeaders = exports.WEBINY_VERSION_HEADER = void 0;
const WEBINY_VERSION_HEADER = "x-webiny-version";
exports.WEBINY_VERSION_HEADER = WEBINY_VERSION_HEADER;
const WEBINY_VERSION_HEADER = exports.WEBINY_VERSION_HEADER = "x-webiny-version";
const getWebinyVersionHeaders = () => {

@@ -11,0 +10,0 @@ const enable = process.env.WEBINY_ENABLE_VERSION_HEADER;

@@ -15,4 +15,5 @@ export * from "./parseIdentifier";

export * from "./getObjectProperties";
import { composeAsync, AsyncProcessor, NextAsyncProcessor } from "./compose";
export * from "./middleware";
import { AsyncProcessor, composeAsync, NextAsyncProcessor } from "./compose";
export { composeAsync };
export type { AsyncProcessor, NextAsyncProcessor };

@@ -183,4 +183,16 @@ "use strict";

});
var _middleware = require("./middleware");
Object.keys(_middleware).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _middleware[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _middleware[key];
}
});
});
var _compose = require("./compose");
//# sourceMappingURL=index.js.map
{
"name": "@webiny/utils",
"version": "5.40.0-beta.2",
"version": "5.40.0-beta.3",
"main": "index.js",

@@ -18,5 +18,5 @@ "types": "index.d.ts",

"dependencies": {
"@webiny/error": "5.40.0-beta.2",
"@webiny/error": "5.40.0-beta.3",
"mdbid": "1.0.0",
"nanoid": "3.3.4",
"nanoid": "3.3.7",
"nanoid-dictionary": "4.3.0",

@@ -26,10 +26,10 @@ "p-retry": "4.6.2"

"devDependencies": {
"@babel/cli": "7.22.6",
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/preset-typescript": "7.22.5",
"@babel/runtime": "7.22.6",
"@webiny/cli": "5.40.0-beta.2",
"@webiny/project-utils": "5.40.0-beta.2",
"rimraf": "3.0.2",
"@babel/cli": "7.24.1",
"@babel/core": "7.24.3",
"@babel/preset-env": "7.24.3",
"@babel/preset-typescript": "7.24.1",
"@babel/runtime": "7.24.1",
"@webiny/cli": "5.40.0-beta.3",
"@webiny/project-utils": "5.40.0-beta.3",
"rimraf": "5.0.5",
"ttypescript": "1.5.15",

@@ -39,3 +39,3 @@ "typescript": "4.7.4"

"peerDependencies": {
"zod": "^3.21.4"
"zod": "^3.22.4"
},

@@ -53,3 +53,3 @@ "scripts": {

},
"gitHead": "15e414a228687140ce2f30bd2f55763368e99827"
"gitHead": "638d8b84063906cd1aa979ed6e0487ad26fbcf2f"
}

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

exports.UTC_TIMEZONES = void 0;
const UTC_TIMEZONES = [{
const UTC_TIMEZONES = exports.UTC_TIMEZONES = [{
value: "-12:00",

@@ -126,4 +126,3 @@ label: "UTC-12:00"

}];
exports.UTC_TIMEZONES = UTC_TIMEZONES;
//# sourceMappingURL=utcTimezones.js.map

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

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

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc