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

@okamjs/okam

Package Overview
Dependencies
Maintainers
3
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@okamjs/okam - npm Package Compare versions

Comparing version 0.0.34 to 0.0.35-dev.20231110.1

5

index.d.ts

@@ -14,2 +14,3 @@ /* tslint:disable */

meta?: boolean;
asciiOnly?: boolean,
preserveModules?: boolean;

@@ -27,2 +28,3 @@ preserveModulesRoot?: string;

};
minify?: boolean;
mode?: "development" | "production";

@@ -35,3 +37,4 @@ define?: Record<string, string>;

root: string;
subpath: {
script?: string;
subpath?: {
exclude?: string[];

@@ -38,0 +41,0 @@ rules: {

13

package.json
{
"name": "@okamjs/okam",
"version": "0.0.34",
"version": "0.0.35-dev.20231110.1",
"main": "index.js",

@@ -24,7 +24,2 @@ "types": "index.d.ts",

},
"optionalDependencies": {
"@okamjs/okam-darwin-arm64": "0.0.34",
"@okamjs/okam-darwin-x64": "0.0.34",
"@okamjs/okam-linux-x64-gnu": "0.0.34"
},
"scripts": {

@@ -38,2 +33,3 @@ "artifacts": "napi artifacts",

"build:debug": "napi build --platform",
"prepublishOnly": "napi prepublish -t npm",
"test": "ava",

@@ -43,3 +39,8 @@ "universal": "napi universal",

"release": "esno scripts/release.ts"
},
"optionalDependencies": {
"@okamjs/okam-darwin-arm64": "0.0.35-dev.20231110.1",
"@okamjs/okam-darwin-x64": "0.0.35-dev.20231110.1",
"@okamjs/okam-linux-x64-gnu": "0.0.35-dev.20231110.1"
}
}

@@ -57,11 +57,19 @@ import 'zx/globals';

fs.writeFileSync(nodePkgPath, JSON.stringify(nodePkg, null, 2) + '\n');
// build macOs *.node
await $`rm -rf ./*.node`;
await $`find ./ -name '*.node' | xargs rm -f`;
await $`find ./npm -name '*.node' | xargs rm -f`;
await $`cargo build --lib -r --target x86_64-apple-darwin`;
await $`pnpm run build:mac:x86`;
await $`cargo build --lib -r --target aarch64-apple-darwin`;
await $`pnpm run build:mac:aarch`;
await $`strip -x ./okam.darwin-*.node`;
console.log('linux building started...');
const start = Date.now();
await build_linux_binding();
const duration = (Date.now() - start) / 1000;
console.log(`linux building done ${duration}`);

@@ -126,4 +134,4 @@ await $`pnpm run artifacts:local`;

const containerCMD = [
'cargo build -r',
'pnpm --filter @okamjs/okam build',
'cargo build -r --target x86_64-unknown-linux-gnu',
'pnpm --filter @okamjs/okam build:linux:x86',
'strip ./crates/node/okam.linux*.node',

@@ -152,4 +160,3 @@ ].join('&&');

// too many <jemalloc> log, so we use quiet
await $`docker run ${options} ${image} bash -c ${containerCMD}`.quiet();
await $`docker run ${options} ${image} bash -c ${containerCMD}`;
}
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