@poi/bs-loader
Advanced tools
Comparing version 1.0.0 to 11.0.0-alpha.4
11
index.js
const fs = require('fs') | ||
const path = require('path') | ||
const { exec } = require('child_process') | ||
const { getOptions } = require('loader-utils') | ||
let bsbCommand | ||
function runBuild(cwd /*: string */) /*: Promise<string> */ { | ||
function runBuild(cwd /* : string */) /* : Promise<string> */ { | ||
return new Promise((resolve, reject) => { | ||
@@ -31,14 +32,16 @@ exec(bsbCommand, { maxBuffer: Infinity, cwd }, (err, stdout, stderr) => { | ||
const callback = this.async() | ||
const { cwd } = Object.assign({ cwd: process.cwd() }, getOptions(this)) | ||
if (!bsbCommand) { | ||
try { | ||
// eslint-disable-next-line require-atomic-updates | ||
bsbCommand = require.resolve( | ||
path.resolve('./node_modules/bs-platform/bin/bsb.exe') | ||
path.resolve(cwd, 'node_modules/bs-platform/bin/bsb.exe') | ||
) | ||
} catch (e) { | ||
try { | ||
bsbCommand = require.resolve(path.resolve('./node_modules/.bin/bsb')) | ||
bsbCommand = require.resolve(path.resolve(cwd, 'node_modules/.bin/bsb')) | ||
} catch (err) { | ||
return callback( | ||
new Error(`Cannot find module 'bs-platform' in '${process.cwd()}'`) | ||
new Error(`Cannot find module 'bs-platform' in '${cwd}'`) | ||
) | ||
@@ -45,0 +48,0 @@ } |
{ | ||
"name": "@poi/bs-loader", | ||
"version": "1.0.0", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"version": "11.0.0-alpha.4", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js" | ||
], | ||
"license": "MIT" | ||
"license": "MIT", | ||
"dependencies": { | ||
"loader-utils": "^1.1.0" | ||
}, | ||
"gitHead": "609bd3c0a742f0b98dcacba00f1524d31d72c9be" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
1861
53
0
4
1
2
2
+ Addedloader-utils@^1.1.0
+ Addedbig.js@5.2.2(transitive)
+ Addedemojis-list@3.0.0(transitive)
+ Addedjson5@1.0.2(transitive)
+ Addedloader-utils@1.4.2(transitive)
+ Addedminimist@1.2.8(transitive)