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

@sequelize/utils

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sequelize/utils - npm Package Compare versions

Comparing version 7.0.0-alpha.39 to 7.0.0-alpha.40

lib/common/comparators/__tests__/comparators.test.d.ts

7

lib/common/index.d.ts
/** Generated File, do not modify directly. Run "yarn sync-exports" in the folder of the package instead */
export * from './array-from-async.js';
export * from './clone-deep-plain-values.js';
export * from './comparators/basic-comparator.js';
export * from './comparators/comparator.js';
export * from './comparators/localized-string-comparator.js';
export * from './consts.js';
export * from './freeze-deep.js';
export * from './get-immutable-pojo.js';
export * from './get-synchronized-type-keys.js';
export * from './inspect.js';

@@ -18,2 +23,3 @@ export * from './iterator-utils/combined-iterator.js';

export * from './parsers/parse-bigint.js';
export * from './parsers/parse-boolean.js';
export * from './parsers/parse-finite-number.js';

@@ -35,3 +41,4 @@ export * from './parsers/parse-safe-integer.js';

export * from './shallow-clone-pojo.js';
export * from './split-object.js';
export * from './types.js';
export * from './upcast.js';

@@ -20,4 +20,9 @@ "use strict";

__reExport(common_exports, require("./clone-deep-plain-values.js"), module.exports);
__reExport(common_exports, require("./comparators/basic-comparator.js"), module.exports);
__reExport(common_exports, require("./comparators/comparator.js"), module.exports);
__reExport(common_exports, require("./comparators/localized-string-comparator.js"), module.exports);
__reExport(common_exports, require("./consts.js"), module.exports);
__reExport(common_exports, require("./freeze-deep.js"), module.exports);
__reExport(common_exports, require("./get-immutable-pojo.js"), module.exports);
__reExport(common_exports, require("./get-synchronized-type-keys.js"), module.exports);
__reExport(common_exports, require("./inspect.js"), module.exports);

@@ -35,2 +40,3 @@ __reExport(common_exports, require("./iterator-utils/combined-iterator.js"), module.exports);

__reExport(common_exports, require("./parsers/parse-bigint.js"), module.exports);
__reExport(common_exports, require("./parsers/parse-boolean.js"), module.exports);
__reExport(common_exports, require("./parsers/parse-finite-number.js"), module.exports);

@@ -52,4 +58,5 @@ __reExport(common_exports, require("./parsers/parse-safe-integer.js"), module.exports);

__reExport(common_exports, require("./shallow-clone-pojo.js"), module.exports);
__reExport(common_exports, require("./split-object.js"), module.exports);
__reExport(common_exports, require("./types.js"), module.exports);
__reExport(common_exports, require("./upcast.js"), module.exports);
//# sourceMappingURL=index.js.map
/** Generated File, do not modify directly. Run "yarn sync-exports" in the folder of the package instead */
export * from './array-from-async.js';
export * from './clone-deep-plain-values.js';
export * from './comparators/basic-comparator.js';
export * from './comparators/comparator.js';
export * from './comparators/localized-string-comparator.js';
export * from './consts.js';
export * from './freeze-deep.js';
export * from './get-immutable-pojo.js';
export * from './get-synchronized-type-keys.js';
export * from './inspect.js';

@@ -18,2 +23,3 @@ export * from './iterator-utils/combined-iterator.js';

export * from './parsers/parse-bigint.js';
export * from './parsers/parse-boolean.js';
export * from './parsers/parse-finite-number.js';

@@ -35,3 +41,4 @@ export * from './parsers/parse-safe-integer.js';

export * from './shallow-clone-pojo.js';
export * from './split-object.js';
export * from './types.js';
export * from './upcast.js';

@@ -20,4 +20,9 @@ "use strict";

__reExport(index_node_exports, require("./clone-deep-plain-values.js"), module.exports);
__reExport(index_node_exports, require("./comparators/basic-comparator.js"), module.exports);
__reExport(index_node_exports, require("./comparators/comparator.js"), module.exports);
__reExport(index_node_exports, require("./comparators/localized-string-comparator.js"), module.exports);
__reExport(index_node_exports, require("./consts.js"), module.exports);
__reExport(index_node_exports, require("./freeze-deep.js"), module.exports);
__reExport(index_node_exports, require("./get-immutable-pojo.js"), module.exports);
__reExport(index_node_exports, require("./get-synchronized-type-keys.js"), module.exports);
__reExport(index_node_exports, require("./inspect.js"), module.exports);

@@ -35,2 +40,3 @@ __reExport(index_node_exports, require("./iterator-utils/combined-iterator.js"), module.exports);

__reExport(index_node_exports, require("./parsers/parse-bigint.js"), module.exports);
__reExport(index_node_exports, require("./parsers/parse-boolean.js"), module.exports);
__reExport(index_node_exports, require("./parsers/parse-finite-number.js"), module.exports);

@@ -52,4 +58,5 @@ __reExport(index_node_exports, require("./parsers/parse-safe-integer.js"), module.exports);

__reExport(index_node_exports, require("./shallow-clone-pojo.js"), module.exports);
__reExport(index_node_exports, require("./split-object.js"), module.exports);
__reExport(index_node_exports, require("./types.js"), module.exports);
__reExport(index_node_exports, require("./upcast.js"), module.exports);
//# sourceMappingURL=index.node.js.map

2

lib/common/parsers/parse-finite-number.js

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

parseFiniteNumberInternal,
(value) => `Value ${(0, import_inspect.inspect)(value)} is not a valid finite number.`
(value) => `Cannot convert ${(0, import_inspect.inspect)(value)} to a finite number.`
);
//# sourceMappingURL=parse-finite-number.js.map

@@ -10,2 +10,2 @@ /**

*/
export declare const parseSafeInteger: import("../_internal/build-parser.js").Parser<[value: string | bigint, radix?: number | undefined], number>;
export declare const parseSafeInteger: import("../_internal/build-parser.js").Parser<[value: string | number | bigint, radix?: number | undefined], number>;

@@ -27,2 +27,3 @@ "use strict";

var import_is_big_int = require("../predicates/is-big-int.js");
var import_is_number = require("../predicates/is-number.js");
var import_is_valid_integer_syntax = require("../predicates/is-valid-integer-syntax.js");

@@ -32,3 +33,5 @@ var import_parse_finite_number = require("./parse-finite-number.js");

let result;
if ((0, import_is_big_int.isBigInt)(value) || radix === 10) {
if ((0, import_is_number.isNumber)(value)) {
result = value;
} else if ((0, import_is_big_int.isBigInt)(value) || radix === 10) {
result = (0, import_parse_finite_number.parseFiniteNumber)(value);

@@ -35,0 +38,0 @@ } else {

@@ -36,2 +36,9 @@ /**

/**
* Like {@link Partial}, but also allows undefined.
* Useful when "exactOptionalPropertyTypes" is enabled.
*/
export type PartialOrUndefined<T> = {
[P in keyof T]?: T[P] | undefined;
};
/**
* Type helper for making certain fields of an object optional.

@@ -54,2 +61,5 @@ */

export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
export type PickByType<T, U> = {
[K in keyof T as U extends T[K] ? K : never]: T[K];
};
export interface ReadonlyMapLike<K, V> {

@@ -56,0 +66,0 @@ entries(): IterableIterator<Entry<K, V>>;

/** Generated File, do not modify directly. Run "yarn sync-exports" in the folder of the package instead */
export * from './check-file-exists.js';
export * from './file-url-to-dirname.js';
export * from './is-node-error.js';

@@ -4,0 +5,0 @@ export * from './list-directories.js';

@@ -19,2 +19,3 @@ "use strict";

__reExport(node_exports, require("./check-file-exists.js"), module.exports);
__reExport(node_exports, require("./file-url-to-dirname.js"), module.exports);
__reExport(node_exports, require("./is-node-error.js"), module.exports);

@@ -21,0 +22,0 @@ __reExport(node_exports, require("./list-directories.js"), module.exports);

@@ -10,3 +10,12 @@ {

".": {
"node": "./lib/common/index.node.js",
"node": {
"require": {
"types": "./lib/common/index.d.ts",
"default": "./lib/common/index.node.js"
},
"import": {
"types": "./lib/common/index.d.mts",
"default": "./lib/common/index.node.mjs"
}
},
"types": "./lib/common/index.d.ts",

@@ -16,6 +25,16 @@ "default": "./lib/common/index.js"

"./node": {
"node": "./lib/node/index.js",
"require": {
"types": "./lib/node/index.d.ts",
"default": "./lib/node/index.js"
},
"import": {
"types": "./lib/node/index.d.mts",
"default": "./lib/node/index.mjs"
},
"types": "./lib/node/index.d.ts"
}
},
"files": [
"lib"
],
"sideEffects": false,

@@ -31,7 +50,7 @@ "homepage": "https://sequelize.org",

"test-unit": "mocha src/**/*.test.ts -r ../../test/register-esbuild.js",
"test-exports": "../../dev/sync-exports.mjs ./src --check-outdated",
"sync-exports": "../../dev/sync-exports.mjs ./src"
"test-exports": "../../dev/sync-exports.mjs ./src --check-outdated --multi-entry-points",
"sync-exports": "../../dev/sync-exports.mjs ./src --multi-entry-points"
},
"type": "commonjs",
"version": "7.0.0-alpha.39",
"version": "7.0.0-alpha.40",
"publishConfig": {

@@ -41,4 +60,4 @@ "access": "public"

"dependencies": {
"@types/lodash": "4.17.0",
"lodash": "4.17.21"
"@types/lodash": "^4.17.0",
"lodash": "^4.17.21"
},

@@ -50,6 +69,6 @@ "devDependencies": {

"concurrently": "8.2.2",
"expect-type": "0.18.0",
"mocha": "10.3.0"
"expect-type": "0.19.0",
"mocha": "10.4.0"
},
"gitHead": "4cab6ac87ef3173e5f8f9cfa409279ae4042b6f6"
"gitHead": "23091a3ed15109202fa4c8556cfc9e00d883bf6d"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc