fscss 1.1.5 → 1.1.6

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/e/xfscss.min.js +2 -1
  2. package/package.json +2 -2
package/e/xfscss.min.js CHANGED
@@ -5,4 +5,5 @@
5
5
  return;
6
6
  }const style=document.createElement('style');const appendStyle=cssText=> {style.textContent = cssText;document.head.appendChild(style);if (onSuccess)onSuccess(style);};if (type==='text'||type==='auto'|| type==='text/fscss'||type==='text/css'){appendStyle(content);}else if (type==='fromUrl'||type==='URL' ||type==='fromURL'||type==='link') {fetch(content).then(res => {if (!res.ok) throw new Error(`HTTP error! Status: ${res.status}`);
7
7
  return res.text();}).then(css => appendStyle(css)).catch(err => {console.error(`Failed to load CSS from URL: ${content}`, err);if (onError) onError(err.message);});} else {const errorText = `Unsupported type "${type}". Use "text" or "fromUrl".`;console.error(errorText);if(onError) onError(errorText);}}
8
- })})}
8
+
9
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fscss",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Figured Shorthand Cascading Style Sheet",
5
5
  "keywords": [
6
6
  "node",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "dotenv": "^16.0.3",
32
32
  "express": "^4.18.2",
33
- "fscss": "^1.1.5"
33
+ "fscss": "^1.1.6"
34
34
  },
35
35
  "devDependencies": {
36
36
  "chai": "^4.3.4",