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.1.1 to 0.1.2-dev.20231125.1

101

index.d.ts

@@ -7,11 +7,98 @@ /* tslint:disable */

export interface JsHooks {
onCompileLess?: (...args: any[]) => any
onBuildComplete?: (...args: any[]) => any
onCompileLess?: (filePath: string) => Promise<string>;
onBuildComplete?: (data: {
isFirstCompile: boolean;
time: number;
stats: {
startTime: number;
endTime: number;
};
}) => void;
}
export interface BuildParams {
root: string
config: any
hooks: JsHooks
watch: boolean
root: string;
config: {
entry?: Record<string, string>;
output?: {
path: string;
mode: 'bundle' | 'bundless';
esVersion?: string;
meta?: boolean;
preserveModules?: boolean;
preserveModulesRoot?: string;
};
resolve?: {
alias?: Record<string, string>;
extensions?: string[];
};
manifest?: boolean;
manifestConfig?: {
fileName: string;
basePath: string;
};
mode?: 'development' | 'production';
define?: Record<string, string>;
devtool?: 'source-map' | 'inline-source-map' | 'none';
externals?: Record<
string,
| string
| {
root: string;
script?: string;
subpath?: {
exclude?: string[];
rules: {
regex: string;
target: string | '$EMPTY';
targetConverter?: 'PascalCase';
}[];
};
}
>;
copy?: string[];
code_splitting?: 'auto' | 'none';
providers?: Record<string, string[]>;
publicPath?: string;
inlineLimit?: number;
targets?: Record<string, number>;
platform?: 'node' | 'browser';
hmr?: boolean;
hmrPort?: string;
hmrHost?: string;
px2rem?: boolean;
px2remConfig?: {
root: number;
propBlackList: string[];
propWhiteList: string[];
selectorBlackList: string[];
selectorWhiteList: string[];
};
stats?: boolean;
hash?: boolean;
autoCssModules?: boolean;
ignoreCSSParserErrors?: boolean;
dynamicImportToRequire?: boolean;
umd?: string;
transformImport?: {
libraryName: string;
libraryDirectory?: string;
style?: boolean | string;
}[];
clean?: boolean;
nodePolyfill?: boolean;
ignores?: string[];
_minifish?: {
mapping: Record<string, string>;
metaPath?: string;
inject?: Record<
string,
| { from: string; exclude?: string }
| { from: string; named: string; exclude?: string }
| { from: string; namespace: true; exclude?: string }
>;
};
};
hooks: JsHooks;
watch: boolean;
}
export function build(buildParams: BuildParams): object
export function build(buildParams: BuildParams): Promise<void>;

17

package.json
{
"name": "@okamjs/okam",
"version": "0.1.1",
"version": "0.1.2-dev.20231125.1",
"main": "index.js",

@@ -28,7 +28,10 @@ "types": "index.d.ts",

"build": "napi build --platform --release",
"build:mac:x86": "napi build --platform --release --target x86_64-apple-darwin",
"build:mac:aarch": "napi build --platform --release --target aarch64-apple-darwin",
"build:linux:x86": "napi build --platform --release --target x86_64-unknown-linux-gnu",
"postbuild": "npm run format:dts",
"build:mac:x86": "npm run build -- --target x86_64-apple-darwin",
"build:mac:aarch": "npm run build -- --target aarch64-apple-darwin",
"build:linux:x86": "npm run --ignore-scripts build -- --release --target x86_64-unknown-linux-gnu",
"build:debug": "napi build --platform",
"postbuild:debug": "npm run format:dts",
"prepublishOnly": "napi prepublish -t npm",
"format:dts": "rome format --write index.d.ts",
"test": "ava",

@@ -40,6 +43,6 @@ "universal": "napi universal",

"optionalDependencies": {
"@okamjs/okam-darwin-arm64": "0.1.1",
"@okamjs/okam-darwin-x64": "0.1.1",
"@okamjs/okam-linux-x64-gnu": "0.1.1"
"@okamjs/okam-darwin-arm64": "0.1.2-dev.20231125.1",
"@okamjs/okam-darwin-x64": "0.1.2-dev.20231125.1",
"@okamjs/okam-linux-x64-gnu": "0.1.2-dev.20231125.1"
}
}

@@ -67,5 +67,5 @@ import 'zx/globals';

await build_linux_binding();
await $`pnpm run format:dts`;
const duration = (Date.now() - start) / 1000;
console.log(`linux building done ${duration}`);
await $`pnpm run artifacts:local`;

@@ -72,0 +72,0 @@

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