New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@journeyapps/evaluator

Package Overview
Dependencies
Maintainers
2
Versions
275
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.c97cb24.aa0a033

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() {

@@ -20,11 +20,3 @@ "use strict";

toString() {
return ('[object ' +
this.constructor.name +
' <' +
this.expression +
', ' +
this.start +
', ' +
this.format +
'>]');
return '[object ' + this.constructor.name + ' <' + this.expression + ', ' + this.start + ', ' + this.format + '>]';
}

@@ -31,0 +23,0 @@ async tokenEvaluatePromise(scope) {

@@ -35,4 +35,3 @@ "use strict";

toConstant(includeEscapeTags) {
if (typeof includeEscapeTags === 'undefined' ||
includeEscapeTags === null) {
if (typeof includeEscapeTags === 'undefined' || includeEscapeTags === null) {
includeEscapeTags = false;

@@ -54,2 +53,3 @@ }

}
exports.FunctionTokenExpression = FunctionTokenExpression;
/**

@@ -59,3 +59,2 @@ * Prefix for function token expressions.

FunctionTokenExpression.PREFIX = '$:';
exports.FunctionTokenExpression = FunctionTokenExpression;
//# sourceMappingURL=FunctionTokenExpression.js.map

@@ -17,9 +17,3 @@ "use strict";

toString() {
return ('[object ' +
this.constructor.name +
' <' +
this.expression +
', ' +
this.start +
'>]');
return '[object ' + this.constructor.name + ' <' + this.expression + ', ' + this.start + '>]';
}

@@ -26,0 +20,0 @@ isConstant() {

@@ -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.c97cb24.aa0a033",
"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.c97cb24.aa0a033"
},

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

],
"gitHead": "e1cedf0b9f9515cbca7436ed517e9bbdad9560b4"
"gitHead": "8ae168bc0a165bf87ef94d74456b0498d6201741"
}

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 not supported yet

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 not supported yet

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