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

@atlaspack/fs

Package Overview
Dependencies
Maintainers
0
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/fs - npm Package Compare versions

Comparing version 2.13.2-canary.3646 to 2.13.2-canary.3647

18

lib/browser.js

@@ -11,2 +11,3 @@ var $jF595$path = require("path");

var $jF595$atlaspacklogger = require("@atlaspack/logger");
var $jF595$atlaspackfeatureflags = require("@atlaspack/feature-flags");

@@ -65,3 +66,3 @@

var $a29f1902b85e3e69$exports = {};
$a29f1902b85e3e69$exports = JSON.parse("{\"name\":\"@atlaspack/fs\",\"version\":\"2.13.2-canary.3646+cbcb43679\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"(MIT OR Apache-2.0)\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/logger\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}},\"browser\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/logger\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}}},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/types.js > lib/types.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\"},\"dependencies\":{\"@atlaspack/build-cache\":\"2.13.2-canary.3646+cbcb43679\",\"@atlaspack/feature-flags\":\"2.13.2-canary.3646+cbcb43679\",\"@atlaspack/logger\":\"2.13.2-canary.3646+cbcb43679\",\"@atlaspack/rust\":\"2.13.2-canary.3646+cbcb43679\",\"@atlaspack/types-internal\":\"2.13.2-canary.3646+cbcb43679\",\"@atlaspack/utils\":\"2.13.2-canary.3646+cbcb43679\",\"@atlaspack/workers\":\"2.13.2-canary.3646+cbcb43679\",\"@parcel/watcher\":\"^2.0.7\"},\"devDependencies\":{\"@atlaspack/watcher-watchman-js\":\"2.13.2-canary.3646+cbcb43679\",\"graceful-fs\":\"^4.2.4\",\"ncp\":\"^2.0.0\",\"nullthrows\":\"^1.1.1\",\"utility-types\":\"^3.10.0\"},\"browser\":{\"@atlaspack/fs\":\"./lib/browser.js\",\"./src/NodeFS.js\":\"./src/NodeFS.browser.js\"},\"gitHead\":\"cbcb436799252b963fbb88618e95859e4740bb3d\"}");
$a29f1902b85e3e69$exports = JSON.parse("{\"name\":\"@atlaspack/fs\",\"version\":\"2.13.2-canary.3647+e962cd735\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"(MIT OR Apache-2.0)\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/logger\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}},\"browser\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/logger\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}}},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/types.js > lib/types.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\"},\"dependencies\":{\"@atlaspack/build-cache\":\"2.13.2-canary.3647+e962cd735\",\"@atlaspack/feature-flags\":\"2.13.2-canary.3647+e962cd735\",\"@atlaspack/logger\":\"2.13.2-canary.3647+e962cd735\",\"@atlaspack/rust\":\"2.13.2-canary.3647+e962cd735\",\"@atlaspack/types-internal\":\"2.13.2-canary.3647+e962cd735\",\"@atlaspack/utils\":\"2.13.2-canary.3647+e962cd735\",\"@atlaspack/workers\":\"2.13.2-canary.3647+e962cd735\",\"@parcel/watcher\":\"^2.0.7\"},\"devDependencies\":{\"@atlaspack/watcher-watchman-js\":\"2.13.2-canary.3647+e962cd735\",\"graceful-fs\":\"^4.2.4\",\"ncp\":\"^2.0.0\",\"nullthrows\":\"^1.1.1\",\"utility-types\":\"^3.10.0\"},\"browser\":{\"@atlaspack/fs\":\"./lib/browser.js\",\"./src/NodeFS.js\":\"./src/NodeFS.browser.js\"},\"gitHead\":\"e962cd735877f7f16163e60868d70d9c10054ebe\"}");

@@ -1131,2 +1132,3 @@

class $80660f432e25e217$export$80de92554c03942a extends (0, $3efdc9f199571449$export$c4e0ef2ab73c21e7) {

@@ -1143,3 +1145,3 @@ #options;

const { nativeSnapshotPath: nativeSnapshotPath, vcsState: vcsState } = JSON.parse(snapshotFileContent);
const watcherEventsSince = await (0, $jF595$atlaspacklogger.instrumentAsync)('NodeVCSAwareFS::watchman.getEventsSince', ()=>this.watcher().getEventsSince(dir, nativeSnapshotPath, opts));
let watcherEventsSince = [];
const vcsEventsSince = (0, $jF595$atlaspacklogger.instrument)('NodeVCSAwareFS::rust.getEventsSince', ()=>(0, $jF595$atlaspackrust.getEventsSince)(this.#options.gitRepoPath, vcsState.gitHash)).map((e)=>({

@@ -1149,3 +1151,10 @@ path: e.path,

}));
this.#options.logEventDiff(watcherEventsSince, vcsEventsSince);
if ((0, $jF595$atlaspackfeatureflags.getFeatureFlagValue)('vcsMode') !== 'NEW') {
watcherEventsSince = await (0, $jF595$atlaspacklogger.instrumentAsync)('NodeVCSAwareFS::watchman.getEventsSince', ()=>this.watcher().getEventsSince(dir, nativeSnapshotPath, opts));
this.#options.logEventDiff(watcherEventsSince, vcsEventsSince);
}
if ([
'NEW_AND_CHECK',
'NEW'
].includes((0, $jF595$atlaspackfeatureflags.getFeatureFlagValue)('vcsMode'))) return vcsEventsSince;
return watcherEventsSince;

@@ -1157,4 +1166,3 @@ }

const nativeSnapshotPath = (0, ($parcel$interopDefault($jF595$path))).join(snapshotDirectory, `${filename}.native-snapshot.txt`);
await this.watcher().writeSnapshot(dir, nativeSnapshotPath, opts);
// TODO: we need the git repo path, pass the exclude patterns
if ((0, $jF595$atlaspackfeatureflags.getFeatureFlagValue)('vcsMode') !== 'NEW') await this.watcher().writeSnapshot(dir, nativeSnapshotPath, opts);
const vcsState = await (0, $jF595$atlaspackrust.getVcsStateSnapshot)(this.#options.gitRepoPath, this.#options.excludePatterns);

@@ -1161,0 +1169,0 @@ await this.writeFile(snapshot, JSON.stringify({

{
"name": "@atlaspack/fs",
"version": "2.13.2-canary.3646+cbcb43679",
"version": "2.13.2-canary.3647+e962cd735",
"description": "Blazing fast, zero configuration web application bundler",

@@ -55,13 +55,13 @@ "license": "(MIT OR Apache-2.0)",

"dependencies": {
"@atlaspack/build-cache": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/feature-flags": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/logger": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/rust": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/types-internal": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/utils": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/workers": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/build-cache": "2.13.2-canary.3647+e962cd735",
"@atlaspack/feature-flags": "2.13.2-canary.3647+e962cd735",
"@atlaspack/logger": "2.13.2-canary.3647+e962cd735",
"@atlaspack/rust": "2.13.2-canary.3647+e962cd735",
"@atlaspack/types-internal": "2.13.2-canary.3647+e962cd735",
"@atlaspack/utils": "2.13.2-canary.3647+e962cd735",
"@atlaspack/workers": "2.13.2-canary.3647+e962cd735",
"@parcel/watcher": "^2.0.7"
},
"devDependencies": {
"@atlaspack/watcher-watchman-js": "2.13.2-canary.3646+cbcb43679",
"@atlaspack/watcher-watchman-js": "2.13.2-canary.3647+e962cd735",
"graceful-fs": "^4.2.4",

@@ -76,3 +76,3 @@ "ncp": "^2.0.0",

},
"gitHead": "cbcb436799252b963fbb88618e95859e4740bb3d"
"gitHead": "e962cd735877f7f16163e60868d70d9c10054ebe"
}

@@ -10,2 +10,3 @@ // @flow strict-local

import {instrument, instrumentAsync} from '@atlaspack/logger';
import {getFeatureFlagValue} from '@atlaspack/feature-flags';

@@ -38,13 +39,24 @@ // $FlowFixMe

const {nativeSnapshotPath, vcsState} = JSON.parse(snapshotFileContent);
let watcherEventsSince = [];
const watcherEventsSince = await instrumentAsync(
'NodeVCSAwareFS::watchman.getEventsSince',
() => this.watcher().getEventsSince(dir, nativeSnapshotPath, opts),
);
const vcsEventsSince = instrument(
'NodeVCSAwareFS::rust.getEventsSince',
() => getEventsSince(this.#options.gitRepoPath, vcsState.gitHash),
).map((e) => ({path: e.path, type: e.changeType}));
this.#options.logEventDiff(watcherEventsSince, vcsEventsSince);
).map((e) => ({
path: e.path,
type: e.changeType,
}));
if (getFeatureFlagValue('vcsMode') !== 'NEW') {
watcherEventsSince = await instrumentAsync(
'NodeVCSAwareFS::watchman.getEventsSince',
() => this.watcher().getEventsSince(dir, nativeSnapshotPath, opts),
);
this.#options.logEventDiff(watcherEventsSince, vcsEventsSince);
}
if (['NEW_AND_CHECK', 'NEW'].includes(getFeatureFlagValue('vcsMode'))) {
return vcsEventsSince;
}
return watcherEventsSince;

@@ -64,5 +76,6 @@ }

);
await this.watcher().writeSnapshot(dir, nativeSnapshotPath, opts);
if (getFeatureFlagValue('vcsMode') !== 'NEW') {
await this.watcher().writeSnapshot(dir, nativeSnapshotPath, opts);
}
// TODO: we need the git repo path, pass the exclude patterns
const vcsState = await getVcsStateSnapshot(

@@ -69,0 +82,0 @@ this.#options.gitRepoPath,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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