payid 0.1.2 → 0.1.3

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.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "payid",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "dependencies": {
9
- "@payid/rule-engine": "git+https://github.com/Mad1Duck/payid.git#master:packages/rule-engine",
10
- "@payid/types": "git+https://github.com/Mad1Duck/payid.git#master:packages/types",
11
- "ethers": "^6.16.0"
9
+ "ethers": "^6.16.0",
10
+ "payid-rule-engine": "^0.1.1",
11
+ "payid-types": "^0.1.1"
12
12
  },
13
13
  "scripts": {
14
14
  "build": "bun build src/index.ts --outdir dist --target node"
package/src/evaluate.ts CHANGED
@@ -1,7 +1,7 @@
1
- import type { RuleContext, RuleResult, RuleConfig } from "@payid/types";
2
- import { executeRule } from "@payid/rule-engine";
1
+ import type { RuleContext, RuleResult, RuleConfig } from "payid-types";
2
+ import { executeRule } from "payid-rule-engine";
3
3
  import { normalizeContext } from "./normalize";
4
- import { preprocessContextV2 } from "@payid/rule-engine";
4
+ import { preprocessContextV2 } from "payid-rule-engine";
5
5
 
6
6
  export async function evaluate(
7
7
  wasmBinary: Buffer,
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { PayID } from "./payid";
2
- export type { RuleContext, RuleResult, RuleConfig } from "@payid/types";
2
+ export type { RuleContext, RuleResult, RuleConfig } from "payid-types";
3
3
  export type { DecisionProof } from "./decision-proof/types";
package/src/normalize.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { RuleContext } from "@payid/types";
1
+ import type { RuleContext } from "payid-types";
2
2
 
3
3
  export function normalizeContext(ctx: RuleContext): RuleContext {
4
4
  return {
package/src/payid.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { RuleContext, RuleResult, RuleConfig } from "@payid/types";
1
+ import type { RuleContext, RuleResult, RuleConfig } from "payid-types";
2
2
  import { evaluate as evaluatePolicy } from "./evaluate";
3
3
  import { generateDecisionProof } from "./decision-proof/generate";
4
4
  import { resolveRule } from "./resolver/resolver";