You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ml-peak-shape-generator

Package Overview
Dependencies
Maintainers
5
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-peak-shape-generator - npm Package Compare versions

Comparing version

to
0.6.1

7

CHANGELOG.md
# 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 @@

6

lib/index.js

@@ -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);