@magicspace/utils
Advanced tools
Comparing version 0.2.32 to 0.2.34
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./object"), exports); | ||
tslib_1.__exportStar(require("./string"), exports); | ||
tslib_1.__exportStar(require("./package"), exports); | ||
tslib_1.__exportStar(require("./logger"), exports); | ||
tslib_1.__exportStar(require("./array"), exports); | ||
(0, tslib_1.__exportStar)(require("./object"), exports); | ||
(0, tslib_1.__exportStar)(require("./string"), exports); | ||
(0, tslib_1.__exportStar)(require("./package"), exports); | ||
(0, tslib_1.__exportStar)(require("./logger"), exports); | ||
(0, tslib_1.__exportStar)(require("./array"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -5,7 +5,17 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
const chalk_1 = (0, tslib_1.__importDefault)(require("chalk")); | ||
class Logger { | ||
constructor(name) { | ||
this.name = name; | ||
this.prefix = `[${this.name}] `; | ||
Object.defineProperty(this, "name", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: name | ||
}); | ||
Object.defineProperty(this, "prefix", { | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
value: `[${this.name}] ` | ||
}); | ||
} | ||
@@ -12,0 +22,0 @@ info(message) { |
@@ -5,7 +5,7 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const lodash_1 = tslib_1.__importDefault(require("lodash")); | ||
const Micromatch = tslib_1.__importStar(require("micromatch")); | ||
const lodash_1 = (0, tslib_1.__importDefault)(require("lodash")); | ||
const Micromatch = (0, tslib_1.__importStar)(require("micromatch")); | ||
const array_1 = require("./array"); | ||
function extendObjectProperties(object = {}, extension, { after: afterPattern, before: beforePattern, replace: toReplace = true, } = {}) { | ||
let entries = array_1.addElementsToSequentialArray(Object.entries(object), Object.entries(extension), { | ||
let entries = (0, array_1.addElementsToSequentialArray)(Object.entries(object), Object.entries(extension), { | ||
getKey([key]) { | ||
@@ -12,0 +12,0 @@ return key; |
@@ -5,4 +5,4 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const latest_version_1 = tslib_1.__importDefault(require("latest-version")); | ||
const lodash_1 = tslib_1.__importDefault(require("lodash")); | ||
const latest_version_1 = (0, tslib_1.__importDefault)(require("latest-version")); | ||
const lodash_1 = (0, tslib_1.__importDefault)(require("lodash")); | ||
const _logger_1 = require("./@logger"); | ||
@@ -16,3 +16,3 @@ async function fetchPackageVersions(versionRangeDict) { | ||
name, | ||
`^${await latest_version_1.default(name, { version: versionRange })}`, | ||
`^${await (0, latest_version_1.default)(name, { version: versionRange })}`, | ||
]))); | ||
@@ -19,0 +19,0 @@ } |
@@ -5,3 +5,3 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const Micromatch = tslib_1.__importStar(require("micromatch")); | ||
const Micromatch = (0, tslib_1.__importStar)(require("micromatch")); | ||
const array_1 = require("./array"); | ||
@@ -16,3 +16,3 @@ function extendPackageScript(script, commands, { after: afterPattern, before: beforePattern } = {}) { | ||
let existingCommands = script.split('&&').map(command => command.trim()); | ||
return array_1.addElementsToSequentialArray(existingCommands, commands, { | ||
return (0, array_1.addElementsToSequentialArray)(existingCommands, commands, { | ||
isAfterAnchor: afterPattern | ||
@@ -19,0 +19,0 @@ ? command => Micromatch.isMatch(command, afterPattern) |
{ | ||
"name": "@magicspace/utils", | ||
"version": "0.2.32", | ||
"version": "0.2.34", | ||
"publishConfig": { | ||
@@ -23,3 +23,3 @@ "access": "public" | ||
"tslang": "^0.1.22", | ||
"tslib": "^2.0.3" | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -32,3 +32,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "ca4b744f4313bc552ad4431de6b07958b2bd6fe7" | ||
"gitHead": "6bb9ee397bc93299fa1885eab198970421efebfe" | ||
} |
@@ -29,3 +29,3 @@ import _ from 'lodash'; | ||
T extends object, | ||
TExtension extends object | ||
TExtension extends object, | ||
>( | ||
@@ -32,0 +32,0 @@ object: T | undefined, |
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
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
34091
698
Updatedtslib@^2.3.1