@player-ui/player
Advanced tools
Comparing version 0.8.0-next.0 to 0.8.0-next.1
{ | ||
"name": "@player-ui/player", | ||
"version": "0.8.0-next.0", | ||
"version": "0.8.0-next.1", | ||
"main": "dist/cjs/index.cjs", | ||
"dependencies": { | ||
"@player-ui/partial-match-registry": "0.8.0-next.0", | ||
"@player-ui/make-flow": "0.8.0-next.0", | ||
"@player-ui/types": "0.8.0-next.0", | ||
"@player-ui/partial-match-registry": "0.8.0-next.1", | ||
"@player-ui/make-flow": "0.8.0-next.1", | ||
"@player-ui/types": "0.8.0-next.1", | ||
"@types/dlv": "^1.1.4", | ||
"@types/parsimmon": "^1.10.0", | ||
"arr-flatten": "^1.1.0", | ||
"dequal": "^2.0.2", | ||
"dlv": "^1.1.3", | ||
"ebnf": "^1.9.0", | ||
"error-polyfill": "^0.1.3", | ||
"p-defer": "^3.0.0", | ||
"parsimmon": "^1.12.0", | ||
"queue-microtask": "^1.2.3", | ||
@@ -19,0 +15,0 @@ "tapable-ts": "^0.2.3", |
@@ -9,4 +9,4 @@ import { describe, test, expect } from "vitest"; | ||
import type { ParserSuccessResult, ParserFailureResult } from "../ast"; | ||
import { parse as parseParsimmon } from "../parsimmon"; | ||
import { parse as parseEBNF } from "../ebnf"; | ||
import { parse as parseParsimmon } from "./parsimmon"; | ||
import { parse as parseEBNF } from "./ebnf"; | ||
import { parse as parseCustom } from "../custom"; | ||
@@ -13,0 +13,0 @@ |
export * from "./ast"; | ||
export { parse as parseParsimmon } from "./parsimmon"; | ||
export { parse as parseEBNF } from "./ebnf"; | ||
export { parse as parseCustom } from "./custom"; |
import { describe, test, expect, vitest } from "vitest"; | ||
import get from "dlv"; | ||
import type { ParserSuccessResult } from "../../binding-grammar"; | ||
import { parseParsimmon } from "../../binding-grammar"; | ||
import { parseCustom } from "../../binding-grammar"; | ||
import { resolveBindingAST } from "../resolver"; | ||
@@ -36,3 +36,3 @@ import { getBindingSegments } from "../utils"; | ||
test.each(testCases)("Resolving binding: %s", (binding, expectedResolved) => { | ||
const parsedBinding = parseParsimmon(binding); | ||
const parsedBinding = parseCustom(binding); | ||
expect(parsedBinding.status).toBe(true); | ||
@@ -52,3 +52,3 @@ const actual = resolveBindingAST( | ||
test("works for nested keys", () => { | ||
const parsedBinding = parseParsimmon("foo.{{BASE_PATH}}.bar"); | ||
const parsedBinding = parseCustom("foo.{{BASE_PATH}}.bar"); | ||
expect(parsedBinding.status).toBe(true); | ||
@@ -70,3 +70,3 @@ | ||
test("evaluates expressions as paths", () => { | ||
const parsedBinding = parseParsimmon("foo.bar.`exp()`"); | ||
const parsedBinding = parseCustom("foo.bar.`exp()`"); | ||
@@ -73,0 +73,0 @@ const evaluate = vitest.fn().mockReturnValue(100); |
export * from "./ast"; | ||
export { parse as parseParsimmon } from "./parsimmon"; | ||
export { parse as parseEBNF } from "./ebnf"; | ||
export { parse as parseCustom } from "./custom"; | ||
//# sourceMappingURL=index.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13
0
2853973
208
46479
2
+ Added@player-ui/make-flow@0.8.0-next.1(transitive)
+ Added@player-ui/partial-match-registry@0.8.0-next.1(transitive)
+ Added@player-ui/types@0.8.0-next.1(transitive)
- Removed@types/parsimmon@^1.10.0
- Removedarr-flatten@^1.1.0
- Removedebnf@^1.9.0
- Removedparsimmon@^1.12.0
- Removed@player-ui/make-flow@0.8.0-next.0(transitive)
- Removed@player-ui/partial-match-registry@0.8.0-next.0(transitive)
- Removed@player-ui/types@0.8.0-next.0(transitive)
- Removed@types/parsimmon@1.10.9(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedebnf@1.9.1(transitive)
- Removedparsimmon@1.18.1(transitive)