Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atomic-class/core

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomic-class/core - npm Package Compare versions

Comparing version 0.0.1 to 0.1.1

2

dist/es.js

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

var t=function(){function t(t,s){void 0===t&&(t={}),void 0===s&&(s=["default"]),this.props=t,this.states=s}return t.prototype.setProps=function(t){return this.props=t,this},t.prototype.setStates=function(t){return this.states=t,this},t.prototype.setState=function(t){var s=this;return this.props&&this.props[t]&&-1===this.states.indexOf(t)&&(this.props[t].overlap?this.states.push(t):(this.states=this.states.filter((function(t){return 1==s.props[t].overlap})),this.states.unshift(t))),this},t.prototype.unsetState=function(t){return this.props&&this.props[t]&&this.states.indexOf(t)>-1&&(this.states=this.states.filter((function(s){return s!==t})),!0!==this.props[t].overlap&&this.states.unshift("default")),this},t}();export{t as Status};
function n(n){return 0===n.length?[]:n.split(/\s+/)}function r(r,e){var t=n(r);return-1===t.indexOf(e)?(t.push(e),t.join(" ")):r}function e(r,e){var t=n(r),i=n(e);return(t=t.filter((function(n){return-1==i.indexOf(n)}))).join(" ")}function t(r,e){return n(r).indexOf(e)>-1}var i=Object.freeze({__proto__:null,split:n,add:r,remove:e,has:t});export{r as add,t as has,e as remove,n as split,i as state};
//# sourceMappingURL=es.js.map

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

!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?s(exports):"function"==typeof define&&define.amd?define(["exports"],s):s((t="undefined"!=typeof globalThis?globalThis:t||self).core={})}(this,(function(t){"use strict";var s=function(){function t(t,s){void 0===t&&(t={}),void 0===s&&(s=["default"]),this.props=t,this.states=s}return t.prototype.setProps=function(t){return this.props=t,this},t.prototype.setStates=function(t){return this.states=t,this},t.prototype.setState=function(t){var s=this;return this.props&&this.props[t]&&-1===this.states.indexOf(t)&&(this.props[t].overlap?this.states.push(t):(this.states=this.states.filter((function(t){return 1==s.props[t].overlap})),this.states.unshift(t))),this},t.prototype.unsetState=function(t){return this.props&&this.props[t]&&this.states.indexOf(t)>-1&&(this.states=this.states.filter((function(s){return s!==t})),!0!==this.props[t].overlap&&this.states.unshift("default")),this},t}();t.Status=s,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).core={})}(this,(function(e){"use strict";function n(e){return 0===e.length?[]:e.split(/\s+/)}function t(e,t){var o=n(e);return-1===o.indexOf(t)?(o.push(t),o.join(" ")):e}function o(e,t){var o=n(e),i=n(t);return(o=o.filter((function(e){return-1==i.indexOf(e)}))).join(" ")}function i(e,t){return n(e).indexOf(t)>-1}var r=Object.freeze({__proto__:null,split:n,add:t,remove:o,has:i});e.add=t,e.has=i,e.remove=o,e.split=n,e.state=r,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=umd.js.map
{
"name": "@atomic-class/core",
"version": "0.0.1",
"version": "0.1.1",
"description": "core of atomic-class",

@@ -9,4 +9,2 @@ "main": "dist/umd.js",

"scripts": {
"preinstall": "npx only-allow pnpm",
"preinstall:all": "npx only-allow pnpm",
"build": "npm run build:umd && npm run build:es",

@@ -13,0 +11,0 @@ "build:umd": "rollup -c ../rollup.config.js --environment format:umd",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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