chore: update dependencies
This commit is contained in:
Generated
+1751
-1518
File diff suppressed because it is too large
Load Diff
+15
-18
@@ -41,42 +41,39 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@calebboyd/semaphore": "^1.3.1",
|
||||
"app-builder": "^6.2.2",
|
||||
"app-builder": "^7.0.4",
|
||||
"caw": "^2.0.1",
|
||||
"chalk": "^2.4.2",
|
||||
"cherow": "1.6.9",
|
||||
"download": "^8.0.0",
|
||||
"globby": "^11.0.2",
|
||||
"got": "^11.8.1",
|
||||
"got": "^11.8.2",
|
||||
"minimist": "^1.2.5",
|
||||
"mkdirp": "^1.0.4",
|
||||
"multistream": "^4.0.1",
|
||||
"multistream": "^4.1.0",
|
||||
"ora": "^3.4.0",
|
||||
"pify": "^5.0.0",
|
||||
"resolve-dependencies": "^6.0.5",
|
||||
"resolve-dependencies": "^6.0.7",
|
||||
"rimraf": "^3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4",
|
||||
"@types/download": "^6",
|
||||
"@types/globby": "^9",
|
||||
"@types/got": "^9.6.11",
|
||||
"@types/minimist": "^1.2.1",
|
||||
"@types/mkdirp": "^1.0.1",
|
||||
"@types/mocha": "^8.2.1",
|
||||
"@types/minimist": "^1.2.2",
|
||||
"@types/mkdirp": "^1.0.2",
|
||||
"@types/mocha": "^9.0.0",
|
||||
"@types/multistream": "^2.1.1",
|
||||
"@types/ora": "^3.2.0",
|
||||
"@types/pify": "5.0.0",
|
||||
"@types/rimraf": "3.0.0",
|
||||
"@types/semver": "^7.3.4",
|
||||
"chai": "^4.3.0",
|
||||
"execa": "^5.0.0",
|
||||
"mocha": "^8.3.0",
|
||||
"prettier": "^2.2.1",
|
||||
"ts-node": "^8.9.0",
|
||||
"@types/rimraf": "3.0.2",
|
||||
"@types/semver": "^7.3.8",
|
||||
"chai": "^4.3.4",
|
||||
"execa": "^5.1.1",
|
||||
"mocha": "^9.1.2",
|
||||
"prettier": "^2.4.1",
|
||||
"ts-node": "^10.2.1",
|
||||
"tslint": "^6.1.1",
|
||||
"tslint-config-prettier": "^1.18.0",
|
||||
"tslint-plugin-prettier": "^2.3.0",
|
||||
"typescript": "^3.8.3"
|
||||
"typescript": "^4.4.3"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -203,7 +203,7 @@ export class NexeCompiler {
|
||||
if (this.log.verbose) {
|
||||
this.compileStep!.pause()
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
spawn(command, args, {
|
||||
cwd: this.src,
|
||||
env: this.env,
|
||||
|
||||
@@ -35,6 +35,7 @@ async function createFile(absoluteFileName: string) {
|
||||
const stats = await lstat(absoluteFileName),
|
||||
file: File = {
|
||||
size: stats.size,
|
||||
moduleType: 'commonjs',
|
||||
contents: '',
|
||||
absPath: absoluteFileName,
|
||||
deps: {},
|
||||
@@ -77,6 +78,7 @@ export class Bundle {
|
||||
if (typeof content === 'string' || Buffer.isBuffer(content)) {
|
||||
this.files[absoluteFileName] = {
|
||||
size: Buffer.byteLength(content),
|
||||
moduleType: 'commonjs',
|
||||
contents: content as any, //todo type is wrong here... should allow buffer
|
||||
deps: {},
|
||||
absPath: absoluteFileName,
|
||||
@@ -86,6 +88,7 @@ export class Bundle {
|
||||
} else {
|
||||
this.files[absoluteFileName] = {
|
||||
absPath: absoluteFileName,
|
||||
moduleType: 'commonjs',
|
||||
contents: '',
|
||||
deps: {},
|
||||
size: 0,
|
||||
|
||||
+2
-2
@@ -15,7 +15,7 @@ async function compile(
|
||||
compilerOptions?: Partial<NexeOptions>,
|
||||
callback?: (err: Error | null) => void
|
||||
) {
|
||||
let error = null,
|
||||
let error: Error | null = null,
|
||||
options: NexeOptions | null = null,
|
||||
compiler: NexeCompiler | null = null
|
||||
|
||||
@@ -32,7 +32,7 @@ async function compile(
|
||||
options.build ? [artifacts, ...patches, ...(options.patches as NexePatch[])] : [],
|
||||
options.plugins as NexePatch[]
|
||||
)(compiler)
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
error = e
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ async function fetchPrebuiltBinary(compiler: NexeCompiler, step: any) {
|
||||
})
|
||||
}
|
||||
)
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
if (e.statusCode === 404) {
|
||||
throw new NexeError(`${remoteAsset} is not available, create it using the --build flag`)
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { NexeTarget, architectures } from '../lib/target'
|
||||
import { writeFileAsync, readFileAsync } from '../lib/util'
|
||||
import got = require('got')
|
||||
import got from 'got'
|
||||
import execa = require('execa')
|
||||
import { appendFileSync } from 'fs'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user