Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@player-ui/player

Package Overview
Dependencies
Maintainers
2
Versions
294
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@player-ui/player - npm Package Compare versions

Comparing version 0.7.5--canary.432.14776 to 0.7.5--canary.434.14868

src/binding-grammar/ebnf/binding.ebnf

12

package.json
{
"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

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