@plumeria/core 4.1.1 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/css.js CHANGED
@@ -1,15 +1,16 @@
1
1
  function errorFn(fn) {
2
2
  throw new Error(`css.${fn} requires bundler-plugin setup`);
3
3
  }
4
+ const defined = new Set();
4
5
  function props(...rules) {
5
- const defined = [];
6
+ defined.clear();
6
7
  let result = "";
7
8
  for (let i = rules.length - 1; i >= 0; i--) {
8
9
  const arg = rules[i];
9
10
  if (!arg || typeof arg !== "object") continue;
10
11
  let chunk = "";
11
- for (const key in arg) if (arg[key] && !defined.includes(key)) {
12
- defined.push(key);
12
+ for (const key in arg) if (arg[key] && !defined.has(key)) {
13
+ defined.add(key);
13
14
  chunk += chunk ? " " + arg[key] : arg[key];
14
15
  }
15
16
  if (chunk) result = result ? chunk + " " + result : chunk;
package/dist/css.mjs CHANGED
@@ -1,15 +1,16 @@
1
1
  function errorFn(fn) {
2
2
  throw new Error(`css.${fn} requires bundler-plugin setup`);
3
3
  }
4
+ const defined = new Set();
4
5
  function props(...rules) {
5
- const defined = [];
6
+ defined.clear();
6
7
  let result = "";
7
8
  for (let i = rules.length - 1; i >= 0; i--) {
8
9
  const arg = rules[i];
9
10
  if (!arg || typeof arg !== "object") continue;
10
11
  let chunk = "";
11
- for (const key in arg) if (arg[key] && !defined.includes(key)) {
12
- defined.push(key);
12
+ for (const key in arg) if (arg[key] && !defined.has(key)) {
13
+ defined.add(key);
13
14
  chunk += chunk ? " " + arg[key] : arg[key];
14
15
  }
15
16
  if (chunk) result = result ? chunk + " " + result : chunk;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "4.1.1",
3
+ "version": "4.1.3",
4
4
  "description": "An atomic CSS runtime designed to disappear.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",