@symbo.ls/scratch 2.10.244 → 2.10.245

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/cjs/index.js CHANGED
@@ -1016,8 +1016,7 @@ var colorStringToRgbaArray = (color) => {
1016
1016
  return;
1017
1017
  color = import_globals.window.getComputedStyle(elem).color;
1018
1018
  import_globals.document.body.removeChild(elem);
1019
- } else
1020
- console.warn("Color conversion failed, no document or window object found");
1019
+ }
1021
1020
  }
1022
1021
  if (color.indexOf("rgb") === 0) {
1023
1022
  if (color.indexOf("rgba") === -1)
package/dist/cjs/set.js CHANGED
@@ -1135,8 +1135,7 @@ var colorStringToRgbaArray = (color) => {
1135
1135
  return;
1136
1136
  color = import_globals.window.getComputedStyle(elem).color;
1137
1137
  import_globals.document.body.removeChild(elem);
1138
- } else
1139
- console.warn("Color conversion failed, no document or window object found");
1138
+ }
1140
1139
  }
1141
1140
  if (color.indexOf("rgb") === 0) {
1142
1141
  if (color.indexOf("rgba") === -1)
@@ -1108,8 +1108,7 @@ var colorStringToRgbaArray = (color) => {
1108
1108
  return;
1109
1109
  color = import_globals.window.getComputedStyle(elem).color;
1110
1110
  import_globals.document.body.removeChild(elem);
1111
- } else
1112
- console.warn("Color conversion failed, no document or window object found");
1111
+ }
1113
1112
  }
1114
1113
  if (color.indexOf("rgb") === 0) {
1115
1114
  if (color.indexOf("rgba") === -1)
@@ -1131,8 +1131,7 @@ var colorStringToRgbaArray = (color) => {
1131
1131
  return;
1132
1132
  color = import_globals.window.getComputedStyle(elem).color;
1133
1133
  import_globals.document.body.removeChild(elem);
1134
- } else
1135
- console.warn("Color conversion failed, no document or window object found");
1134
+ }
1136
1135
  }
1137
1136
  if (color.indexOf("rgb") === 0) {
1138
1137
  if (color.indexOf("rgba") === -1)
@@ -115,8 +115,7 @@ var colorStringToRgbaArray = (color) => {
115
115
  return;
116
116
  color = import_globals.window.getComputedStyle(elem).color;
117
117
  import_globals.document.body.removeChild(elem);
118
- } else
119
- console.warn("Color conversion failed, no document or window object found");
118
+ }
120
119
  }
121
120
  if (color.indexOf("rgb") === 0) {
122
121
  if (color.indexOf("rgba") === -1)
@@ -915,8 +915,7 @@ var colorStringToRgbaArray = (color) => {
915
915
  return;
916
916
  color = import_globals.window.getComputedStyle(elem).color;
917
917
  import_globals.document.body.removeChild(elem);
918
- } else
919
- console.warn("Color conversion failed, no document or window object found");
918
+ }
920
919
  }
921
920
  if (color.indexOf("rgb") === 0) {
922
921
  if (color.indexOf("rgba") === -1)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "2.10.244",
5
+ "version": "2.10.245",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -32,5 +32,5 @@
32
32
  "peerDependencies": {
33
33
  "@emotion/css": "^11.5.0"
34
34
  },
35
- "gitHead": "c2da617bd6c0178f314e8183dbcf07f0e8b51f78"
35
+ "gitHead": "779c21d9c24e5accb881506303cd25ab7e1c944c"
36
36
  }
@@ -31,7 +31,7 @@ export const colorStringToRgbaArray = color => {
31
31
  if (elem.style.color === flag || elem.style.color === '') return // color parse failed
32
32
  color = window.getComputedStyle(elem).color
33
33
  document.body.removeChild(elem)
34
- } else console.warn('Color conversion failed, no document or window object found')
34
+ }
35
35
  }
36
36
 
37
37
  // convert 'rgb(R,G,B)' to 'rgb(R,G,B,A)' which looks awful but will pass the regxep below
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 symbo.ls
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.