New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@icon-magic/icon-models

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icon-magic/icon-models - npm Package Compare versions

Comparing version 2.2.7-beta.0 to 2.2.8-beta.0

4

dist/src/asset.js

@@ -18,3 +18,3 @@ "use strict";

constructor(iconPath, config) {
this.LOGGER = logger_1.logger('icon-magic:icon-models:asset');
this.LOGGER = new logger_1.Logger('icon-magic:icon-models:asset');
// if iconPath is not absolute, throw an error

@@ -99,2 +99,2 @@ if (!path.isAbsolute(iconPath)) {

exports.Asset = Asset;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXNzZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQ0FBb0Q7QUFDcEQsNkJBQTZCO0FBRzdCLHlDQUFnRDtBQUVoRDs7O0dBR0c7QUFDSCxNQUFhLEtBQUs7SUFXaEI7Ozs7O09BS0c7SUFDSCxZQUFZLFFBQWdCLEVBQUUsTUFBbUI7UUFDL0MsSUFBSSxDQUFDLE1BQU0sR0FBRyxlQUFNLENBQUMsOEJBQThCLENBQUMsQ0FBQztRQUVyRCw4Q0FBOEM7UUFDOUMsSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsUUFBUSxDQUFDLEVBQUU7WUFDOUIsTUFBTSxJQUFJLEtBQUssQ0FDYix5REFBeUQsUUFBUSxFQUFFLENBQ3BFLENBQUM7U0FDSDtRQUNELElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO1FBRXpCLHlFQUF5RTtRQUN6RSxrQkFBa0I7UUFDbEIsSUFBSSxDQUFDLElBQUksR0FBRyxNQUFNLENBQUMsSU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yB0aGUgY29udGVudCBzdG9yZWQgaW4gdGhlIHBhdGggb2YgdGhpcyBhc3NldFxuICAgKi9cbiAgYXN5bmMgZ2V0Q29udGVudHMoKTogUHJvbWlzZTxDb250ZW50PiB7XG4gICAgLy8gaWYgaXQgaXNuJ3QgYWxyZWFkeSByZXRyaWV2ZWQsIHJlYWQgdGhlIGZpbGUgZnJvbSBkaXNrXG4gICAgaWYgKCF0aGlzLmNvbnRlbnRzKSB7XG4gICAgICB0aGlzLkxPR0dFUi5kZWJ1ZyhcbiAgICAgICAgYFJlYWRpbmcgJHt0aGlzLmdldFBhdGgoKX0ncyBmaWxlIGNvbnRlbnRzIGZyb20gdGhlIGRpc2tgXG4gICAgICApO1xuICAgICAgdGhpcy5jb250ZW50cyA9IGF3YWl0IGdldEZpbGVDb250ZW50cyh0aGlzLmdldFBhdGgoKSk7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLmNvbnRlbnRzO1xuICB9XG59XG4iXX0=

@@ -21,3 +21,3 @@ "use strict";

this.hash = new Map();
this.LOGGER = logger_1.logger('icon-magic:icon-models:icon-set');
this.LOGGER = new logger_1.Logger('icon-magic:icon-models:icon-set');
if (iconConfigHash) {

@@ -42,2 +42,2 @@ // iterate through all the entires and add it to the map

exports.IconSet = IconSet;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi1zZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaWNvbi1zZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQ0FBb0Q7QUFFcEQsaUNBQThCO0FBRzlCOzs7Ozs7R0FNRztBQUNILE1BQWEsT0FBTztJQUlsQjs7Ozs7T0FLRztJQUNILFlBQVksY0FBK0IsRUFBRSxnQkFBMEI7UUFDckUsSUFBSSxDQUFDLElBQUksR0FBRyxJQUFJLEdBQUcsRUFBRSxDQUFDO1FBQ3RCLElBQUksQ0F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XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=

@@ -27,3 +27,3 @@ "use strict";

constructor(config, skipVariantCheck) {
this.LOGGER = logger_1.logger('icon-magic:icon-models:icon');
this.LOGGER = new logger_1.Logger('icon-magic:icon-models:icon');
// copy over all the properties in the config

@@ -142,2 +142,2 @@ for (const key of Object.keys(config)) {

exports.Icon = Icon;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWNvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pY29uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQW9EO0FBQ3BELDZCQUE2QjtBQUU3QixtQ0FBZ0M7QUFDaEMscUNBQWtDO0FBV2xDLHlDQUFrRDtBQUVsRDs7Ozs7OztHQU9HO0FBQ0gsTUFBYSxJQUFJO0lBaUJmOzs7Ozs7OztPQVFHO0lBQ0gsWUFBWSxNQUFrQixFQUFFLGdCQUEwQjtRQUN4RCxJQUFJLENBQUMsTUFBTSxHQUFHLGVBQU0sQ0FBQyw2QkFBNkIsQ0FBQyxDQUFDO1FBRXBELDZDQUE2QztRQUM3QyxLQUFLLE1BQU0sR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDckMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztTQUN6QjtRQUVELHNEQUFzRDtRQUN0RCxJQUFJLENBQUMsTUFBTSxDQUFDLFFBQVEsRUFBRTtZQUNwQixJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDLElBQUksQ0FBQztTQUNsRDtRQUVELDJFQUEyRTtRQUMzRSxNQUFNLFFBQVEsR0FBWSxFQUFFLENBQUM7UUFD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aGUgaWNvbiBpZiBpdCBkb2Vzbid0IGV4aXN0IGFscmVhZHlcbiAgICBpZiAoIWNvbmZpZy5pY29uTmFtZSkge1xuICAgICAgdGhpcy5pY29uTmFtZSA9IHBhdGgucGFyc2UoY29uZmlnLmljb25QYXRoKS5uYW1lO1xuICAgIH1cblxuICAgIC8vIGl0ZXJhdGUgdGhyb3VnaCB0aGUgdmFyaWFudHMgYW5kIGNyZWF0ZSBBc3NldCBpbnN0YW5jZXMgZm9yIGVhY2ggdmFyaWFudFxuICAgIGNvbnN0IHZhcmlhbnRzOiBBc3NldFtdID0gW107XG4gICAgZm9yIChjb25zdCB2YXJpYW50IG9mIGNvbmZpZy52YXJpYW50cykge1xuICAgICAgaWYgKCEodmFyaWFudCBpbnN0YW5jZW9mIEFzc2V0KSkge1xuICAgICAgICBjb25zdCB2YXJpYW50QXNzZXQgPSBuZXcgQXNzZXQoY29uZmlnLmljb25QYXRoLCB2YXJpYW50KTtcblxuICAgICAgICAvLyBvbmx5IGNoZWNrIHRoZSB2YXJpYW50cyBpZiB0aGUgZmxhZyBpcyB0cnVlXG4gICAgICAgIGlmICghc2tpcFZhcmlhbnRDaGVjaykge1xuICAgICAgICAgIC8vIGNoZWNrIHRvIHNlZSBpZiB0aGUgZmlsZSBleGlzdHNcbiAgICAgICAgICBpZiAoIWV4aXN0cyh2YXJpYW50QXNzZXQuZ2V0UGF0aCgpKSkge1xuICAgICAgICAgICAgdGhpcy5MT0dHRVIuZXJyb3IoXG4gICAgICAgICAgICAgIGBNaXNzaW5nVmFyaWFudEVycm9yOiBWYXJpYW50ICR7dmFyaWFudEFzc2V0LmdldFBhdGgoKX0gbWlzc2luZyBmb3IgaWNvbiAke1xuICAgICAgICAgICAgICAgIHRoaXMuaWNvblBhdGhcbiAgICAgICAgICAgICAgfWBcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICAvLyBjaGVjayB0aGF0IHRoZSB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cbiAgICB9XG5cbiAgICAvLyBpdGVyYXRlIHRocm91Z2ggdGhlIHZhcmlhbnRzIGFuZCBjcmVhdGUgQXNzZXQgaW5zdGFuY2VzIGZvciBlYWNoIHZhcmlhbnRcbiAgICBjb25zdCB2YXJpYW50czogQXNzZXRbXSA9IFtdO1xuICAgIGZvciAoY29uc3QgdmFyaWFudCBvZiBjb25maWcudmFyaWFudHMpIHtcbiAgICAgIGlmICghKHZhcmlhbnQgaW5zdGFuY2VvZiBBc3NldCkpIHtcbiAgICAgICAgY29uc3QgdmFyaWFudEFzc2V0ID0gbmV3IEFzc2V0KGNvbmZpZy5pY29uUGF0aCwgdmFyaWFudCk7XG5cbiAgICAgICAgLy8gb25seSBjaGVjayB0aGUgdmFyaWFudHMgaWYgdGhlIGZsYWcgaXMgdHJ1ZVxuICAgICAgICBpZiAoIXNraXBWYXJpYW50Q2hlY2spIHtcbiAgICAgICAgICAvLyBjaGVjayB0byBzZWUgaWYgdGhlIGZpbGUgZXhpc3RzXG4gICAgICAgICAgaWYgKCFleGlzdHModmFyaWFudEFzc2V0LmdldFBhdGgoKSkpIHtcbiAgICAgICAgICAgIHRoaXMuTE9HR0VSLmVycm9yKFxuICAgICAgICAgICAgICBgTWlzc2luZ1ZhcmlhbnRFcnJvcjogVmFyaWFudCAke3ZhcmlhbnRBc3NldC5nZXRQYXRoKCl9IG1pc3NpbmcgZm9yIGljb24gJHtcbiAgICAgICAgICAgICAgICB0aGlzLmljb25QYXRoXG4gICAgICAgICAgICAgIH1gXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgLy8gY2hlY2sgdGhhdCB0aGUgYXNzZXQgaXMgYW4gc3ZnIGZpbGVcbiAgICAgICAgICBpZiAoIWlzVHlwZVNWRyh2YXJpYW50QXNzZXQuZ2V0UGF0aCgpKSkge1xuICAgICAgICAgICAgdGhpcy5MT0dHRVIuZXJyb3IoXG4gICAgICAgICAgICAgIG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RoaXMuZmxhdm9ycykge1xuICAgICAgY29uc3QgZmxhdm9yczogRmxhdm9yQ29uZmlnW10gPSBbXTtcbiAgICAgIGZvciAoY29uc3QgZmxhdm9yIG9mIHRoaXMuZmxhdm9ycy52YWx1ZXMoKSkge1xuICAgICAgICBmbGF2b3JzLnB1c2goZmxhdm9yLmdldENvbmZpZygpKTtcbiAgICAgIH1cbiAgICAgIGNvbmZpZy5mbGF2b3JzID0gZmxhdm9ycztcbiAgICB9XG5cbiAgICAvL2NvcHkgb3ZlciB0aGUgcmVzdCBvZiB0aGUgcHJvcGVydGllcyBvbmx5IGlmIHRoZXkgZXhpc3RcbiAgICBpZiAodGhpcy5sYWJlbHMpIHtcbiAgICAgIGNvbmZpZy5sYWJlbHMgPSB0aGlzLmxhYmVscztcbiAgICB9XG4gICAgaWYgKHRoaXMuY2F0ZWdvcnkpIHtcbiAgICAgIGNvbmZpZy5jYXRlZ29yeSA9IHRoaXMuY2F0ZWdvcnk7XG4gICAgfVxuICAgIGlmICh0aGlzLm1ldGFkYXRhKSB7XG4gICAgICBjb25maWcubWV0YWRhdGEgPSB0aGlzLm1ldGFkYXRhO1xuICAgIH1cbiAgICBpZiAodGhpcy5idWlsZCkge1xuICAgICAgY29uZmlnLmJ1aWxkID0gdGhpcy5idWlsZDtcbiAgICB9XG4gICAgaWYgKHRoaXMuZ2VuZXJhdGUpIHtcbiAgICAgIGNvbmZpZy5nZW5lcmF0ZSA9IHRoaXMuZ2VuZXJhdGU7XG4gICAgfVxuICAgIGlmICh0aGlzLmRpc3RyaWJ1dGUpIHtcbiAgICAgIGNvbmZpZy5kaXN0cmlidXRlID0gdGhpcy5kaXN0cmlidXRlO1xuICAgIH1cblxuICAgIC8vIHJldHVybiB0aGUgb2JqZWN0XG4gICAgcmV0dXJuIGNvbmZpZztcbiAgfVxufVxuIl19

@@ -7,3 +7,3 @@ "use strict";

const prop_combinator_1 = require("./utils/prop-combinator");
const LOGGER = logger_1.logger('icon-magic:icon-models:plugin-manager');
const LOGGER = new logger_1.Logger('icon-magic:icon-models:plugin-manager');
/**

@@ -122,2 +122,2 @@ * Applies the set of plugins on the given asset and returns all the

exports.getAllPropCombinations = getAllPropCombinations;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLW1hbmFnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcGx1Z2luLW1hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQ0FBb0Q7QUFDcEQsNkJBQTZCO0FBTTdCLHlDQUFrRDtBQUNsRCw2REFBeUQ7QUFDekQsTUFBTSxNQUFNLEdBQVcsZUFBTSxDQUFDLHVDQUF1QyxDQUFDLENBQUM7QUFFdkU7Ozs7Ozs7Ozs7O0dBV0c7QUFDSSxLQUFLLFVBQVUsbUJBQW1CLENBQ3ZDLEtBQXFCLEVBQ3JCLElBQVUsRUFDVixPQUF5QztJQUV6Qyx3RUFBd0U7SUFDeEUsTUFBTSxhQUFhLEdBQWUsRUFBRSxDQUFDO0lBRXJDLDREQUE0RDtJQUM1RCxLQUFLLE1BQU0sQ0FBQyxLQUFLLEVBQUUsTUFBTSxDQUFDLElBQUksT0FBTyxDQUFDLE9BQU8sRUFBRSxFQUFFO1FBQy9DLGFBQWEsQ0FBQyxLQUFLLENBQUMsR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFDO1FBQ25DLE1BQU0sQ0FBQyxLQUFLLENBQ1YsaUNBQWlDLE1BQU0sQ0FBQyxJQUFJLE9BQU8sS0FBSyxDQUFDLElBQUksRUFBRSxDQUNoRSxDQUFDO1FBQ0YsMkVBQTJFO1FBQzNFLHNFQUFzRTtRQUN0RSxNQUFNLFdBQVcsR0FBYSxhQUFhLENBQUMsS0FBSyxHQUFHLENBQUMsQ0FBQyxJQUFJLElBQUksS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRTNFLHlFQUF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5IHtcbiAgICAgIHBsdWdpbk91dHB1dCA9IGF3YWl0IHBsdWdpbi5mbi5jYWxsKFxuICAgICAgICBpY29uLFxuICAgICAgICBhc3NldCxcbiAgICAgICAgaWNvbixcbiAgICAgICAgcGx1Z2luLnBhcmFtc1xuICAgICAgKTtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICBMT0dHRVIuZXJyb3IoXG4gICAgICAgIGBQbHVnaW5FcnJvcjogRXJyb3Igd2hpbGUgcnVubmluZyAke3BsdWdpbi5uYW1lfSBvbiAke2ljb24uaWNvblBhdGh9YFxuICAgICAgKTtcbiAgICAgIExPR0dFUi5lcnJvcihlKTtcbiAgICB9XG4gICAgaWYgKHBsdWdpbk91dHB1dCkge1xuICAgICAgb3V0cHV0ID0gb3V0cHV0LmNvbmNhdChwbHVnaW5PdXRwdXQpO1xuICAgIH1cbiAgfVxuXG4gIGNvbnN0IHByb21pc2VzID0gW107XG4gIGlmIChwbHVnaW4ud3JpdGVUb091dHB1dCkge1xuICAgIGZvciAoY29uc3Qgb3V0cHV0Rmxhdm9yIG9mIG91dHB1dCkge1xuICAgICAgaWYgKG91dHB1dEZsYXZvci5jb250ZW50cykge1xuICAgICAgICBwcm9taXNlcy5wdXNoKFxuICAgICAgICAgIHNhdmVDb250ZW50VG9GaWxlKFxuICAgICAgICAgICAgcGF0aC5qb2luKGljb24uaWNvblBhdGgsICd0bXAnKSxcbiAgICAgICAgICAgIG91dHB1dEZsYXZvci5uYW1lLFxuICAgICAgICAgICAgb3V0cHV0Rmxhdm9yLmNvbnRlbnRzLFxuICAgICAgICAgICAgJ3N2ZydcbiAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgfVxuICB9XG4gIGF3YWl0IFByb21pc2UuYWxsKHByb21pc2VzKTtcbiAgcmV0dXJuIG91dHB1dDtcbn1cblxuLyoqXG4gKiBBIHV0aWwgdG8gZ28gdGhyb3VnaCB0aGUgaWNvbiwgbG9jYXRlIHRoZSBpdGVyYW50c1xuICogQHBhcmFtIGljb24gdGhlIG9iamVjdCBjb250YWluaW5nIHRoZSBpdGVyYW50c1xuICogQHBhcmFtIGl0ZXJhbnRzIHRoZSBzZXQgb2YgcHJvcGVydGllcyBvbiB0aGUgaWNvbiBvbiB3aG9zZSB2YWx1ZXMgdGhlIHBsdWdpblxuICogbmVlZHMgdG8gaXRlcmF0ZVxuICogQHJldHVybnMgYW4gYXJyYXkgb2Ygb2JqZWN0cywgd2hlcmUgdGhlIGtleXMgYXJlIHRoZSBpdGVyYW50IG5hbWVzIGFuZCB2YWx1ZXNcbiAqIGFyZSBpdGVyYW50IHZhbHVlc1xuICovXG5leHBvcnQgZnVuY3Rpb24gZ2V0QWxsUHJvcENvbWJpbmF0aW9ucyhpY29uOiBJY29uLCBpdGVyYW50czogSXRlcmFudCkge1xuICBjb25zdCBwcm9wcyA9IHt9O1xuICBmb3IgKGNvbnN0IGl0ZXJhbnQgb2YgaXRlcmFudHMpIHtcbiAgICBpZiAoIWljb24uaGFzT3duUHJvcGVydHkoaXRlcmFudCkpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihcbiAgICAgICAgYENvdWxkIG5vdCBmaW5kICR7aXRlcmFudH0gaW4gdGhlIGNvbmZpZyBmaWxlIG9mICR7aWNvbi5pY29uTmFtZX1gXG4gICAgICApO1xuICAgIH1cbiAgICBsZXQgaXRlcmFudFZhbHVlcyA9IGljb25baXRlcmFudF07XG4gICAgaWYgKCEoaXRlcmFudFZhbHVlcyBpbnN0YW5jZW9mIEFycmF5KSkge1xuICAgICAgaXRlcmFudFZhbHVlcyA9IG5ldyBBcnJheShpdGVyYW50VmFsdWVzKTtcbiAgICB9XG4gICAgcHJvcHNbaXRlcmFudF0gPSBpdGVyYW50VmFsdWVzO1xuICB9XG4gIHJldHVybiBwcm9wQ29tYmluYXRvcihwcm9wcyk7XG59XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2luLW1hbmFn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AcmV0dXJucyBhbiBhcnJheSBvZiBvYmplY3RzLCB3aGVyZSB0aGUga2V5cyBhcmUgdGhlIGl0ZXJhbnQgbmFtZXMgYW5kIHZhbHVlc1xuICogYXJlIGl0ZXJhbnQgdmFsdWVzXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBnZXRBbGxQcm9wQ29tYmluYXRpb25zKGljb246IEljb24sIGl0ZXJhbnRzOiBJdGVyYW50KSB7XG4gIGNvbnN0IHByb3BzID0ge307XG4gIGZvciAoY29uc3QgaXRlcmFudCBvZiBpdGVyYW50cykge1xuICAgIGlmICghaWNvbi5oYXNPd25Qcm9wZXJ0eShpdGVyYW50KSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKFxuICAgICAgICBgQ291bGQgbm90IGZpbmQgJHtpdGVyYW50fSBpbiB0aGUgY29uZmlnIGZpbGUgb2YgJHtpY29uLmljb25OYW1lfWBcbiAgICAgICk7XG4gICAgfVxuICAgIGxldCBpdGVyYW50VmFsdWVzID0gaWNvbltpdGVyYW50XTtcbiAgICBpZiAoIShpdGVyYW50VmFsdWVzIGluc3RhbmNlb2YgQXJyYXkpKSB7XG4gICAgICBpdGVyYW50VmFsdWVzID0gbmV3IEFycmF5KGl0ZXJhbnRWYWx1ZXMpO1xuICAgIH1cbiAgICBwcm9wc1tpdGVyYW50XSA9IGl0ZXJhbnRWYWx1ZXM7XG4gIH1cbiAgcmV0dXJuIHByb3BDb21iaW5hdG9yKHByb3BzKTtcbn1cbiJdfQ==
{
"name": "@icon-magic/icon-models",
"version": "2.2.7-beta.0",
"version": "2.2.8-beta.0",
"description": "Icon magic provides classes for the icon and iconSet",

@@ -21,5 +21,5 @@ "main": "dist/src/index.js",

"dependencies": {
"@icon-magic/logger": "^2.0.1-beta.0"
"@icon-magic/logger": "^2.2.8-beta.0"
},
"gitHead": "d1d008241e1f514a2161af84333c6164a5996863"
"gitHead": "f8ef6904a3d74ae7ca9a014bf7e6a98d133fbed9"
}

@@ -1,2 +0,2 @@

import { Logger, logger } from '@icon-magic/logger';
import { Logger } from '@icon-magic/logger';
import * as path from 'path';

@@ -29,3 +29,3 @@

constructor(iconPath: string, config: AssetConfig) {
this.LOGGER = logger('icon-magic:icon-models:asset');
this.LOGGER = new Logger('icon-magic:icon-models:asset');

@@ -32,0 +32,0 @@ // if iconPath is not absolute, throw an error

@@ -1,2 +0,2 @@

import { Logger, logger } from '@icon-magic/logger';
import { Logger } from '@icon-magic/logger';

@@ -25,3 +25,3 @@ import { Icon } from './icon';

this.hash = new Map();
this.LOGGER = logger('icon-magic:icon-models:icon-set');
this.LOGGER = new Logger('icon-magic:icon-models:icon-set');

@@ -28,0 +28,0 @@ if (iconConfigHash) {

@@ -1,2 +0,2 @@

import { Logger, logger } from '@icon-magic/logger';
import { Logger } from '@icon-magic/logger';
import * as path from 'path';

@@ -53,3 +53,3 @@

constructor(config: IconConfig, skipVariantCheck?: boolean) {
this.LOGGER = logger('icon-magic:icon-models:icon');
this.LOGGER = new Logger('icon-magic:icon-models:icon');

@@ -56,0 +56,0 @@ // copy over all the properties in the config

@@ -1,2 +0,2 @@

import { Logger, logger } from '@icon-magic/logger';
import { Logger } from '@icon-magic/logger';
import * as path from 'path';

@@ -10,3 +10,3 @@

import { propCombinator } from './utils/prop-combinator';
const LOGGER: Logger = logger('icon-magic:icon-models:plugin-manager');
const LOGGER = new Logger('icon-magic:icon-models:plugin-manager');

@@ -13,0 +13,0 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc