Comparing version 1.1.1 to 1.2.0
@@ -1,2 +0,2 @@ | ||
export declare function dedent(templ: TemplateStringsArray | string, ...values: any[]): string; | ||
export declare function dedent(templ: TemplateStringsArray | string, ...values: unknown[]): string; | ||
export default dedent; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.dedent = void 0; | ||
function dedent(templ) { | ||
@@ -4,0 +5,0 @@ var values = []; |
@@ -7,2 +7,18 @@ # History | ||
## v1.2.0 | ||
Security update with dependency changes | ||
- Updated all dependencies to their latest version | ||
- Updated CI settings | ||
- Replaced tslint with typescript-eslint | ||
- Removed unused @types/node | ||
- Added lint to run with the test suite | ||
## v1.1.0 | ||
Security update with dependency changes | ||
- Updated all dependencies to their latest version | ||
## v1.0.0 | ||
@@ -12,2 +28,2 @@ | ||
* `function dedent(TemplateStringsArray | string, ...any[]): string | ||
- `function dedent(TemplateStringsArray | string, ...any[]): string |
{ | ||
"name": "ts-dedent", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "TypeScript package which smartly trims and strips indentation from multi-line strings", | ||
@@ -37,3 +37,5 @@ "author": "Tamino Martinius <dev@zaku.eu>", | ||
"coverage": "rm -rf coverage* && jest --coverage", | ||
"pretest": "npm run lint", | ||
"test": "jest", | ||
"lint": "eslint .", | ||
"watch": "tsc -w", | ||
@@ -45,14 +47,14 @@ "ci": "npm run coverage && codecov", | ||
"devDependencies": { | ||
"@types/jest": "^24.9.1", | ||
"@types/node": "^13.5.0", | ||
"codecov": "^3.6.2", | ||
"jest": "^25.1.0", | ||
"ts-jest": "^25.0.0", | ||
"tslint": "^6.0.0", | ||
"tslint-config-airbnb": "^5.11.2", | ||
"typescript": "^3.7.5" | ||
"@types/jest": "^26.0.14", | ||
"@typescript-eslint/eslint-plugin": "^4.2.0", | ||
"@typescript-eslint/parser": "^4.2.0", | ||
"codecov": "^3.7.2", | ||
"eslint": "^7.10.0", | ||
"jest": "^26.4.2", | ||
"ts-jest": "^26.4.0", | ||
"typescript": "~4.0.3" | ||
}, | ||
"jest": { | ||
"transform": { | ||
".ts": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
".ts": "ts-jest" | ||
}, | ||
@@ -59,0 +61,0 @@ "testRegex": "\\.(test|spec)\\.ts$", |
@@ -102,3 +102,4 @@ # TypeScript Dedent | ||
- `1.2.0` **2020-09-28** Updated dependencies and a couple of minor improvments | ||
- `1.1.0` **2019-07-26** Updated dependencies and fixed links in readme | ||
- `1.0.0` **2018-06-14** Initial release |
export function dedent( | ||
templ: TemplateStringsArray | string, | ||
...values: any[] | ||
...values: unknown[] | ||
): string { | ||
@@ -5,0 +5,0 @@ let strings = Array.from(typeof templ === 'string' ? [templ] : templ.raw); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
18164
469
105
0