@player-ui/player
Advanced tools
Comparing version 0.7.5--canary.432.14776 to 0.7.5--canary.434.14868
{ | ||
"name": "@player-ui/player", | ||
"version": "0.7.5--canary.432.14776", | ||
"version": "0.7.5--canary.434.14868", | ||
"main": "dist/cjs/index.cjs", | ||
"dependencies": { | ||
"@player-ui/partial-match-registry": "0.7.5--canary.432.14776", | ||
"@player-ui/make-flow": "0.7.5--canary.432.14776", | ||
"@player-ui/types": "0.7.5--canary.432.14776", | ||
"@player-ui/partial-match-registry": "0.7.5--canary.434.14868", | ||
"@player-ui/make-flow": "0.7.5--canary.434.14868", | ||
"@player-ui/types": "0.7.5--canary.434.14868", | ||
"@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", | ||
@@ -15,0 +19,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 { parseCustom } from "../../binding-grammar"; | ||
import { parseParsimmon } 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 = parseCustom(binding); | ||
const parsedBinding = parseParsimmon(binding); | ||
expect(parsedBinding.status).toBe(true); | ||
@@ -52,3 +52,3 @@ const actual = resolveBindingAST( | ||
test("works for nested keys", () => { | ||
const parsedBinding = parseCustom("foo.{{BASE_PATH}}.bar"); | ||
const parsedBinding = parseParsimmon("foo.{{BASE_PATH}}.bar"); | ||
expect(parsedBinding.status).toBe(true); | ||
@@ -70,3 +70,3 @@ | ||
test("evaluates expressions as paths", () => { | ||
const parsedBinding = parseCustom("foo.bar.`exp()`"); | ||
const parsedBinding = parseParsimmon("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
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
3209372
211
50338
1
0
17
+ Added@types/parsimmon@^1.10.0
+ Addedarr-flatten@^1.1.0
+ Addedebnf@^1.9.0
+ Addedparsimmon@^1.12.0
+ Added@player-ui/make-flow@0.7.5--canary.434.14868(transitive)
+ Added@player-ui/partial-match-registry@0.7.5--canary.434.14868(transitive)
+ Added@player-ui/types@0.7.5--canary.434.14868(transitive)
+ Added@types/parsimmon@1.10.9(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedebnf@1.9.1(transitive)
+ Addedparsimmon@1.18.1(transitive)
- Removed@player-ui/make-flow@0.7.5--canary.432.14776(transitive)
- Removed@player-ui/partial-match-registry@0.7.5--canary.432.14776(transitive)
- Removed@player-ui/types@0.7.5--canary.432.14776(transitive)
Updated@player-ui/partial-match-registry@0.7.5--canary.434.14868