Skip to content

Commit

Permalink
Automatically applying Prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 18, 2023
1 parent 9c1642e commit ad18f97
Show file tree
Hide file tree
Showing 49 changed files with 9,291 additions and 8,988 deletions.
8 changes: 4 additions & 4 deletions JS/wasm/crates/wasmjs-engine/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 41 additions & 41 deletions JS/wasm/crates/wasmjs-engine/shims/build.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
import { build } from 'esbuild'
import { build } from "esbuild";

// Build for index.js
build({
entryPoints: ['src/index.js'],
bundle: true,
outfile: 'dist/index.js',
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false
entryPoints: ["src/index.js"],
bundle: true,
outfile: "dist/index.js",
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false,
}).catch((error) => {
console.error(error)
process.exit(1)
})
console.error(error);
process.exit(1);
});

// Build for buffer.js
build({
entryPoints: ['src/buffer.js'],
bundle: true,
outfile: 'dist/buffer.js',
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false
entryPoints: ["src/buffer.js"],
bundle: true,
outfile: "dist/buffer.js",
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false,
}).catch((error) => {
console.error(error)
process.exit(1)
})
console.error(error);
process.exit(1);
});

build({
entryPoints: ['src/path.js'],
bundle: true,
outfile: 'dist/path.js',
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false
entryPoints: ["src/path.js"],
bundle: true,
outfile: "dist/path.js",
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false,
}).catch((error) => {
console.error(error)
process.exit(1)
})
console.error(error);
process.exit(1);
});

build({
entryPoints: ['src/crypto.ts'],
bundle: true,
outfile: 'dist/crypto.js',
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false
entryPoints: ["src/crypto.ts"],
bundle: true,
outfile: "dist/crypto.js",
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false,
}).catch((error) => {
console.error(error)
process.exit(1)
})
console.error(error);
process.exit(1);
});
2 changes: 1 addition & 1 deletion JS/wasm/crates/wasmjs-engine/shims/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"buffer": "^6.0.3",
"esbuild": "^0.19",
"http-status": "^1.7",
"query-string": "^7.1.1",
"query-string": "^7.1.1",
"sjcl": "^1.0.8",
"url-parse": "^1.5.10"
},
Expand Down
13 changes: 3 additions & 10 deletions JS/wasm/crates/wasmjs-engine/shims/src/buffer.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@

import {
constants,
kMaxLength,
kStringMaxLength,
Buffer,
SlowBuffer,
} from './internal/internal_buffer';
} from "./internal/internal_buffer";

export {
constants,
kMaxLength,
kStringMaxLength,
Buffer,
SlowBuffer,
};
export { constants, kMaxLength, kStringMaxLength, Buffer, SlowBuffer };

export default {
constants,
kMaxLength,
kStringMaxLength,
Buffer,
SlowBuffer,
}
};
Loading

0 comments on commit ad18f97

Please sign in to comment.