@gorules/zen-engine 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +3 -5
  2. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -7,17 +7,15 @@ export interface ZenEvaluateOptions {
7
7
  maxDepth?: number
8
8
  trace?: boolean
9
9
  }
10
- export interface JsZenEngineOptions {
10
+ export interface ZenEngineOptions {
11
11
  loader?: (key: string) => Promise<Buffer>
12
12
  }
13
- export type JsZenDecision = ZenDecision
14
13
  export class ZenDecision {
15
14
  constructor()
16
- evaluate(context: any, opts?: JsZenEvaluateOptions | undefined | null): Promise<any>
15
+ evaluate(context: any, opts?: ZenEvaluateOptions | undefined | null): Promise<any>
17
16
  }
18
- export type JsZenEngine = ZenEngine
19
17
  export class ZenEngine {
20
- constructor(options?: JsZenEngineOptions | undefined | null)
18
+ constructor(options?: ZenEngineOptions | undefined | null)
21
19
  evaluate(key: string, context: any, opts?: ZenEvaluateOptions | undefined | null): Promise<any>
22
20
  createDecision(content: Buffer): ZenDecision
23
21
  getDecision(key: string): Promise<ZenDecision>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gorules/zen-engine",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "main": "index.js",
5
5
  "types": "./index.d.ts",
6
6
  "license": "MIT",
@@ -73,17 +73,17 @@
73
73
  "scripts": {
74
74
  "build": "napi build --platform --release --js index.js --dts index.d.ts",
75
75
  "build:debug": "napi build --platform --js index.js --dts index.d.ts",
76
- "test": "jest --forceExit",
76
+ "test": "jest",
77
77
  "artifacts": "napi artifacts -d ../../artifacts",
78
78
  "prepublishOnly": "napi prepublish",
79
79
  "version": "napi version"
80
80
  },
81
- "gitHead": "38972cce5cdb6093a5af86d6745ecef424e8a729",
81
+ "gitHead": "9037caaa9a97c1564080613f66f6be504d01ec09",
82
82
  "optionalDependencies": {
83
- "@gorules/zen-engine-darwin-x64": "0.3.0",
84
- "@gorules/zen-engine-linux-x64-gnu": "0.3.0",
85
- "@gorules/zen-engine-win32-x64-msvc": "0.3.0",
86
- "@gorules/zen-engine-linux-arm64-gnu": "0.3.0",
87
- "@gorules/zen-engine-darwin-arm64": "0.3.0"
83
+ "@gorules/zen-engine-darwin-x64": "0.3.2",
84
+ "@gorules/zen-engine-linux-x64-gnu": "0.3.2",
85
+ "@gorules/zen-engine-win32-x64-msvc": "0.3.2",
86
+ "@gorules/zen-engine-linux-arm64-gnu": "0.3.2",
87
+ "@gorules/zen-engine-darwin-arm64": "0.3.2"
88
88
  }
89
89
  }