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

asset-pipe-common

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-pipe-common - npm Package Compare versions

Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4

18

lib/common.js

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

"use strict";
'use strict';

@@ -8,4 +8,3 @@ const stream = require('readable-stream');

/**
/**
* Writable stream to build a hash out of all the "source" attributes in a

@@ -26,3 +25,3 @@ * stream of asset objects.

get hash() {
get hash () {
return this._hasher.digest('hex');

@@ -40,5 +39,4 @@ }

/**
* Writable stream to build a hash out of the content of a non object mode
/**
* Writable stream to build a hash out of the content of a non object mode
* stream

@@ -58,3 +56,3 @@ * @class

get hash() {
get hash () {
return this._hasher.digest('hex');

@@ -72,3 +70,2 @@ }

/**

@@ -88,3 +85,2 @@ * Creates a hash out of a String or Buffer

/**

@@ -100,3 +96,3 @@ * Constructs a temporary filename

const rand = Math.floor(Math.random() * 1000).toString();
return 'tmp-' + Date.now().toString() + '-' + rand + '.' + fileType;
return `tmp-${Date.now().toString()}-${rand}.${fileType}`;
};
{
"name": "asset-pipe-common",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"author": {

@@ -23,5 +23,2 @@ "name": "Trygve Lie",

],
"engines": {
"node" : "6.x"
},
"bugs": {

@@ -36,7 +33,13 @@ "url": "https://github.com/asset-pipe/asset-pipe-common/issues"

"JSONStream": "1.2.1",
"tap": "8.0.1"
"eslint": "^3.15.0",
"eslint-config-finn": "^1.0.1",
"tap": "10.0.2"
},
"scripts": {
"lint": "eslint .",
"test": "tap test/*.js"
}
},
"files": [
"lib"
]
}
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