@saulx/utils
Advanced tools
Comparing version 1.5.1 to 1.6.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hashCompact = exports.hash = exports.hashObjectIgnoreKeyOrder = exports.hashObject = exports.hashObjectNest = exports.hashObjectIgnoreKeyOrderNest = exports.stringHash = void 0; | ||
const saulx_murmur_1 = require("saulx-murmur"); | ||
exports.stringHash = (str, hash = 5381) => { | ||
@@ -135,2 +136,5 @@ var i = str.length; | ||
exports.hash = (val, size) => { | ||
if (val instanceof Buffer) { | ||
return saulx_murmur_1.murmurHash(val); | ||
} | ||
let result; | ||
@@ -137,0 +141,0 @@ if (typeof val === 'object') { |
{ | ||
"name": "@saulx/utils", | ||
"main": "./dist/index.js", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"scripts": { | ||
@@ -42,15 +42,16 @@ "build": "tsc", | ||
"dependencies": { | ||
"is-plain-obj": "^3.0.0" | ||
"is-plain-obj": "^3.0.0", | ||
"saulx-murmur": "^0.2.0" | ||
}, | ||
"devDependencies": { | ||
"@saulx/eslint-config": "https://github.com/atelier-saulx/eslint-config", | ||
"@saulx/prettier-config": "https://github.com/atelier-saulx/prettier-config", | ||
"ava": "2.4.0", | ||
"eslint": "^6.5.1", | ||
"husky": "^3.0.8", | ||
"lint-staged": "^9.4.2", | ||
"prettier": "^1.18.2", | ||
"ts-node": "^8.5.4", | ||
"typescript": "^3.7.3", | ||
"eslint": "^6.5.1", | ||
"prettier": "^1.18.2", | ||
"@saulx/eslint-config": "https://github.com/atelier-saulx/eslint-config", | ||
"@saulx/prettier-config": "https://github.com/atelier-saulx/prettier-config" | ||
"typescript": "^3.7.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
67118
959
2
+ Addedsaulx-murmur@^0.2.0
+ Addedsaulx-murmur@0.2.3(transitive)