@plumeria/utils 2.2.1 → 2.2.2

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.
Files changed (2) hide show
  1. package/dist/transform.js +14 -14
  2. package/package.json +1 -1
package/dist/transform.js CHANGED
@@ -18,17 +18,17 @@ function compileToSingleCSS(object) {
18
18
  Object.entries(value).forEach(([innerProp, innerValue]) => {
19
19
  const atomicMap = new Map();
20
20
  (0, zss_engine_1.processAtomicProps)({ [innerProp]: innerValue }, atomicMap, prop);
21
- const querySheetParts = [];
22
- const queryHashParts = [];
21
+ const querySheets = [];
22
+ const queryHashes = [];
23
23
  for (const [hash, sheet] of atomicMap) {
24
- querySheetParts.push(sheet.replace(`.${hash}`, `.${hash}:not(#\\#):not(#\\#)`));
25
- queryHashParts.push(hash);
24
+ querySheets.push(sheet.replace(`.${hash}`, `.${hash}:not(#\\#):not(#\\#)`));
25
+ queryHashes.push(hash);
26
26
  }
27
- if (querySheetParts.length > 0) {
27
+ if (querySheets.length > 0) {
28
28
  records.push({
29
29
  key: prop + innerProp,
30
- hash: queryHashParts.join(' '),
31
- sheet: querySheetParts.join(''),
30
+ hash: queryHashes.join(' '),
31
+ sheet: querySheets.join(''),
32
32
  });
33
33
  }
34
34
  });
@@ -36,17 +36,17 @@ function compileToSingleCSS(object) {
36
36
  else {
37
37
  const atomicMap = new Map();
38
38
  (0, zss_engine_1.processAtomicProps)({ [prop]: value }, atomicMap);
39
- const baseSheetParts = [];
40
- const baseHashParts = [];
39
+ const sheets = [];
40
+ const hashes = [];
41
41
  for (const [hash, sheet] of atomicMap) {
42
- baseSheetParts.push(sheet);
43
- baseHashParts.push(hash);
42
+ sheets.push(sheet);
43
+ hashes.push(hash);
44
44
  }
45
- if (baseSheetParts.length > 0) {
45
+ if (sheets.length > 0) {
46
46
  records.push({
47
47
  key: prop,
48
- hash: baseHashParts.join(' '),
49
- sheet: baseSheetParts.join(''),
48
+ hash: hashes.join(' '),
49
+ sheet: sheets.join(''),
50
50
  });
51
51
  }
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/utils",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Plumeria Utils",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",