Socket
Socket
Sign inDemoInstall

@fower/store

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fower/store - npm Package Compare versions

Comparing version 1.27.0 to 1.28.0

3

dist/index.d.ts

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

import { Atom } from '@fower/atom';
import { FowerPlugin, Configuration, Theme, CSSObject } from '@fower/types';

@@ -8,4 +7,2 @@ import { PartialThemeConfig, PartialConfig } from './types';

compositions: Map<string, any>;
serverCache: any;
atomCache: Map<string, Atom>;
get theme(): Theme;

@@ -12,0 +9,0 @@ getConfig: () => Configuration;

@@ -8,3 +8,2 @@ 'use strict';

var deepmerge = _interopDefault(require('deepmerge'));
var atom = require('@fower/atom');

@@ -47,4 +46,3 @@ function _defineProperties(target, props) {

function Store() {
var _globalThis$fower,
_this = this;
var _this = this;

@@ -64,18 +62,3 @@ this.config = {

this.compositions = new Map();
this.serverCache = ((_globalThis$fower = globalThis.fower) == null ? void 0 : _globalThis$fower.atomCache) || [];
this.atomCache = new Map(this.serverCache.map(function (cache) {
var key = cache[0],
value = cache[1];
var temp = new atom.Atom({
propKey: 'css',
propValue: {}
});
for (var c in value) {
temp[c] = value[c];
}
return [key, temp];
}));
this.getConfig = function () {

@@ -152,4 +135,5 @@ return _this.config;

var store = /*#__PURE__*/new Store();
globalThis.__fower_store__ = store;
exports.store = store;
//# sourceMappingURL=store.cjs.development.js.map

2

dist/store.cjs.production.min.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("deepmerge"))&&"object"==typeof e&&"default"in e?e.default:e,n=require("@fower/atom");function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}exports.store=new(function(){function e(){var e,i=this;this.config={unit:"px",inline:!1,prefix:"",pseudos:[],theme:{breakpoints:{},modes:[]},plugins:[]},this.compositions=new Map,this.serverCache=(null==(e=globalThis.fower)?void 0:e.atomCache)||[],this.atomCache=new Map(this.serverCache.map((function(e){var t=e[0],o=e[1],i=new n.Atom({propKey:"css",propValue:{}});for(var r in o)i[r]=o[r];return[t,i]}))),this.getConfig=function(){return i.config},this.setConfig=function(e,n){void 0===n&&(n="deepmerge"),i.config="replace"===n?e:"merge"===n?o({},i.config,e):t(i.config,e)},this.getTheme=function(){return i.config.theme},this.setTheme=function(e){i.config.theme=t(i.config.theme||{},e)},this.use=function(){var e;(e=i.config.plugins).push.apply(e,arguments)},this.addAtom=function(e,t){var n={isMatch:function(t){return"string"==typeof e?t===e:e instanceof RegExp&&e.test(t)},handleAtom:"function"==typeof t?t:function(e){return e.style=t,e}};return i.use(n),n},this.composeAtom=function(e,t){i.compositions.get(e)?console.warn(e,"is existed"):i.compositions.set(e,t)}}var i;return(i=[{key:"theme",get:function(){return this.config.theme}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,i),e}());
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("deepmerge"))&&"object"==typeof e&&"default"in e?e.default:e;function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var o=new(function(){function e(){var e=this;this.config={unit:"px",inline:!1,prefix:"",pseudos:[],theme:{breakpoints:{},modes:[]},plugins:[]},this.compositions=new Map,this.getConfig=function(){return e.config},this.setConfig=function(o,i){void 0===i&&(i="deepmerge"),e.config="replace"===i?o:"merge"===i?n({},e.config,o):t(e.config,o)},this.getTheme=function(){return e.config.theme},this.setTheme=function(n){e.config.theme=t(e.config.theme||{},n)},this.use=function(){var t;(t=e.config.plugins).push.apply(t,arguments)},this.addAtom=function(t,n){var o={isMatch:function(e){return"string"==typeof t?e===t:t instanceof RegExp&&t.test(e)},handleAtom:"function"==typeof n?n:function(e){return e.style=n,e}};return e.use(o),o},this.composeAtom=function(t,n){e.compositions.get(t)?console.warn(t,"is existed"):e.compositions.set(t,n)}}var o;return(o=[{key:"theme",get:function(){return this.config.theme}}])&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,o),e}());globalThis.__fower_store__=o,exports.store=o;
//# sourceMappingURL=store.cjs.production.min.js.map
import deepmerge from 'deepmerge';
import { Atom } from '@fower/atom';

@@ -40,4 +39,3 @@ function _defineProperties(target, props) {

function Store() {
var _globalThis$fower,
_this = this;
var _this = this;

@@ -57,18 +55,3 @@ this.config = {

this.compositions = new Map();
this.serverCache = ((_globalThis$fower = globalThis.fower) == null ? void 0 : _globalThis$fower.atomCache) || [];
this.atomCache = new Map(this.serverCache.map(function (cache) {
var key = cache[0],
value = cache[1];
var temp = new Atom({
propKey: 'css',
propValue: {}
});
for (var c in value) {
temp[c] = value[c];
}
return [key, temp];
}));
this.getConfig = function () {

@@ -145,4 +128,5 @@ return _this.config;

var store = /*#__PURE__*/new Store();
globalThis.__fower_store__ = store;
export { store };
//# sourceMappingURL=store.esm.js.map
{
"name": "@fower/store",
"version": "1.27.0",
"version": "1.28.0",
"license": "MIT",

@@ -24,7 +24,6 @@ "main": "dist/index.js",

"dependencies": {
"@fower/atom": "^1.27.0",
"@fower/types": "^1.27.0",
"@fower/types": "^1.28.0",
"deepmerge": "^4.2.2"
},
"gitHead": "ed8b71692d5c1a6f23279c0f6b4bb47cf18adacf"
"gitHead": "5bf8d61bd49f8a82aebd6492ed162584430fdf21"
}

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc