@icon-magic/icon-models
Advanced tools
Comparing version 2.2.0-beta.0 to 2.2.1-beta.0
@@ -10,2 +10,4 @@ import { AssetConfig, Content } from './interface'; | ||
iconPath: string; | ||
buildSourceHash?: string; | ||
generateSourceHash?: string; | ||
protected path: string; | ||
@@ -12,0 +14,0 @@ private LOGGER; |
@@ -21,3 +21,3 @@ "use strict"; | ||
if (!path.isAbsolute(iconPath)) { | ||
throw new Error('AssetCreationError: iconPath must always be absolute: ${iconPath)'); | ||
throw new Error(`AssetCreationError: iconPath must always be absolute: ${iconPath}`); | ||
} | ||
@@ -34,2 +34,9 @@ this.iconPath = iconPath; | ||
} | ||
// if a source has is passed in, set it on the asset's config | ||
if (config.buildSourceHash) { | ||
this.buildSourceHash = config.buildSourceHash; | ||
} | ||
if (config.generateSourceHash) { | ||
this.generateSourceHash = config.generateSourceHash; | ||
} | ||
this.LOGGER.debug(`Asset ${this.name} created in ${this.iconPath}`); | ||
@@ -53,6 +60,13 @@ } | ||
getAssetConfig() { | ||
return { | ||
const config = { | ||
name: this.name, | ||
path: this.path | ||
path: this.path, | ||
}; | ||
if (this.buildSourceHash) { | ||
config.buildSourceHash = this.buildSourceHash; | ||
} | ||
if (config.generateSourceHash) { | ||
this.generateSourceHash = config.generateSourceHash; | ||
} | ||
return config; | ||
} | ||
@@ -72,2 +86,2 @@ /** | ||
exports.Asset = Asset; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXNzZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQ0FBb0Q7QUFDcEQsNkJBQTZCO0FBRzdCLHlDQUFnRDtBQUVoRDs7O0dBR0c7QUFDSCxNQUFhLEtBQUs7SUFPaEI7Ozs7O09BS0c7SUFDSCxZQUFZLFFBQWdCLEVBQUUsTUFBbUI7UUFDL0MsSUFBSSxDQU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ZVNvdXJjZUhhc2g7XG4gICAgfVxuICAgIHJldHVybiBjb25maWc7XG4gIH1cblxuICAvKipcbiAgICogUmV0dXJucyB0aGUgY29udGVudCBzdG9yZWQgaW4gdGhlIHBhdGggb2YgdGhpcyBhc3NldFxuICAgKi9cbiAgYXN5bmMgZ2V0Q29udGVudHMoKTogUHJvbWlzZTxDb250ZW50PiB7XG4gICAgLy8gaWYgaXQgaXNuJ3QgYWxyZWFkeSByZXRyaWV2ZWQsIHJlYWQgdGhlIGZpbGUgZnJvbSBkaXNrXG4gICAgaWYgKCF0aGlzLmNvbnRlbnRzKSB7XG4gICAgICB0aGlzLkxPR0dFUi5kZWJ1ZyhcbiAgICAgICAgYFJlYWRpbmcgJHt0aGlzLmdldFBhdGgoKX0ncyBmaWxlIGNvbnRlbnRzIGZyb20gdGhlIGRpc2tgXG4gICAgICApO1xuICAgICAgdGhpcy5jb250ZW50cyA9IGF3YWl0IGdldEZpbGVDb250ZW50cyh0aGlzLmdldFBhdGgoKSk7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLmNvbnRlbnRzO1xuICB9XG59XG4iXX0= |
@@ -19,2 +19,3 @@ "use strict"; | ||
constructor(iconPath, config) { | ||
// only flavors have a sourceHash | ||
super(iconPath, config); | ||
@@ -58,2 +59,4 @@ if (config.types) { | ||
path: `./${path.relative(this.iconPath, this.getPath())}`, | ||
buildSourceHash: this.buildSourceHash, | ||
generateSourceHash: this.generateSourceHash, | ||
types: flavorTypes | ||
@@ -64,2 +67,2 @@ }; | ||
exports.Flavor = Flavor; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxhdm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ZsYXZvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUU3QixtQ0FBZ0M7QUFHaEM7Ozs7O0dBS0c7QUFDSCxNQUF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GggZmxhdm9yIGRhdGEgdGhhdCBuZWVkcyB0byBiZSBzdG9yZWQgYW5kXG4gICAqIEByZXR1cm5zIEZsYXZvckNvbmZpZyBvYmplY3QgdG8gYmUgc2V0IGFzIHRoZSBjb25maWdcbiAgICovXG4gIGdldENvbmZpZygpOiBGbGF2b3JDb25maWcge1xuICAgIGxldCBmbGF2b3JUeXBlcztcbiAgICAvLyByZXR1cm4gb25seSBmbGF2b3IgZGF0YVxuICAgIGlmICh0aGlzLnR5cGVzKSB7XG4gICAgICBmbGF2b3JUeXBlcyA9IHt9O1xuICAgICAgZm9yIChjb25zdCBba2V5LCBhc3NldF0gb2YgdGhpcy50eXBlcykge1xuICAgICAgICBmbGF2b3JUeXBlc1trZXldID0gYXNzZXQuZ2V0QXNzZXRDb25maWcoKTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHtcbiAgICAgIG5hbWU6IHRoaXMubmFtZSxcbiAgICAgIHBhdGg6IGAuLyR7cGF0aC5yZWxhdGl2ZSh0aGlzLmljb25QYXRoLCB0aGlzLmdldFBhdGgoKSl9YCxcbiAgICAgIGJ1aWxkU291cmNlSGFzaDogdGhpcy5idWlsZFNvdXJjZUhhc2gsXG4gICAgICBnZW5lcmF0ZVNvdXJjZUhhc2g6IHRoaXMuZ2VuZXJhdGVTb3VyY2VIYXNoLFxuICAgICAgdHlwZXM6IGZsYXZvclR5cGVzXG4gICAgfTtcbiAgfVxufVxuIl19 |
@@ -141,2 +141,2 @@ "use strict"; | ||
exports.Icon = Icon; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pY29uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW9EO0FBQ3BELDZCQUE2QjtBQUU3QixtQ0FBZ0M7QUFDaEMscUNBQWtDO0FBV2xDLHlD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4gICAgICAgIGNvbnN0IHZhcmlhbnRBc3NldCA9IG5ldyBBc3NldChjb25maWcuaWNvblBhdGgsIHZhcmlhbnQpO1xuXG4gICAgICAgIC8vIG9ubHkgY2hlY2sgdGhlIHZhcmlhbnRzIGlmIHRoZSBmbGFnIGlzIHRydWVcbiAgICAgICAgaWYgKCFza2lwVmFyaWFudENoZWNrKSB7XG4gICAgICAgICAgLy8gY2hlY2sgdG8gc2VlIGlmIHRoZSBmaWxlIGV4aXN0c1xuICAgICAgICAgIGlmICghZXhpc3RzKHZhcmlhbnRBc3NldC5nZXRQYXRoKCkpKSB7XG4gICAgICAgICAgICB0aGlzLkxPR0dFUi5lcnJvcihcbiAgICAgICAgICAgICAgYE1pc3NpbmdWYXJpYW50RXJyb3I6IFZhcmlhbnQgJHt2YXJpYW50QXNzZXQuZ2V0UGF0aCgpfSBtaXNzaW5nIGZvciBpY29uICR7XG4gICAgICAgICAgICAgICAgdGhpcy5pY29uUGF0aFxuICAgICAgICAgICAgICB9YFxuICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC8vIGNoZWNrIHRoYXQgdGhlIGFzc2V0IGlzIGFuIHN2ZyBmaWxlXG4gICAgICAgICAgaWYgKCFpc1R5cGVTVkcodmFyaWFudEFzc2V0LmdldFBhdGgoKSkpIHtcbiAgICAgICAgICAgIHRoaXMuTE9HR0VSLmVycm9yKFxuICAgICAgICAgICAgICBgSW52YWxpZFZhcmlhbnRFcnJvcjogVmFyaWFudCAke3ZhcmlhbnRBc3NldC5nZXRQYXRoKCl9IG9mICR7XG4gICAgICAgICAgICAgICAgdGhpcy5pY29uUGF0aFxuICAgICAgICAgICAgICB9IHNob3VsZCBiZSBhbiBTVkcgZmlsZWBcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICB2YXJpYW50cy5wdXNoKHZh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YW50cyBpZiB0aGUgZmxhZyBpcyB0cnVlXG4gICAgICAgIGlmICghc2tpcFZhcmlhbnRDaGVjaykge1xuICAgICAgICAgIC8vIGNoZWNrIHRvIHNlZSBpZiB0aGUgZmlsZSBleGlzdHNcbiAgICAgICAgICBpZiAoIWV4aXN0cyh2YXJpYW50QXNzZXQuZ2V0UGF0aCgpKSkge1xuICAgICAgICAgICAgdGhpcy5MT0dHRVIuZXJyb3IoXG4gICAgICAgICAgICAgIGBNaXNzaW5nVmFyaWFudEVycm9yOiBWYXJpYW50ICR7dmFyaWFudEFzc2V0LmdldFBhdGgoKX0gbWlzc2luZyBmb3IgaWNvbiAke1xuICAgICAgICAgICAgICAgIHRoaXMuaWNvblBhdGhcbiAgICAgICAgICAgICAgfWBcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAvLyBjaGVjayB0aGF0IHRoZSBhc3NldCBpcyBhbiBzdmcgZmlsZVxuICAgICAgICAgIGlmICghaXNUeXBlU1ZHKHZhcmlhbnRBc3NldC5nZXRQYXRoKCkpKSB7XG4gICAgICAgICAgICB0aGlzLkxPR0dFUi5lcnJvcihcbiAgICAgICAgICAgICAgYEludmFsaWRWYXJpYW50RXJyb3I6IFZhcmlhbnQgJHt2YXJpYW50QXNzZXQuZ2V0UGF0aCgpfSBvZiAke1xuICAgICAgICAgICAgICAgIHRoaXMuaWNvblBhdGhcbiAgICAgICAgICAgICAgfSBzaG91bGQgYmUgYW4gU1ZHIGZpbGVgXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgdmFyaWFudHMucHVzaCh2YXJpYW50QXNzZXQpO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIGlmIHRoZXJlIGFyZSBubyB2YWxpZCB2YXJpYW50cywgdGhyb3cgYW4gZXJyb3JcbiAgICBpZiAoIXZhcmlhbnR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gICBpZiAodGhpcy5jYXRlZ29yeSkge1xuICAgICAgY29uZmlnLmNhdGVnb3J5ID0gdGhpcy5jYXRlZ29yeTtcbiAgICB9XG4gICAgaWYgKHRoaXMubWV0YWRhdGEpIHtcbiAgICAgIGNvbmZpZy5tZXRhZGF0YSA9IHRoaXMubWV0YWRhdGE7XG4gICAgfVxuICAgIGlmICh0aGlzLmJ1aWxkKSB7XG4gICAgICBjb25maWcuYnVpbGQgPSB0aGlzLmJ1aWxkO1xuICAgIH1cbiAgICBpZiAodGhpcy5nZW5lcmF0ZSkge1xuICAgICAgY29uZmlnLmdlbmVyYXRlID0gdGhpcy5nZW5lcmF0ZTtcbiAgICB9XG4gICAgaWYgKHRoaXMuZGlzdHJpYnV0ZSkge1xuICAgICAgY29uZmlnLmRpc3RyaWJ1dGUgPSB0aGlzLmRpc3RyaWJ1dGU7XG4gICAgfVxuXG4gICAgLy8gcmV0dXJuIHRoZSBvYmplY3RcbiAgICByZXR1cm4gY29uZmlnO1xuICB9XG59XG4iXX0= |
@@ -8,1 +8,2 @@ export { Asset } from './asset'; | ||
export * from './utils/files'; | ||
export * from './utils/hash'; |
@@ -17,2 +17,3 @@ "use strict"; | ||
__export(require("./utils/files")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxpQ0FBZ0M7QUFBdkIsd0JBQUEsS0FBSyxDQUFBO0FBQ2QsbUNBQWtDO0FBQXpCLDBCQUFBLE1BQU0sQ0FBQTtBQUNmLCtCQUE4QjtBQUFyQixzQkFBQSxJQUFJLENBQUE7QUFDYix1Q0FBcUM7QUFBNUIsNkJBQUEsT0FBTyxDQUFBO0FBRWhCLG1EQUF1RDtBQUE5QywrQ0FBQSxtQkFBbUIsQ0FBQTtBQ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uXG5leHBvcnQgeyBhcHBseVBsdWdpbnNPbkFzc2V0IH0gZnJvbSAnLi9wbHVnaW4tbWFuYWdlcic7XG5leHBvcnQgKiBmcm9tICcuL2ludGVyZmFjZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vdXRpbHMvZmlsZXMnO1xuZXhwb3J0ICogZnJvbSAnLi91dGlscy9oYXNoJztcbiJdfQ== |
@@ -16,2 +16,4 @@ /// <reference types="node" /> | ||
contents?: Content; | ||
buildSourceHash?: string; | ||
generateSourceHash?: string; | ||
} | ||
@@ -18,0 +20,0 @@ interface SVGOptions { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSWNvbiB9IGZyb20gJy4nO1xuaW1wb3J0IHsgQXNzZXQgfSBmcm9tICcuL2Fzc2V0JztcbmltcG9ydCB7IEZsYXZvciB9IGZyb20gJy4vZmxhdm9yJztcblxuaW50ZXJmYWNlIFdpZHRoSGVpZ2h0IHtcbiAgd2lkdGg6IG51bWJlcjtcbiAgaGVpZ2h0OiBudW1iZXI7XG59XG5cbmV4cG9ydCB0eXBlIEFzc2V0U2l6ZSA9IG51bWJlciB8IFdpZHRoSGVpZ2h0O1xuZXhwb3J0IHR5cGUgQXNzZXRSZXNvbHV0aW9uID0gbnVtYmVyO1xuZXhwb3J0IHR5cGUgQ29udGVudCA9IEJ1ZmZlciB8IHN0cmluZztcblxuZXhwb3J0IGludGVyZmFjZSBBc3NldENvbmZpZyB7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIHBhdGg6IHN0cmluZztcbiAgY29udGVudHM/OiBDb250ZW50O1xufVxu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LFxuICAgICAgICBhc3NldCxcbiAgICAgICAgaWNvbixcbiAgICAgICAgcGx1Z2luLnBhcmFtc1xuICAgICAgKTtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICBMT0dHRVIuZXJyb3IoXG4gICAgICAgIGBQbHVnaW5FcnJvcjogRXJyb3Igd2hpbGUgcnVubmluZyAke3BsdWdpbi5uYW1lfSBvbiAke2ljb24uaWNvblBhdGh9YFxuICAgICAgKTtcbiAgICAgIExPR0dFUi5lcnJvcihlKTtcbiAgICB9XG4gICAgaWYgKHBsdWdpbk91dHB1dCkge1xuICAgICAgb3V0cHV0ID0gb3V0cHV0LmNvbmNhdChwbHVnaW5PdXRwdXQpO1xuICAgIH1cbiAgfVxuXG4gIGNvbnN0IHByb21pc2VzID0gW107XG4gIGlmIChwbHVnaW4ud3JpdGVUb091dHB1dCkge1xuICAgIGZvciAoY29uc3Qgb3V0cHV0Rmxhdm9yIG9mIG91dHB1dCkge1xuICAgICAgaWYgKG91dHB1dEZsYXZvci5jb250ZW50cykge1xuICAgICAgICBwcm9taXNlcy5wdXNoKFxuICAgICAgICAgIHNhdmVDb250ZW50VG9GaWxlKFxuICAgICAgICAgICAgcGF0aC5qb2luKGljb24uaWNvblBhdGgsICd0bXAnKSxcbiAgICAgICAgICAgIG91dHB1dEZsYXZvci5uYW1lLFxuICAgICAgICAgICAgb3V0cHV0Rmxhdm9yLmNvbnRlbnRzLFxuICAgICAgICAgICAgJ3N2ZydcbiAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIGF3YWl0IFByb21pc2UuYWxsKHByb21pc2VzKTtcbiAgcmV0dXJuIG91dHB1dDtcbn1cblxuLyoqXG4gKiBBIHV0aWwgdG8gZ28gdGhyb3VnaCB0aGUgaWNvbiwgbG9jYXRlIHRoZSBpdGVyYW50c1xuICogQHBhcmFtIGljb24gdGhlIG9iamVjdCBjb250YWluaW5nIHRoZSBpdGVyYW50c1xuICogQHBhcmFtIGl0ZXJhbnRzIHRoZSBzZXQgb2YgcHJvcGVydGllcyBvbiB0aGUgaWNvbiBvbiB3aG9zZSB2YWx1ZXMgdGhlIHBsdWdpblxuICogbmVlZHMgdG8gaXRlcmF0ZVxuICogQHJldHVybnMgYW4gYXJyYXkgb2Ygb2JqZWN0cywgd2hlcmUgdGhlIGtleXMgYXJlIHRoZSBpdGVyYW50IG5hbWVzIGFuZCB2YWx1ZXNcbiAqIGFyZSBpdGVyYW50IHZhbHVlc1xuICovXG5leHBvcnQgZnVuY3Rpb24gZ2V0QWxsUHJvcENvbWJpbmF0aW9ucyhpY29uOiBJY29uLCBpdGVyYW50czogSXRlcmFudCkge1xuICBjb25zdCBwcm9wcyA9IHt9O1xuICBmb3IgKGNvbnN0IGl0ZXJhbnQgb2YgaXRlcmFudHMpIHtcbiAgICBpZiAoIWljb24uaGFzT3duUHJvcGVydHkoaXRlcmFudCkpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgYENvdWxkIG5vdCBmaW5kICR7aXRlcmFudH0gaW4gdGhlIGNvbmZpZyBmaWxlIG9mICR7aWNvbi5pY29uTmFtZX1gXG4gICAgICApO1xuICAgIH1cbiAgICBsZXQgaXRlcmFudFZhbHVlcyA9IGljb25baXRlcmFudF07XG4gICAgaWYgKCEoaXRlcmFudFZhbHVlcyBpbnN0YW5jZW9mIEFycmF5KSkge1xuICAgICAgaXRlcmFudFZhbHVlcyA9IG5ldyBBcnJheShpdGVyYW50VmFsdWVzKTtcbiAgICB9XG4gICAgcHJvcHNbaXRlcmFudF0gPSBpdGVyYW50VmFsdWVzO1xuICB9XG4gIHJldHVybiBwcm9wQ29tYmluYXRvcihwcm9wcyk7XG59XG4iXX0= |
@@ -86,2 +86,4 @@ "use strict"; | ||
name: 'filled-a', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -92,2 +94,4 @@ }, | ||
name: 'filled-b', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -98,2 +102,4 @@ }, | ||
name: 'someOtherName-a', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -104,2 +110,4 @@ }, | ||
name: 'someOtherName-b', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -120,2 +128,2 @@ } | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlYWwtaWNvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Rlc3QvaGVscGVycy9pZGVhbC1pY29uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNkJBQTZCO0FBRTdCLG1DQVVtQjtBQUNuQixxRUFBdUU7QUFFdkUsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQyxTQUFTLEVBQUUsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLEVBQUUsTUFBTSxFQUFFLFVBQVUsQ0FBQyxDQUFDO0FBRS9FLE1BQU0sU0FBUyxHQUFrQjtJQUMvQixHQUFHLEVBQUU7UUFDSCxJQUFJLEVBQUUsY0FBYztRQUNwQixJQUFJLEVBQUUsZ0JBQWdCO0tBQ3ZCO0lBQ0QsR0FBRyxFQUFFO1FBQ0gsSUFBSSxFQUFFLGNBQWM7UUFDcEIsSUFBSSxFQUFFLGdCQUFnQjtLQUN2QjtJQUNELElBQUksRUFBRTtRQUNKLElBQUksRUFBRSxlQUFlO1FBQ3JCLElBQUksRUFBRSxpQkFBaUI7S0FDeEI7Q0FDRixDQUFDO0FBRUYsTUFBTSxZQUFZLEdBQWtCO0lBQ2xDO1FBQ0UsSUFBSSxFQUFFLElBQUk7UUFDVixFQUFFLEVBQUUsS0FBSyxFQUFFLEtBQVksRUFBRSxJQUFVLEVBQUUsTUFBZSxFQUFrQixFQUF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": "@icon-magic/icon-models", | ||
"version": "2.2.0-beta.0", | ||
"version": "2.2.1-beta.0", | ||
"description": "Icon magic provides classes for the icon and iconSet", | ||
@@ -23,3 +23,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "3ca9d3a6d0a4ef42a515b595625c62196933632f" | ||
"gitHead": "92cd26fb31beeb4a19c28d52f1adf1febf203a48" | ||
} |
@@ -15,2 +15,4 @@ import { Logger, logger } from '@icon-magic/logger'; | ||
iconPath: string; | ||
buildSourceHash?: string; | ||
generateSourceHash?: string; | ||
protected path: string; | ||
@@ -31,3 +33,3 @@ private LOGGER: Logger; | ||
throw new Error( | ||
'AssetCreationError: iconPath must always be absolute: ${iconPath)' | ||
`AssetCreationError: iconPath must always be absolute: ${iconPath}` | ||
); | ||
@@ -48,2 +50,10 @@ } | ||
} | ||
// if a source has is passed in, set it on the asset's config | ||
if (config.buildSourceHash) { | ||
this.buildSourceHash = config.buildSourceHash; | ||
} | ||
if (config.generateSourceHash) { | ||
this.generateSourceHash = config.generateSourceHash; | ||
} | ||
this.LOGGER.debug(`Asset ${this.name} created in ${this.iconPath}`); | ||
@@ -70,6 +80,13 @@ } | ||
getAssetConfig(): AssetConfig { | ||
return { | ||
const config: AssetConfig = { | ||
name: this.name, | ||
path: this.path | ||
path: this.path, | ||
}; | ||
if (this.buildSourceHash) { | ||
config.buildSourceHash = this.buildSourceHash; | ||
} | ||
if (config.generateSourceHash) { | ||
this.generateSourceHash = config.generateSourceHash; | ||
} | ||
return config; | ||
} | ||
@@ -76,0 +93,0 @@ |
@@ -22,2 +22,3 @@ import * as path from 'path'; | ||
constructor(iconPath: string, config: FlavorConfig) { | ||
// only flavors have a sourceHash | ||
super(iconPath, config); | ||
@@ -60,2 +61,4 @@ if (config.types) { | ||
path: `./${path.relative(this.iconPath, this.getPath())}`, | ||
buildSourceHash: this.buildSourceHash, | ||
generateSourceHash: this.generateSourceHash, | ||
types: flavorTypes | ||
@@ -62,0 +65,0 @@ }; |
@@ -101,5 +101,3 @@ import { Logger, logger } from '@icon-magic/logger'; | ||
throw new Error( | ||
`NoValidVariantsError: ${ | ||
this.iconPath | ||
} does not have any valid variants` | ||
`NoValidVariantsError: ${this.iconPath} does not have any valid variants` | ||
); | ||
@@ -106,0 +104,0 @@ } |
@@ -8,2 +8,4 @@ export { Asset } from './asset'; | ||
export * from './interface'; | ||
export * from './utils/files'; | ||
export * from './utils/hash'; |
@@ -18,2 +18,4 @@ import { Icon } from '.'; | ||
contents?: Content; | ||
buildSourceHash?: string; | ||
generateSourceHash?: string; | ||
} | ||
@@ -20,0 +22,0 @@ |
@@ -10,3 +10,2 @@ import { Logger, logger } from '@icon-magic/logger'; | ||
import { propCombinator } from './utils/prop-combinator'; | ||
const LOGGER: Logger = logger('icon-magic:icon-models:plugin-manager'); | ||
@@ -46,3 +45,7 @@ | ||
for (const input of pluginInput) { | ||
const output = await applySinglePluginOnAsset(input, icon, plugin); | ||
const output = await applySinglePluginOnAsset( | ||
input, | ||
icon, | ||
plugin | ||
); | ||
@@ -72,3 +75,3 @@ pluginResults[index] = pluginResults[index].concat(output); | ||
icon: Icon, | ||
plugin: BuildPlugin | GeneratePlugin | ||
plugin: BuildPlugin | GeneratePlugin, | ||
): Promise<Flavor[]> { | ||
@@ -80,5 +83,3 @@ let output: Flavor[] = new Array(); | ||
LOGGER.debug( | ||
`applySinglePluginOnFlavor: Applying ${plugin.name} on ${ | ||
asset.name | ||
} with` | ||
`applySinglePluginOnFlavor: Applying ${plugin.name} on ${asset.name} with` | ||
); | ||
@@ -108,3 +109,8 @@ let pluginOutput; | ||
try { | ||
pluginOutput = await plugin.fn.call(icon, asset, icon, plugin.params); | ||
pluginOutput = await plugin.fn.call( | ||
icon, | ||
asset, | ||
icon, | ||
plugin.params | ||
); | ||
} catch (e) { | ||
@@ -111,0 +117,0 @@ LOGGER.error( |
@@ -102,2 +102,4 @@ import * as path from 'path'; | ||
name: 'filled-a', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -108,2 +110,4 @@ }, | ||
name: 'filled-b', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -114,2 +118,4 @@ }, | ||
name: 'someOtherName-a', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -120,2 +126,4 @@ }, | ||
name: 'someOtherName-b', | ||
buildSourceHash: undefined, | ||
generateSourceHash: undefined, | ||
types: sampleExt | ||
@@ -122,0 +130,0 @@ } |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1418473
74
2540
0