Skip to content

Commit

Permalink
Fix formatting in JS/wasm files
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul007-bit committed Dec 26, 2023
1 parent 2c493fb commit f7cf6fc
Show file tree
Hide file tree
Showing 45 changed files with 9,237 additions and 8,939 deletions.
102 changes: 51 additions & 51 deletions JS/wasm/crates/wasmjs-engine/shims/build.js
Original file line number Diff line number Diff line change
@@ -1,68 +1,68 @@
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);
});

build({
entryPoints: ['src/arakoo-jsonnet.js'],
bundle: true,
outfile: 'dist/arakoo-jsonnet.js',
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false
entryPoints: ["src/arakoo-jsonnet.js"],
bundle: true,
outfile: "dist/arakoo-jsonnet.js",
format: "esm",
target: "esnext",
platform: "node",
treeShaking: false,
}).catch((error) => {
console.error(error)
process.exit(1)
})
console.error(error);
process.exit(1);
});
6 changes: 2 additions & 4 deletions JS/wasm/crates/wasmjs-engine/shims/src/arakoo-jsonnet.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const parseJsonnet = globalThis.parseJsonnet
const parseJsonnet = globalThis.parseJsonnet;

export {
parseJsonnet,
}
export { parseJsonnet };
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 f7cf6fc

Please sign in to comment.