Comparing version 0.24.0 to 0.24.1-rc1
@@ -1,2 +0,2 @@ | ||
module.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(6),i=n(5),u=n(4),s=n(1),a={},c=[],f=function(){function t(e){r(this,t),o(this),this._path=c,this._root=this,this.state=a,this.commit(e)}return t.prototype.getPath=function(t){return this._path.concat(t).filter(function(t){return void 0!==t})},t.prototype.getRoot=function(){return this._root},t.prototype.commit=function(){var t=void 0===arguments[0]?this.state:arguments[0],e=this.getRoot(),n=e.state;null==t&&(t=a),n!==t&&(e.state=t,this.volley(e.state))},t.prototype.clear=function(){this.commit(null)},t.prototype.get=function(t,e){return s(this.state,this.getPath(t),e)},t.prototype.set=function(t,e){1===arguments.length&&(e=arguments[0],t=void 0),this.commit(i(this.state,this.getPath(t),e))},t.prototype.update=function(t,e){1===arguments.length&&(e=arguments[0],t=void 0);for(var n in e)this.set([t,n],e[n])},t.prototype.remove=function(t){this.commit(u(this.state,this.getPath(t)))},t.prototype.refine=function(t){return Object.create(this,{_path:{value:this.getPath(t)}})},t.prototype.keys=function(){return Object.keys(this.valueOf()||{})},t.prototype.values=function(){return this.keys().map(function(t){return this.get(t)},this)},t.prototype.valueOf=function(){return s(this.state,this.getPath())},t.prototype.toJSON=function(){return this.valueOf()},t.prototype.is=function(t){return t.valueOf()==this.valueOf()},t.prototype.find=function(t,e){return this.filter(t,e)[0]},t.prototype.includes=function(t){return this.indexOf(t)>-1},t.prototype.first=function(){return this.values().shift()},t.prototype.last=function(){return this.values().pop()},t.prototype.size=function(){return this.values().length},t}(),p=["sort","map","reduce","filter","forEach","some","every","join","indexOf"];p.forEach(function(t){f.prototype[t]=function(){var e;return(e=this.values())[t].apply(e,arguments)}}),t.exports=f},function(t,e,n){var r=n(2);t.exports=function(t,e,n){e=r(e);for(var o=0;o<e.length;o++){if(void 0===t)return n;t=t[e[o]]}return void 0===t?n:t}},function(t,e,n){t.exports=function(t){return Array.isArray(t)?t:[t]}},function(t,e,n){t.exports=function(t){if(Array.isArray(t))return t.slice();var e={};for(var n in t)e[n]=t[n];return e}},function(t,e,n){var r={},o=n(3),i=n(1),u=n(2);t.exports=function s(t,e){if(void 0===i(t,e))return t;e=u(e);var n=e[0],a=e.slice(1),c=o(t);return a.length?(c[n]=s(i(t,n,r),a),0===Object.keys(i(c,n,r)).length&&delete c[n]):delete c[n],c}},function(t,e,n){var r=n(3),o=n(1),i=n(2);t.exports=function u(t,e,n){if(o(t,e)===n)return t;e=i(e);var s=e[0],a=e.slice(1);if(e.length){var c=r(t);return a.length?c[s]=u(o(c,s,{}),a,n):c[s]=n,c}return n}},function(t,e,n){function r(t){var e=[],n=t,o=null;t=this instanceof r?this:t||{};var i=function(n){for(var r=0;r<e.length;r++)e[r].apply(t,n)},u=function(){var t=+new Date;o&&10>t-o?cancelAnimationFrame(n):o=t};return t.listen=t.subscribe=function(n){return e=e.concat(n),t},t.ignore=t.unsubscribe=function(n){return e=e.filter(function(t){return t!==n}),t},t.emit=t.publish=function(){return i(arguments),t},t.volley=function(){return e.length>0&&(u(),n=requestAnimationFrame(i.bind(void 0,arguments))),t},t}var o=1e3/120;t.exports=r(r),t.exports.decorate=r,t.exports.FRAMES=o}]); | ||
module.exports=function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,n,r){function e(){return e.prototype.constructor.apply(this,arguments)}var i=r(6),u=r(5),o=r(4),s=r(1),a={},c=[];e.prototype={constructor:function(t){i(this),this._path=c,this._root=this,this.state=a,this.commit(t)},getPath:function(t){return this._path.concat(t).filter(function(t){return void 0!==t})},getRoot:function(){return this._root},commit:function(){var t=void 0===arguments[0]?this.state:arguments[0],n=this.getRoot(),r=n.state;null==t&&(t=a),r!==t&&(n.state=t,this.volley(n.state))},clear:function(){this.commit(null)},get:function(t,n){return s(this.state,this.getPath(t),n)},set:function(t,n){1===arguments.length&&(n=arguments[0],t=void 0),this.commit(u(this.state,this.getPath(t),n))},update:function(t,n){1===arguments.length&&(n=arguments[0],t=void 0);for(var r in n)this.set([t,r],n[r])},remove:function(t){this.commit(o(this.state,this.getPath(t)))},refine:function(t){return Object.create(this,{_path:{value:this.getPath(t)}})},keys:function(){return Object.keys(this.valueOf()||{})},values:function(){return this.keys().map(function(t){return this.get(t)},this)},valueOf:function(){return s(this.state,this.getPath())},toJSON:function(){return this.valueOf()},is:function(t){return t.valueOf()==this.valueOf()},find:function(t,n){return this.filter(t,n)[0]},includes:function(t){return this.indexOf(t)>-1},first:function(){return this.values().shift()},last:function(){return this.values().pop()},size:function(){return this.values().length}};var f=["sort","map","reduce","filter","forEach","some","every","join","indexOf"];f.forEach(function(t){e.prototype[t]=function(){var n;return(n=this.values())[t].apply(n,arguments)}}),t.exports=e},function(t,n,r){var e=r(2);t.exports=function(t,n,r){n=e(n);for(var i=0;i<n.length;i++){if(void 0===t)return r;t=t[n[i]]}return void 0===t?r:t}},function(t,n,r){t.exports=function(t){return Array.isArray(t)?t:[t]}},function(t,n,r){t.exports=function(t){if(Array.isArray(t))return t.slice();var n={};for(var r in t)n[r]=t[r];return n}},function(t,n,r){function e(t){return Array.isArray(t)?t:Array.from(t)}var i={},u=r(3),o=r(1),s=r(2);t.exports=function a(t,n){if(void 0===o(t,n))return t;n=s(n);var r=e(n),c=r[0],f=r.slice(1),h=u(t);return f.length?(h[c]=a(o(t,c,i),f),0===Object.keys(o(h,c,i)).length&&delete h[c]):delete h[c],h}},function(t,n,r){function e(t){return Array.isArray(t)?t:Array.from(t)}var i=r(3),u=r(1),o=r(2);t.exports=function s(t,n,r){if(u(t,n)===r)return t;n=o(n);var a=e(n),c=a[0],f=a.slice(1);if(n.length){var h=i(t);return f.length?h[c]=s(u(h,c,{}),f,r):h[c]=r,h}return r}},function(t,n,r){function e(t){var n=[],r=t,i=null;t=this instanceof e?this:t||{};var u=function(r){for(var e=0;e<n.length;e++)n[e].apply(t,r)},o=function(){var t=+new Date;i&&10>t-i?cancelAnimationFrame(r):i=t};return t.listen=t.subscribe=function(r){return n=n.concat(r),t},t.ignore=t.unsubscribe=function(r){return n=n.filter(function(t){return t!==r}),t},t.emit=t.publish=function(){return u(arguments),t},t.volley=function(){return n.length>0&&(o(),r=requestAnimationFrame(u.bind(void 0,arguments))),t},t}var i=1e3/120;t.exports=e(e),t.exports.decorate=e,t.exports.FRAMES=i}]); | ||
//# sourceMappingURL=foliage.build.js.map |
{ | ||
"name": "foliage", | ||
"version": "0.24.0", | ||
"version": "0.24.1-rc1", | ||
"description": "A cursor like tree data structure.", | ||
@@ -5,0 +5,0 @@ "main": "src/Foliage.js", |
@@ -11,2 +11,2 @@ /** | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hc3NvYy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBSUEsSUFBSSxHQUFHLEdBQUcsT0FBTyxTQUFTLENBQUE7O0FBRTFCLE1BQU0sQ0FBQyxPQUFPLEdBQUcsWUFBVztBQUMxQixTQUFPLENBQUMsSUFBSSxrRUFBa0UsQ0FBQTtBQUM5RSxTQUFPLEdBQUcsQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLFNBQVMsQ0FBQyxDQUFBO0NBQ2xDLENBQUEiLCJmaWxlIjoiYXNzb2MuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIERFUFJFQ0FURURcbiAqL1xuXG5sZXQgc2V0ID0gcmVxdWlyZSgnLi9zZXQnKVxuXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uKCkge1xuICBjb25zb2xlLndhcm4oJ3NldCBoYXMgYmVlbiBkZXByZWNhdGVkLCBwbGVhc2UgdXNlIGByZXF1aXJlKGZvbGlhZ2Uvc3JjL3NldGApJylcbiAgcmV0dXJuIHNldC5hcHBseSh0aGlzLCBhcmd1bWVudHMpXG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hc3NvYy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBSUEsSUFBSSxHQUFHLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFBOztBQUUxQixNQUFNLENBQUMsT0FBTyxHQUFHLFlBQVc7QUFDMUIsU0FBTyxDQUFDLElBQUksQ0FBQyxnRUFBZ0UsQ0FBQyxDQUFBO0FBQzlFLFNBQU8sR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsU0FBUyxDQUFDLENBQUE7Q0FDbEMsQ0FBQSIsImZpbGUiOiJhc3NvYy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogREVQUkVDQVRFRFxuICovXG5cbmxldCBzZXQgPSByZXF1aXJlKCcuL3NldCcpXG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24oKSB7XG4gIGNvbnNvbGUud2Fybignc2V0IGhhcyBiZWVuIGRlcHJlY2F0ZWQsIHBsZWFzZSB1c2UgYHJlcXVpcmUoZm9saWFnZS9zcmMvc2V0YCknKVxuICByZXR1cm4gc2V0LmFwcGx5KHRoaXMsIGFyZ3VtZW50cylcbn1cbiJdfQ== |
@@ -11,2 +11,2 @@ /** | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaXNzb2MuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUlBLElBQUksTUFBTSxHQUFHLE9BQU8sWUFBWSxDQUFBOztBQU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5jdGlvbigpIHtcbiAgY29uc29sZS53YXJuKCdkaXNzb2MgaGFzIGJlZW4gZGVwcmVjYXRlZCwgcGxlYXNlIHVzZSBgcmVxdWlyZShmb2xpYWdlL3NyYy9yZW1vdmVgKScpXG4gIHJldHVybiByZW1vdmUuYXBwbHkodGhpcywgYXJndW1lbnRzKVxufVxuIl19 |
@@ -1,3 +0,1 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
/** | ||
@@ -18,6 +16,9 @@ * A tree data structure that spawns branches pointing to | ||
var Foliage = (function () { | ||
function Foliage(state) { | ||
_classCallCheck(this, Foliage); | ||
function Foliage() { | ||
return Foliage.prototype.constructor.apply(this, arguments); | ||
} | ||
Foliage.prototype = { | ||
constructor: function constructor(state) { | ||
Diode(this); | ||
@@ -30,15 +31,15 @@ | ||
this.commit(state); | ||
} | ||
}, | ||
Foliage.prototype.getPath = function getPath(key) { | ||
getPath: function getPath(key) { | ||
return this._path.concat(key).filter(function (i) { | ||
return i !== void 0; | ||
}); | ||
}; | ||
}, | ||
Foliage.prototype.getRoot = function getRoot() { | ||
getRoot: function getRoot() { | ||
return this._root; | ||
}; | ||
}, | ||
Foliage.prototype.commit = function commit() { | ||
commit: function commit() { | ||
var next = arguments[0] === void 0 ? this.state : arguments[0]; | ||
@@ -57,13 +58,13 @@ | ||
} | ||
}; | ||
}, | ||
Foliage.prototype.clear = function clear() { | ||
clear: function clear() { | ||
this.commit(null); | ||
}; | ||
}, | ||
Foliage.prototype.get = function get(key, fallback) { | ||
get: function get(key, fallback) { | ||
return getIn(this.state, this.getPath(key), fallback); | ||
}; | ||
}, | ||
Foliage.prototype.set = function set(key, value) { | ||
set: function set(key, value) { | ||
if (arguments.length === 1) { | ||
@@ -75,5 +76,5 @@ value = arguments[0]; | ||
this.commit(setIn(this.state, this.getPath(key), value)); | ||
}; | ||
}, | ||
Foliage.prototype.update = function update(key, obj) { | ||
update: function update(key, obj) { | ||
if (arguments.length === 1) { | ||
@@ -87,19 +88,19 @@ obj = arguments[0]; | ||
} | ||
}; | ||
}, | ||
Foliage.prototype.remove = function remove(key) { | ||
remove: function remove(key) { | ||
this.commit(removeIn(this.state, this.getPath(key))); | ||
}; | ||
}, | ||
Foliage.prototype.refine = function refine(key) { | ||
refine: function refine(key) { | ||
return Object.create(this, { | ||
_path: { value: this.getPath(key) } | ||
}); | ||
}; | ||
}, | ||
Foliage.prototype.keys = function keys() { | ||
keys: function keys() { | ||
return Object.keys(this.valueOf() || {}); | ||
}; | ||
}, | ||
Foliage.prototype.values = function values() { | ||
values: function values() { | ||
// An anonymous function is used here instead of | ||
@@ -111,38 +112,37 @@ // calling `this.get` directly because we have no | ||
}, this); | ||
}; | ||
}, | ||
Foliage.prototype.valueOf = function valueOf() { | ||
valueOf: function valueOf() { | ||
return getIn(this.state, this.getPath()); | ||
}; | ||
}, | ||
Foliage.prototype.toJSON = function toJSON() { | ||
toJSON: function toJSON() { | ||
return this.valueOf(); | ||
}; | ||
}, | ||
Foliage.prototype.is = function is(branch) { | ||
is: function is(branch) { | ||
return branch.valueOf() == this.valueOf(); | ||
}; | ||
}, | ||
Foliage.prototype.find = function find(fn, scope) { | ||
find: function find(fn, scope) { | ||
return this.filter(fn, scope)[0]; | ||
}; | ||
}, | ||
Foliage.prototype.includes = function includes(value) { | ||
includes: function includes(value) { | ||
return this.indexOf(value) > -1; | ||
}; | ||
}, | ||
Foliage.prototype.first = function first() { | ||
first: function first() { | ||
return this.values().shift(); | ||
}; | ||
}, | ||
Foliage.prototype.last = function last() { | ||
last: function last() { | ||
return this.values().pop(); | ||
}; | ||
}, | ||
Foliage.prototype.size = function size() { | ||
size: function size() { | ||
return this.values().length; | ||
}; | ||
} | ||
return Foliage; | ||
})(); | ||
}; | ||
@@ -161,2 +161,2 @@ // Add collection methods | ||
module.exports = Foliage; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi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sR0FBRyxNQUFNLENBQUE7Q0FDaEQsQ0FBQSIsImZpbGUiOiJnZXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdpdmVuIGEgbGlzdCBvZiBrZXlzLCByZXR1cm4gYSB2YWx1ZSBvZiBvdXQgYSBnaXZlbiBvYmplY3QuXG4gKiBPcHRpb25hbGx5LCBpZiBhIHZhbHVlIGlzIG5vdCBwcmVzZW50LCByZXR1cm4gYSBmYWxsYmFja1xuICpcbiAqIEBwYXJhbSB7T2JqZWN0fSBvYmogLSBUaGUgdGFyZ2V0IG9iamVjdFxuICogQHBhcmFtIHtBcnJheX0ga2V5cyAtIEEgbGlzdCBvZiBzdHJpbmcga2V5c1xuICogQHBhcmFtIHthbnl9IGZhbGxiYWNrIC0gSWYgdGhlIHZhbHVlIGlzIHVuZGVmaW5lZCwgYSBmYWxsYmFja1xuICovXG5cbmxldCBrZXlQYXRoID0gcmVxdWlyZSgnLi9rZXlQYXRoJylcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiBnZXQodGFyZ2V0LCBrZXlzLCBmYWxsYmFjaykge1xuICBrZXlzID0ga2V5UGF0aChrZXlzKVxuXG4gIGZvciAodmFyIGkgPSAwOyBpIDwga2V5cy5sZW5ndGg7IGkrKykge1xuICAgIGlmICh0YXJnZXQgIT09IHVuZGVmaW5lZCkge1xuICAgICAgdGFyZ2V0ID0gdGFyZ2V0W2tleXNbaV1dXG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBmYWxsYmFja1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiB0YXJnZXQgPT09IHVuZGVmaW5lZCA/IGZhbGxiYWNrIDogdGFyZ2V0XG59XG4iXX0= |
@@ -0,1 +1,3 @@ | ||
function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); } | ||
/** | ||
@@ -21,5 +23,8 @@ * Given a list of keys, non-destructively remove a pathway from an | ||
var head = keys[0]; | ||
var tail = keys.slice(1); | ||
var _keys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KG9iaiwgaGVhZCwgT0JKRUNUKSwgdGFpbClcblxuICAgIC8vIEF1dG9wcnVuZSBrZXlzXG4gICAgaWYgKE9iamVjdC5rZXlzKGdldChjbG9uZSwgaGVhZCwgT0JKRUNUKSkubGVuZ3RoID09PSAwKSB7XG4gICAgICBkZWxldGUgY2xvbmVbaGVhZF1cbiAgICB9XG4gIH0gZWxzZSB7XG4gICAgZGVsZXRlIGNsb25lW2hlYWRdXG4gIH1cblxuICByZXR1cm4gY2xvbmVcbn1cbiJdfQ== |
@@ -0,1 +1,3 @@ | ||
function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); } | ||
/** | ||
@@ -23,5 +25,8 @@ * Given a list of keys, non-destructively assign a value to a | ||
var head = keys[0]; | ||
var tail = keys.slice(1); | ||
var _keys = _toArray(keys); | ||
var head = _keys[0]; | ||
var tail = _keys.slice(1); | ||
if (keys.length) { | ||
@@ -40,2 +45,2 @@ var clone = copy(target); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBU0EsSUFBSSxJQUFJLEdBQUcsT0FBTyxVQUFVLENBQUE7QUFDNUIsSUFBSSxHQUFHLEdBQUksT0FBTyxTQUFTLENBQUE7QUFDM0IsSUFBSSxPQUFPLEdBQUcsT0FBTyxhQUFhLENBQUE7O0FBRWxDLE1BQU0sQ0FBQyxPQUFPLEdBQUcsU0FBUyxHQUFHLENBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxLQUFLLEVBQUU7OztBQUdsRCxNQUFJLEdBQUcsQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLEtBQUssS0FBSyxFQUFFO0FBQy9CLFdBQU8sTUFBTSxDQUFBO0dBQ2Q7O0FBRUQsTUFBSSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQT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L2dldCcpXG5sZXQga2V5UGF0aCA9IHJlcXVpcmUoJy4va2V5UGF0aCcpXG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gc2V0ICh0YXJnZXQsIGtleXMsIHZhbHVlKSB7XG4gIC8vIElmIHRoZSB2YWx1ZSBhbHJlYWR5IGVxdWFscyB0aGUgY3VycmVudCBhc3NpZ25tZW50LFxuICAvLyB0aGVyZSBpcyBubyBuZWVkIHRvIGRvIGFueSB3b3JrXG4gIGlmIChnZXQodGFyZ2V0LCBrZXlzKSA9PT0gdmFsdWUpIHtcbiAgICByZXR1cm4gdGFyZ2V0XG4gIH1cblxuICBrZXlzID0ga2V5UGF0aChrZXlzKVxuXG4gIGxldCBbIGhlYWQsIC4uLnRhaWwgXSA9IGtleXNcblxuICBpZiAoa2V5cy5sZW5ndGgpIHtcbiAgICBsZXQgY2xvbmUgPSBjb3B5KHRhcmdldClcblxuICAgIGlmICh0YWlsLmxlbmd0aCkge1xuICAgICAgY2xvbmVbaGVhZF0gPSBzZXQoZ2V0KGNsb25lLCBoZWFkLCB7fSksIHRhaWwsIHZhbHVlKVxuICAgIH0gZWxzZSB7XG4gICAgICBjbG9uZVtoZWFkXSA9IHZhbHVlXG4gICAgfVxuICAgIHJldHVybiBjbG9uZVxuICB9IGVsc2Uge1xuICAgIHJldHVybiB2YWx1ZVxuICB9XG59XG4iXX0= |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
101969
254
1