@pkgr/utils
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [0.3.2](https://github.com/rx-ts/pkgr/compare/@pkgr/utils@0.3.1...@pkgr/utils@0.3.2) (2019-11-03) | ||
### Bug Fixes | ||
* **rollup:** support `external` alias and single string type ([c4e21be](https://github.com/rx-ts/pkgr/commit/c4e21be1d701ec940f59549f910064326b6ec156)) | ||
## [0.3.1](https://github.com/rx-ts/pkgr/compare/@pkgr/utils@0.3.0...@pkgr/utils@0.3.1) (2019-11-03) | ||
@@ -8,0 +19,0 @@ |
@@ -18,2 +18,3 @@ export declare const tryPkg: (pkg: string) => string | undefined; | ||
export declare const findUp: (searchEntry: string, searchFile?: string) => string; | ||
export declare const arrayify: <T, R = T extends (infer S)[] ? S : T>(...args: T[]) => R[]; | ||
//# sourceMappingURL=helpers.d.ts.map |
@@ -84,2 +84,12 @@ "use strict"; | ||
}; | ||
exports.arrayify = function () { | ||
var args = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
args[_i] = arguments[_i]; | ||
} | ||
return args.reduce(function (arr, curr) { | ||
arr.push.apply(arr, (Array.isArray(curr) ? curr : [curr])); | ||
return arr; | ||
}, []); | ||
}; | ||
//# sourceMappingURL=helpers.js.map |
{ | ||
"name": "@pkgr/utils", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Shared utils for `@pkgr` packages or any package else", | ||
@@ -27,3 +27,3 @@ "repository": "git+https://github.com/rx-ts/pkgr.git", | ||
"sideEffects": false, | ||
"gitHead": "7e75de4d3975211ae657cd47f65193372ce5defa" | ||
"gitHead": "e9b04193f4a4689f34e9ea8baf48f4099d00f3ec" | ||
} |
Sorry, the diff of this file is not supported yet
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
27840
276