string-template-parser
Advanced tools
Comparing version
@@ -1,54 +0,2 @@ | ||
// Generated by dts-bundle v0.6.1 | ||
declare module 'string-template-parser' { | ||
export * from 'string-template-parser/parser'; | ||
export * from 'string-template-parser/evaluator'; | ||
} | ||
declare module 'string-template-parser/parser' { | ||
export interface Pipe { | ||
name: string; | ||
parameters: string[]; | ||
} | ||
export interface Variable { | ||
name: string; | ||
pipes: Pipe[]; | ||
} | ||
export interface ParsedString { | ||
literals: string[]; | ||
variables: Variable[]; | ||
} | ||
export const DEFAULT_QUOTED_STRING_REGEX: RegExp; | ||
export function parseStringTemplateGenerator({ESCAPE, VARIABLE_START, VARIABLE_END, PIPE_START, PIPE_PARAMETER_START, QUOTED_STRING, QUOTED_STRING_TEST, QUOTED_STRING_GET_AND_ADVANCE, QUOTED_STRING_IN_PARAMETER_TEST, QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE}?: { | ||
ESCAPE?: RegExp; | ||
VARIABLE_START?: RegExp; | ||
VARIABLE_END?: RegExp; | ||
PIPE_START?: RegExp; | ||
PIPE_PARAMETER_START?: RegExp; | ||
QUOTED_STRING?: RegExp; | ||
QUOTED_STRING_TEST?: (remainingString: string) => boolean | null; | ||
QUOTED_STRING_GET_AND_ADVANCE?: (remainingString: string, advance: (length: number) => void) => string | null; | ||
QUOTED_STRING_IN_PARAMETER_TEST?: (remainingString: string) => boolean | null; | ||
QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE?: (remainingString: string, advance: (length: number) => void) => string | null; | ||
}): (input: string) => ParsedString; | ||
export const parseStringTemplate: (input: string) => ParsedString; | ||
export function getQuotedStringAndAdvanceForRegex(regex: RegExp): (remainingString: string, advance: (length: number) => void) => string; | ||
} | ||
declare module 'string-template-parser/evaluator' { | ||
import { ParsedString } from 'string-template-parser/parser'; | ||
export interface PipeFunction { | ||
(variableValue: string, parameters: string[]): string; | ||
} | ||
export function evaluateParsedString(parsedString: ParsedString, variables: { | ||
[variableName: string]: string; | ||
}, pipes: { | ||
[pipeName: string]: PipeFunction; | ||
}): string; | ||
export function evaluateStringTemplate(input: string, variables: { | ||
[variableName: string]: string; | ||
}, pipes: { | ||
[pipeName: string]: PipeFunction; | ||
}): string; | ||
} | ||
export * from './parser'; | ||
export * from './evaluator'; |
{ | ||
"name": "string-template-parser", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Parsing & evaluating utilities for string templates", | ||
"repository": "https://github.com/souldreamer/string-template-parser.git", | ||
"main": "./dist/string-template-parser.js", | ||
"main": "./dist/index.js", | ||
"author": "Ionut Costica <ionut.costica@gmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"prepublish": "webpack --debug --clean; webpack -p", | ||
"prepublish": "tsc", | ||
"test": "tsc && nyc ava" | ||
@@ -15,16 +15,16 @@ }, | ||
"devDependencies": { | ||
"ava": "^0.16.0", | ||
"del": "^2.2.2", | ||
"delete-empty": "^0.1.3", | ||
"dts-bundle": "^0.6.1", | ||
"nyc": "^8.4.0", | ||
"ts-loader": "^1.1.0", | ||
"typescript": "next", | ||
"webpack": "^1.13.3", | ||
"webpack-node-externals": "^1.5.4", | ||
"ava": "^0.22.0", | ||
"del": "^3.0.0", | ||
"delete-empty": "^1.0.1", | ||
"dts-bundle": "^0.7.3", | ||
"nyc": "^11.2.1", | ||
"ts-loader": "^2.3.7", | ||
"typescript": "^2.5.2", | ||
"webpack": "^3.6.0", | ||
"webpack-node-externals": "^1.6.0", | ||
"webpack-progress-plugin": "^1.1.0", | ||
"yargs": "^6.3.0" | ||
"yargs": "^8.0.2", | ||
"@types/node": "^8.0.28" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^6.0.46" | ||
}, | ||
@@ -31,0 +31,0 @@ "ava": { |
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
0
-100%11
57.14%26548
-75.49%12
9.09%295
-22.77%1
Infinity%- Removed
- Removed