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.c08ef4f.4ee7a4a to 0.0.0-dev.c31c553

./dist/src/index.js

3

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

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

export declare class FormatString {
static TYPE: string;
type: string;
expression: string;
tokens: TokenExpression[];
constructor(expression: string);
static isInstanceOf(val: any): val is FormatString;
toString(): string;

@@ -14,0 +17,0 @@ /**

6

dist/@types/src/TypeInterface.d.ts
export interface TypeInterface {
name: string;
options: object;
isPrimitiveType: boolean;
objectType?: TypeInterface;
getVariable(expression: string): any;
getVariableTypeAndNameWithParent(expression: string): any;
getType(expression: string): TypeInterface | null;
toJSON(): any;
stringify(): string;
format(value: any, format?: string): string;
options: object;
stringify(): string;
}

@@ -11,4 +11,8 @@ "use strict";

this.expression = expression || '';
this.tokens = tools_1.compile(this.expression);
this.tokens = (0, tools_1.compile)(this.expression);
this.type = FormatString.TYPE;
}
static isInstanceOf(val) {
return (val === null || val === void 0 ? void 0 : val.type) === FormatString.TYPE;
}
toString() {

@@ -40,3 +44,3 @@ return this.expression;

var expression = token.expression;
tools_1.extract(type, expression, result, depth);
(0, tools_1.extract)(type, expression, result, depth);
}

@@ -173,3 +177,3 @@ }

const type = scope.getExpressionType(expression);
const text = tools_1.formatValue(value, type, token.format);
const text = (0, tools_1.formatValue)(value, type, token.format);
result += text;

@@ -183,2 +187,3 @@ }

exports.FormatString = FormatString;
FormatString.TYPE = 'format-string';
//# sourceMappingURL=FormatString.js.map
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -10,3 +14,3 @@ if (k2 === undefined) k2 = k;

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -13,0 +17,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

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

const type = scope.getExpressionType(expression);
return tools_1.formatValueAsync(value, type, this.format);
return (0, tools_1.formatValueAsync)(value, type, this.format);
}

@@ -33,0 +33,0 @@ }

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

const type = scope.getExpressionType(expression);
return tools_1.formatValueAsync(value, type, this.format);
return (0, tools_1.formatValueAsync)(value, type, this.format);
}

@@ -26,0 +26,0 @@ }

{
"name": "@journeyapps/evaluator",
"version": "0.0.0-dev.c08ef4f.4ee7a4a",
"description": "Journey JS library",
"version": "0.0.0-dev.c31c553",
"description": "Journey Evaluator library",
"main": "./dist/src/index.js",
"typings": "./dist/@types/src/index",
"scripts": {
"build": "../node_modules/.bin/tsc --build",
"test": "yarn build && yarn test:node && yarn test:browser",
"test:browser": "karma start karma.conf.js --single-run",
"test:node": "jasmine dist/test/unit/all.js"
},
"dependencies": {
"@journeyapps/core-xml": "0.0.0-dev.c08ef4f.4ee7a4a"
"@journeyapps/core-xml": "0.0.0-dev.c31c553"
},

@@ -20,3 +14,11 @@ "files": [

],
"gitHead": "2b90a2ed69fc44a486511e9ccede07aaf8753d53"
}
"devDependencies": {
"@journeyapps/core-test-helpers": "^0.0.0-dev.c31c553"
},
"scripts": {
"build": "../node_modules/.bin/tsc --build",
"test": "pnpm build && pnpm test:node && pnpm test:browser",
"test:browser": "karma start karma.conf.js --single-run",
"test:node": "jasmine dist/test/unit/all.js"
}
}

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

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