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

@poi/bs-loader

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poi/bs-loader - npm Package Compare versions

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"
}
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