Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asset-hash

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-hash - npm Package Compare versions

Comparing version 3.0.7 to 3.0.8

20

lib/index.cjs.js

@@ -1,2 +0,2 @@

/*! asset-hash v3.0.7 by Sebastian Werner <s.werner@sebastian-software.de> */
/*! asset-hash v3.0.8 by Sebastian Werner <s.werner@sebastian-software.de> */
'use strict';

@@ -6,4 +6,2 @@

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
require('core-js/modules/es.array.slice');

@@ -18,5 +16,9 @@ require('core-js/modules/es.date.to-string');

var path = require('path');
var BigInt = _interopDefault(require('big.js'));
var BigInt = require('big.js');
var metrohash = require('metrohash');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e['default'] : e; }
var BigInt__default = /*#__PURE__*/_interopDefaultLegacy(BigInt);
var xxhash = null;

@@ -52,6 +54,6 @@

var length = buffer.length;
BigInt.DP = 0;
BigInt.RM = 0;
BigInt__default.DP = 0;
BigInt__default.RM = 0;
for (var current = new BigInt(0), i = length - 1; i >= 0; i--) {
for (var current = new BigInt__default(0), i = length - 1; i >= 0; i--) {
current = current.times(256).plus(buffer[i]);

@@ -67,4 +69,4 @@ }

BigInt.DP = 20;
BigInt.RM = 1;
BigInt__default.DP = 20;
BigInt__default.RM = 1;
return output;

@@ -71,0 +73,0 @@ }

@@ -1,2 +0,2 @@

/*! asset-hash v3.0.7 by Sebastian Werner <s.werner@sebastian-software.de> */
/*! asset-hash v3.0.8 by Sebastian Werner <s.werner@sebastian-software.de> */
import 'core-js/modules/es.array.slice';

@@ -3,0 +3,0 @@ import 'core-js/modules/es.date.to-string';

{
"name": "asset-hash",
"version": "3.0.7",
"version": "3.0.8",
"description": "Very fast asset hashing function for using e.g. during front-end deployments.",

@@ -49,18 +49,19 @@ "main": "lib/index.cjs.js",

"devDependencies": {
"@effective/eslint-config": "^3.7.1",
"@effective/eslint-config": "^3.8.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^26.0.1",
"babel-jest": "^26.6.3",
"babel-preset-edge": "^5.5.1",
"eslint": "^7.2.0",
"jest": "^26.0.1",
"preppy": "^10.5.0",
"prettier": "^2.0.5",
"eslint": "^7.13.0",
"jest": "^26.6.3",
"preppy": "^10.8.0",
"prettier": "^2.1.2",
"release-it": "^14.2.1",
"semver": "^7.3.2",
"typescript": "^3.9.5"
"typescript": "^4.0.5"
},
"dependencies": {
"big.js": "^5.2.2",
"core-js": "^3.6.5",
"big.js": "^6.0.2",
"core-js": "^3.7.0",
"metrohash": "^2.6.0"
}
}

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