Comparing version 2.2.0 to 2.3.0
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"license": "0BSD", | ||
@@ -8,0 +8,0 @@ "description": "Runtime library for TypeScript helper functions", |
@@ -139,3 +139,13 @@ # tslib | ||
## Deployment | ||
- Choose your new version number | ||
- Set it in `package.json` and `bower.json` | ||
- Create a tag: `git tag [version]` | ||
- Push the tag: `git push --tags` | ||
- Create a [release in GitHub](https://github.com/microsoft/tslib/releases) | ||
- Run the [publish to npm](https://github.com/microsoft/tslib/actions?query=workflow%3A%22Publish+to+NPM%22) workflow | ||
Done. | ||
# Contribute | ||
@@ -142,0 +152,0 @@ |
@@ -30,3 +30,3 @@ /*! ***************************************************************************** | ||
export declare function __spreadArrays(...args: any[][]): any[]; | ||
export declare function __spreadArray(to: any[], from: any[]): any[]; | ||
export declare function __spreadArray(to: any[], from: any[], pack?: boolean): any[]; | ||
export declare function __await(v: any): any; | ||
@@ -33,0 +33,0 @@ export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; |
@@ -165,6 +165,10 @@ /*! ***************************************************************************** | ||
export function __spreadArray(to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
export function __spreadArray(to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || from); | ||
} | ||
@@ -171,0 +175,0 @@ |
12
tslib.js
@@ -206,6 +206,10 @@ /*! ***************************************************************************** | ||
__spreadArray = function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
__spreadArray = function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || from); | ||
}; | ||
@@ -212,0 +216,0 @@ |
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
39032
670
165