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

mirror

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mirror - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

6

index.js
var mirror = exports;
var fs = require('fs');
mirror.assets = function assets(require, assets, options) {
mirror.assets = function assets(assets, options) {
if (!Array.isArray(assets)) assets = [ assets ];

@@ -13,5 +13,7 @@ if (!options) options = {};

if (options.sort) options.sort(assets);
var pending = assets.length, cancelled = false;
for (var i = 0; i < assets.length; i++) {
fs.readFile(require.resolve(assets[i]), 'utf8', function(err, file) {
fs.readFile(assets[i], 'utf8', function(err, file) {
if (err) {

@@ -18,0 +20,0 @@ cancelled = true;

{
"name": "mirror",
"version": "0.1.0"
"version": "0.2.0"
}
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