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

@atlaspack/node-resolver-core

Package Overview
Dependencies
Maintainers
0
Versions
341
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/node-resolver-core - npm Package Compare versions

Comparing version

to
3.4.2-canary.3668

21

lib/Wrapper.js

@@ -96,6 +96,13 @@ "use strict";

await (_rust().init === null || _rust().init === void 0 ? void 0 : (0, _rust().init)());
const useNativeFs = this.options.fs instanceof _fs().NodeFS && process.versions.pnp == null &&
// For Wasm builds
!_rust().init;
if (!useNativeFs && process.env.NODE_ENV !== 'test') {
var _this$options$logger;
(_this$options$logger = this.options.logger) === null || _this$options$logger === void 0 || _this$options$logger.warn({
message: 'Using JavaScript file system for resolution. This should not be used in other than internal atlaspack tests.'
});
}
resolver = new (_rust().Resolver)(this.options.projectRoot, {
fs: this.options.fs instanceof _fs().NodeFS && process.versions.pnp == null &&
// For Wasm builds
!_rust().init ? undefined : {
fs: useNativeFs ? undefined : {
canonicalize: path => this.options.fs.realpathSync(path),

@@ -237,4 +244,4 @@ read: path => this.options.fs.readFileSync(path),

if (this.options.shouldAutoInstall && packageManager) {
var _this$options$logger;
(_this$options$logger = this.options.logger) === null || _this$options$logger === void 0 || _this$options$logger.warn({
var _this$options$logger2;
(_this$options$logger2 = this.options.logger) === null || _this$options$logger2 === void 0 || _this$options$logger2.warn({
message: (0, _diagnostic().md)`Auto installing polyfill for Node builtin module "${packageName}"...`,

@@ -286,4 +293,4 @@ codeFrames: options.loc ? [{

} catch (e) {
var _this$options$logger2;
(_this$options$logger2 = this.options.logger) === null || _this$options$logger2 === void 0 || _this$options$logger2.warn((0, _diagnostic().errorToDiagnostic)(e));
var _this$options$logger3;
(_this$options$logger3 = this.options.logger) === null || _this$options$logger3 === void 0 || _this$options$logger3.warn((0, _diagnostic().errorToDiagnostic)(e));
}

@@ -290,0 +297,0 @@ }

{
"name": "@atlaspack/node-resolver-core",
"version": "3.4.2-canary.3667+3fbcdc329",
"version": "3.4.2-canary.3668+6796ed90d",
"license": "(MIT OR Apache-2.0)",

@@ -24,7 +24,7 @@ "publishConfig": {

"dependencies": {
"@atlaspack/diagnostic": "2.13.2-canary.3667+3fbcdc329",
"@atlaspack/feature-flags": "2.13.2-canary.3667+3fbcdc329",
"@atlaspack/fs": "2.13.2-canary.3667+3fbcdc329",
"@atlaspack/rust": "2.13.2-canary.3667+3fbcdc329",
"@atlaspack/utils": "2.13.2-canary.3667+3fbcdc329",
"@atlaspack/diagnostic": "2.13.2-canary.3668+6796ed90d",
"@atlaspack/feature-flags": "2.13.2-canary.3668+6796ed90d",
"@atlaspack/fs": "2.13.2-canary.3668+6796ed90d",
"@atlaspack/rust": "2.13.2-canary.3668+6796ed90d",
"@atlaspack/utils": "2.13.2-canary.3668+6796ed90d",
"@mischnic/json-sourcemap": "^0.1.0",

@@ -61,3 +61,3 @@ "nullthrows": "^1.1.1",

},
"gitHead": "3fbcdc3299ccfb94e073cb7b6d23bc50abd182a2"
"gitHead": "6796ed90d1ea32c5266053644ba6666f62c5fe95"
}