ml-peak-shape-generator
Advanced tools
Comparing version
# Changelog | ||
### [0.6.1](https://www.github.com/mljs/peak-shape-generator/compare/v0.6.0...v0.6.1) (2020-11-04) | ||
### Bug Fixes | ||
* replace hash-object by object-hash for browser compatiblity ([8aec664](https://www.github.com/mljs/peak-shape-generator/commit/8aec664692bcaba9eb891c22e104bc676420a6dc)) | ||
## [0.6.0](https://www.github.com/mljs/peak-shape-generator/compare/v0.5.1...v0.6.0) (2020-11-03) | ||
@@ -4,0 +11,0 @@ |
@@ -5,7 +5,7 @@ 'use strict'; | ||
var hashObject = require('hash-object'); | ||
var hash = require('object-hash'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var hashObject__default = /*#__PURE__*/_interopDefaultLegacy(hashObject); | ||
var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash); | ||
@@ -258,3 +258,3 @@ /** | ||
getShape(kind, options) { | ||
let uuid = hashObject__default['default']({ kind, options }); | ||
let uuid = hash__default['default']({ kind, options }); | ||
if (this.cache[uuid]) return this.cache[uuid]; | ||
@@ -261,0 +261,0 @@ const shape = getShape(kind, options); |
{ | ||
"name": "ml-peak-shape-generator", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "", | ||
@@ -47,3 +47,3 @@ "main": "lib/index.js", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"jest": "^26.6.2", | ||
"jest": "^26.6.3", | ||
"jest-matcher-deep-close-to": "^2.0.1", | ||
@@ -54,4 +54,4 @@ "prettier": "^2.1.2", | ||
"dependencies": { | ||
"hash-object": "^0.1.7" | ||
"object-hash": "^2.0.3" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import hashObject from 'hash-object'; | ||
import hash from 'object-hash'; | ||
@@ -17,3 +17,3 @@ import { getShape } from './getShape'; | ||
getShape(kind, options) { | ||
let uuid = hashObject({ kind, options }); | ||
let uuid = hash({ kind, options }); | ||
if (this.cache[uuid]) return this.cache[uuid]; | ||
@@ -20,0 +20,0 @@ const shape = getShape(kind, options); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
27487
0.93%0
-100%+ Added
+ Added
- Removed
- Removed