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

@journeyapps/evaluator

Package Overview
Dependencies
Maintainers
2
Versions
266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@journeyapps/evaluator - npm Package Compare versions

Comparing version 0.0.0-dev.ae608c2.224c284 to 0.0.0-dev.d9b476e.1a9c1a7

7

dist/@types/src/FormatString.d.ts

@@ -5,6 +5,2 @@ import { TokenExpression } from './token-expressions/TokenExpression';

import { FormatStringScope } from './FormatStringScope';
export declare enum FormatStringOrigin {
CONTENT = "content",
ATTRIBUTE = "attribute"
}
/**

@@ -16,4 +12,3 @@ * Construct a new format string expression.

tokens: TokenExpression[];
origin: FormatStringOrigin;
constructor(expression: string, origin?: FormatStringOrigin);
constructor(expression: string);
toString(): string;

@@ -20,0 +15,0 @@ /**

4

dist/@types/src/tools.d.ts

@@ -5,3 +5,3 @@ import { TokenExpression } from './token-expressions/TokenExpression';

import { FormatShorthandTokenExpression } from './token-expressions/FormatShorthandTokenExpression';
import { FormatString, FormatStringOrigin } from './FormatString';
import { FormatString } from './FormatString';
import { TypeInterface } from './TypeInterface';

@@ -25,3 +25,3 @@ import { LegacyFunctionTokenExpression } from './token-expressions/LegacyFunctionTokenExpression';

*/
export declare function formatString(expression: string, origin?: FormatStringOrigin): FormatString | null;
export declare function formatString(expression: string): FormatString | null;
/**

@@ -28,0 +28,0 @@ # Construct a function token expression from a raw expression string.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tools_1 = require("./tools");
var FormatStringOrigin;
(function (FormatStringOrigin) {
FormatStringOrigin["CONTENT"] = "content";
FormatStringOrigin["ATTRIBUTE"] = "attribute";
})(FormatStringOrigin = exports.FormatStringOrigin || (exports.FormatStringOrigin = {}));
/**

@@ -13,6 +8,5 @@ * Construct a new format string expression.

class FormatString {
constructor(expression, origin = FormatStringOrigin.ATTRIBUTE) {
constructor(expression) {
this.expression = expression || '';
this.tokens = tools_1.compile(this.expression);
this.origin = origin;
}

@@ -19,0 +13,0 @@ toString() {

@@ -212,3 +212,3 @@ "use strict";

*/
function formatString(expression, origin = FormatString_1.FormatStringOrigin.ATTRIBUTE) {
function formatString(expression) {
if (expression == null) {

@@ -218,3 +218,3 @@ return null;

else {
return new FormatString_1.FormatString(expression, origin);
return new FormatString_1.FormatString(expression);
}

@@ -221,0 +221,0 @@ }

{
"name": "@journeyapps/evaluator",
"version": "0.0.0-dev.ae608c2.224c284",
"version": "0.0.0-dev.d9b476e.1a9c1a7",
"description": "Journey JS library",

@@ -14,3 +14,3 @@ "main": "./dist/src/index.js",

"dependencies": {
"@journeyapps/core-xml": "0.0.0-dev.ae608c2.224c284"
"@journeyapps/core-xml": "0.0.0-dev.d9b476e.1a9c1a7"
},

@@ -21,3 +21,3 @@ "files": [

],
"gitHead": "e1cedf0b9f9515cbca7436ed517e9bbdad9560b4"
"gitHead": "c155a42b0264e2bc424b82fc6f41e01ce5393108"
}

Sorry, the diff of this file is not supported yet

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