Socket
Socket
Sign inDemoInstall

fsevents

Package Overview
Dependencies
71
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.10 to 1.2.11

4

fsevents.js

@@ -12,5 +12,3 @@ /*

var path = require('path');
var binary = require('node-pre-gyp');
var Native = require(binary.find(path.join(__dirname, 'package.json')));
var Native = require("bindings")("fse");

@@ -17,0 +15,0 @@ var EventEmitter = require('events').EventEmitter;

# node-pre-gyp changelog
## 0.14.0
- Defer modules requires in napi.js (https://github.com/mapbox/node-pre-gyp/pull/434)
- Bump dependency on `tar` from `^4` to `^4.4.2` (https://github.com/mapbox/node-pre-gyp/pull/454)
- Support extracting compiled binary from local offline mirror (https://github.com/mapbox/node-pre-gyp/pull/459)
- Added Node 13 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/483)
## 0.13.0
- Added Node 12 support in the local database (https://github.com/mapbox/node-pre-gyp/pull/449)
## 0.12.0

@@ -4,0 +15,0 @@

@@ -94,7 +94,5 @@ "use strict";

var badDownload = false;
var extractCount = 0;
var hasResponse = false;
var tar = require('tar');
function afterTarball(err) {
function afterExtract(err, extractCount) {
if (err) return callback(err);

@@ -109,7 +107,2 @@ if (badDownload) return callback(new Error("bad download"));

function filter_func(entry) {
log.info('install','unpacking ' + entry.path);
extractCount++;
}
// for request compatibility

@@ -156,7 +149,3 @@ req.on('error', function(err) {

// start unzipping and untaring
req.pipe(tar.extract({
cwd: to,
strip: 1,
onentry: filter_func
}).on('close', afterTarball).on('error', callback));
req.pipe(extract(to, afterExtract));
});

@@ -166,2 +155,38 @@ });

function extract_from_local(from, to, callback) {
if (!fs.existsSync(from)) {
return callback(new Error('Cannot find file ' + from));
}
log.info('Found local file to extract from ' + from);
function afterExtract(err, extractCount) {
if (err) return callback(err);
if (extractCount === 0) {
return callback(new Error('There was a fatal problem while extracting the tarball'));
}
log.info('tarball', 'done parsing tarball');
callback();
}
fs.createReadStream(from).pipe(extract(to, afterExtract));
}
function extract(to, callback) {
var extractCount = 0;
function filter_func(entry) {
log.info('install','unpacking ' + entry.path);
extractCount++;
}
function afterTarball(err) {
callback(err, extractCount);
}
var tar = require('tar');
return tar.extract({
cwd: to,
strip: 1,
onentry: filter_func
}).on('close', afterTarball).on('error', callback);
}
function do_build(gyp,argv,callback) {

@@ -242,3 +267,8 @@ var args = ['rebuild'].concat(argv);

} else {
place_binary(from,to,opts,after_place);
var fileName = from.startsWith('file://') && from.replace(/^file:\/\//, '');
if (fileName) {
extract_from_local(fileName, to, after_place);
} else {
place_binary(from,to,opts,after_place);
}
}

@@ -245,0 +275,0 @@ });

@@ -1510,2 +1510,22 @@ {

},
"6.15.0": {
"node_abi": 48,
"v8": "5.1"
},
"6.15.1": {
"node_abi": 48,
"v8": "5.1"
},
"6.16.0": {
"node_abi": 48,
"v8": "5.1"
},
"6.17.0": {
"node_abi": 48,
"v8": "5.1"
},
"6.17.1": {
"node_abi": 48,
"v8": "5.1"
},
"7.0.0": {

@@ -1687,2 +1707,34 @@ "node_abi": 51,

},
"8.13.0": {
"node_abi": 57,
"v8": "6.2"
},
"8.14.0": {
"node_abi": 57,
"v8": "6.2"
},
"8.14.1": {
"node_abi": 57,
"v8": "6.2"
},
"8.15.0": {
"node_abi": 57,
"v8": "6.2"
},
"8.15.1": {
"node_abi": 57,
"v8": "6.2"
},
"8.16.0": {
"node_abi": 57,
"v8": "6.2"
},
"8.16.1": {
"node_abi": 57,
"v8": "6.2"
},
"8.16.2": {
"node_abi": 57,
"v8": "6.2"
},
"9.0.0": {

@@ -1824,2 +1876,50 @@ "node_abi": 59,

},
"10.14.0": {
"node_abi": 64,
"v8": "6.8"
},
"10.14.1": {
"node_abi": 64,
"v8": "6.8"
},
"10.14.2": {
"node_abi": 64,
"v8": "6.8"
},
"10.15.0": {
"node_abi": 64,
"v8": "6.8"
},
"10.15.1": {
"node_abi": 64,
"v8": "6.8"
},
"10.15.2": {
"node_abi": 64,
"v8": "6.8"
},
"10.15.3": {
"node_abi": 64,
"v8": "6.8"
},
"10.16.0": {
"node_abi": 64,
"v8": "6.8"
},
"10.16.1": {
"node_abi": 64,
"v8": "6.8"
},
"10.16.2": {
"node_abi": 64,
"v8": "6.8"
},
"10.16.3": {
"node_abi": 64,
"v8": "6.8"
},
"10.17.0": {
"node_abi": 64,
"v8": "6.8"
},
"11.0.0": {

@@ -1832,3 +1932,143 @@ "node_abi": 67,

"v8": "7.0"
},
"11.2.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.3.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.4.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.5.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.6.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.7.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.8.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.9.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.10.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.10.1": {
"node_abi": 67,
"v8": "7.0"
},
"11.11.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.12.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.13.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.14.0": {
"node_abi": 67,
"v8": "7.0"
},
"11.15.0": {
"node_abi": 67,
"v8": "7.0"
},
"12.0.0": {
"node_abi": 72,
"v8": "7.4"
},
"12.1.0": {
"node_abi": 72,
"v8": "7.4"
},
"12.2.0": {
"node_abi": 72,
"v8": "7.4"
},
"12.3.0": {
"node_abi": 72,
"v8": "7.4"
},
"12.3.1": {
"node_abi": 72,
"v8": "7.4"
},
"12.4.0": {
"node_abi": 72,
"v8": "7.4"
},
"12.5.0": {
"node_abi": 72,
"v8": "7.5"
},
"12.6.0": {
"node_abi": 72,
"v8": "7.5"
},
"12.7.0": {
"node_abi": 72,
"v8": "7.5"
},
"12.8.0": {
"node_abi": 72,
"v8": "7.5"
},
"12.8.1": {
"node_abi": 72,
"v8": "7.5"
},
"12.9.0": {
"node_abi": 72,
"v8": "7.6"
},
"12.9.1": {
"node_abi": 72,
"v8": "7.6"
},
"12.10.0": {
"node_abi": 72,
"v8": "7.6"
},
"12.11.0": {
"node_abi": 72,
"v8": "7.7"
},
"12.11.1": {
"node_abi": 72,
"v8": "7.7"
},
"12.12.0": {
"node_abi": 72,
"v8": "7.7"
},
"12.13.0": {
"node_abi": 72,
"v8": "7.7"
},
"13.0.0": {
"node_abi": 79,
"v8": "7.8"
},
"13.0.1": {
"node_abi": 79,
"v8": "7.8"
}
}
"use strict";
var fs = require('fs');
var rm = require('rimraf');
var log = require('npmlog');

@@ -118,2 +116,3 @@ module.exports = exports;

module.exports.get_napi_build_versions = function(package_json, opts, warnings) { // opts may be undefined
var log = require('npmlog');
var napi_build_versions = [];

@@ -171,2 +170,3 @@ var supported_napi_version = module.exports.get_napi_version(opts ? opts.target : undefined);

if (napi_build_version) {
var rm = require('rimraf');
rm.sync(module.exports.get_build_dir(napi_build_version));

@@ -179,2 +179,3 @@ fs.renameSync('build', module.exports.get_build_dir(napi_build_version));

if (napi_build_version) {
var rm = require('rimraf');
rm.sync('build');

@@ -181,0 +182,0 @@ fs.renameSync(module.exports.get_build_dir(napi_build_version), 'build');

{
"_from": "node-pre-gyp@^0.12.0",
"_id": "node-pre-gyp@0.12.0",
"_from": "node-pre-gyp@*",
"_id": "node-pre-gyp@0.14.0",
"_inBundle": false,
"_integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==",
"_integrity": "sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==",
"_location": "/node-pre-gyp",

@@ -11,8 +11,8 @@ "_phantomChildren": {},

"registry": true,
"raw": "node-pre-gyp@^0.12.0",
"raw": "node-pre-gyp@*",
"name": "node-pre-gyp",
"escapedName": "node-pre-gyp",
"rawSpec": "^0.12.0",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "^0.12.0"
"fetchSpec": "*"
},

@@ -22,5 +22,5 @@ "_requiredBy": [

],
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz",
"_shasum": "39ba4bb1439da030295f899e3b520b7785766149",
"_spec": "node-pre-gyp@^0.12.0",
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz",
"_shasum": "9a0596533b877289bcad4e143982ca3d904ddc83",
"_spec": "node-pre-gyp@*",
"_where": "/Users/pipobscure/fsevents",

@@ -48,3 +48,3 @@ "author": {

"semver": "^5.3.0",
"tar": "^4"
"tar": "^4.4.2"
},

@@ -88,3 +88,3 @@ "deprecated": false,

},
"version": "0.12.0"
"version": "0.14.0"
}
{
"_from": "tar@^4",
"_from": "tar@^4.4.2",
"_id": "tar@4.4.13",

@@ -11,8 +11,8 @@ "_inBundle": false,

"registry": true,
"raw": "tar@^4",
"raw": "tar@^4.4.2",
"name": "tar",
"escapedName": "tar",
"rawSpec": "^4",
"rawSpec": "^4.4.2",
"saveSpec": null,
"fetchSpec": "^4"
"fetchSpec": "^4.4.2"
},

@@ -24,3 +24,3 @@ "_requiredBy": [

"_shasum": "43b364bc52888d555298637b10d60790254ab525",
"_spec": "tar@^4",
"_spec": "tar@^4.4.2",
"_where": "/Users/pipobscure/fsevents/node_modules/node-pre-gyp",

@@ -27,0 +27,0 @@ "author": {

{
"name": "fsevents",
"version": "1.2.10",
"version": "1.2.11",
"description": "Native Access to Mac OS-X FSEvents",
"main": "fsevents.js",
"dependencies": {
"nan": "^2.12.1",
"node-pre-gyp": "^0.12.0"
"bindings": "^1.5.0",
"nan": "^2.12.1"
},

@@ -17,14 +17,4 @@ "os": [

"scripts": {
"install": "node install",
"prepublish": "if [ $(npm -v | head -c 1) -lt 3 ]; then exit 1; fi && npm dedupe",
"test": "node ./test/fsevents.js && node ./test/function.js 2> /dev/null",
"node-pre-gyp": "node-pre-gyp"
"test": "node ./test/fsevents.js && node ./test/function.js 2> /dev/null"
},
"binary": {
"module_name": "fse",
"module_path": "./lib/binding/{configuration}/{node_abi}-{platform}-{arch}/",
"remote_path": "./v{version}/",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
"host": "https://fsevents-binaries.s3-us-west-2.amazonaws.com"
},
"repository": {

@@ -31,0 +21,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc