string-extract-sass-vars 4.2.1 → 4.2.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/README.md CHANGED
@@ -21,6 +21,8 @@
21
21
  <img src="https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square" alt="MIT Licence">
22
22
  </p>
23
23
 
24
+ **No 3rd party dependencies.** All dependencies and devDependencies, checked recursively, are Codsen packages.
25
+
24
26
  ## Install
25
27
 
26
28
  This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 2.1.0 (`npm i string-extract-sass-vars@2.1.0`).
@@ -67,7 +69,7 @@ $customValue3: 10;`),
67
69
 
68
70
  ## Documentation
69
71
 
70
- Please [visit codsen.com](https://codsen.com/os/string-extract-sass-vars/) for a full description of the API. If you’re looking for the **Changelog**, it’s [here](https://github.com/codsen/codsen/blob/main/packages/string-extract-sass-vars/CHANGELOG.md).
72
+ Please [visit codsen.com](https://codsen.com/os/string-extract-sass-vars/) for a full description of the API. For **Changelog**, see [raw md on GitHub](https://github.com/codsen/codsen/blob/main/packages/string-extract-sass-vars/CHANGELOG.md) or [the website](https://codsen.com/os/string-extract-sass-vars/changelog).
71
73
 
72
74
  ## Contributing
73
75
 
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * @name string-extract-sass-vars
3
3
  * @fileoverview Parse SASS variables file into a plain object of CSS key-value pairs
4
- * @version 4.2.1
4
+ * @version 4.2.3
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-extract-sass-vars/}
8
8
  */
9
9
 
10
- import{formatDiagnosticValue as p}from"codsen-utils";var h="4.2.1";var V=h,g="\\",S={throwIfEmpty:!1,cb:null};function E(t,n){if(typeof t!="string")return{};if(n&&typeof n!="object")throw new Error(`string-extract-sass-vars/extractVars(): [THROW_ID_01] the second input argument should be a plain object but it was given as ${p(n,4)} (type ${typeof n})`);let r={...S,...n};if(r.cb&&typeof r.cb!="function")throw new Error(`string-extract-sass-vars/extractVars(): [THROW_ID_02] resolvedOpts.cb should be function! But it was given as ${p(n,4)} (type ${typeof n})`);let f=t.length,a=null,l=null,u=null,i=null,o=null,b=null,s=!1,m=!1,$=!1,c={};for(let e=0;e<f;e++)!s&&o&&t[e]===o&&t[e-1]!==g?o=null:!o&&!s&&t[e-1]!==g&&`'"`.includes(t[e])&&(o=t[e]),m&&`\r
10
+ import{formatDiagnosticValue as p}from"codsen-utils";var h="4.2.3";var V=h,g="\\",S={throwIfEmpty:!1,cb:null};function E(t,n){if(typeof t!="string")return{};if(n&&typeof n!="object")throw new Error(`string-extract-sass-vars/extractVars(): [THROW_ID_01] the second input argument should be a plain object but it was given as ${p(n,4)} (type ${typeof n})`);let r={...S,...n};if(r.cb&&typeof r.cb!="function")throw new Error(`string-extract-sass-vars/extractVars(): [THROW_ID_02] resolvedOpts.cb should be function! But it was given as ${p(n,4)} (type ${typeof n})`);let f=t.length,a=null,l=null,u=null,i=null,o=null,b=null,s=!1,m=!1,$=!1,c={};for(let e=0;e<f;e++)!s&&o&&t[e]===o&&t[e-1]!==g?o=null:!o&&!s&&t[e-1]!==g&&`'"`.includes(t[e])&&(o=t[e]),m&&`\r
11
11
  `.includes(t[e])&&(m=!1),!s&&t[e]==="/"&&t[e+1]==="/"&&(m=!0),$&&t[e-2]==="*"&&t[e-1]==="/"&&($=!1),!s&&t[e]==="/"&&t[e+1]==="*"&&($=!0),s=m||$,!s&&t[e]==="$"&&a===null&&(a=e+1),!s&&l!==null&&!o&&t[e]===";"&&(i=t.slice(`"'`.includes(t[l])?l+1:l,(b||0)+1),/^-?\d*\.?\d*$/.test(i)&&(i=+i),c[u]=r.cb?r.cb(i):i,a=null,l=null,u=null,i=null),!s&&u!==null&&t[e]?.trim()&&l===null&&(l=e),!s&&!u&&a!==null&&t[e]===":"&&!o&&(u=t.slice(a,e)),`'"`.includes(t[e])||(b=e);if(!Object.keys(c).length&&r.throwIfEmpty)throw new Error("string-extract-sass-vars/extractVars(): [THROW_ID_03] no keys extracted! (setting resolvedOpts.opts)");return c}export{S as defaults,E as extractVars,V as version};
@@ -1,17 +1,25 @@
1
1
  /**
2
2
  * @name string-extract-sass-vars
3
3
  * @fileoverview Parse SASS variables file into a plain object of CSS key-value pairs
4
- * @version 4.2.1
4
+ * @version 4.2.3
5
5
  * @author Roy Revelt
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/string-extract-sass-vars/}
8
8
  */
9
9
 
10
- "use strict";var stringExtractSassVars=(()=>{var S=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames,O=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var x=(e,r,t)=>r in e?S(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,A=(e,r)=>{for(var t in r||(r={}))k.call(r,t)&&x(e,t,r[t]);if(O)for(var t of O(r))T.call(r,t)&&x(e,t,r[t]);return e};var B=(e,r)=>{for(var t in r)S(e,t,{get:r[t],enumerable:!0})},M=(e,r,t,l)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of I(r))!k.call(e,o)&&o!==t&&S(e,o,{get:()=>r[o],enumerable:!(l=W(r,o))||l.enumerable});return e};var L=e=>M(S({},"__esModule",{value:!0}),e);var H={};B(H,{defaults:()=>R,extractVars:()=>_,version:()=>J});function P(){let e=[],r=0,t=!1;return{append(l){return t?!1:r+l.length>1999?(e.push("\u2026"),r+=1,t=!0,!1):(e.push(l),r+=l.length,!0)},result(){return e.join("")},stopped(){return t}}}function U(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function w(e,r){if(e.append('"')){for(let t=0;t<r.length&&!e.stopped();t+=1){let l=r.charCodeAt(t);l===34?e.append('\\"'):l===92?e.append("\\\\"):l===8?e.append("\\b"):l===9?e.append("\\t"):l===10?e.append("\\n"):l===12?e.append("\\f"):l===13?e.append("\\r"):l<32||l===8232||l===8233||l>=55296&&l<=57343?e.append(U(l)):e.append(r[t])}e.append('"')}}function Q(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function j(e,r){e.append("Symbol(");let t=String(r);t.length>8&&w(e,t.slice(7,-1)),e.append(")")}function D(e,r){typeof r=="symbol"?j(e,r):w(e,String(r))}function C(e,r=0){let t=P(),l=r===4?4:0,o=new WeakSet,u=0;function m(n){l&&t.append(" ".repeat(n*l))}function a(n,s){n&&t.append(","),l&&(t.append("\n"),m(s+1))}function p(n,s,i){l&&s&&(t.append("\n"),m(i)),t.append(n)}function v(n,s){Object.prototype.hasOwnProperty.call(n,"value")?$(n.value,s):t.append(Q(n))}function c(n,s){let i;try{i=Reflect.getOwnPropertyDescriptor(n,"length")}catch(h){t.append("[Uninspectable]");return}let f=i==null?void 0:i.value;if(!Number.isSafeInteger(f)||f<0){t.append("[Uninspectable]");return}t.append("[");let d=!1;for(let h=0;h<f&&!t.stopped();h+=1){if(a(d,s),d=!0,u>=50){t.append("[MaxEntries]");break}u+=1;let y;try{y=Reflect.getOwnPropertyDescriptor(n,String(h))}catch(K){t.append("[Uninspectable]");continue}y!=null&&y.enumerable?v(y,s+1):t.append("[Empty]")}p("]",d,s)}function g(n,s){let i;try{i=Reflect.ownKeys(n)}catch(d){t.append("[Uninspectable]");return}t.append("{");let f=!1;for(let d of i){if(t.stopped())break;if(u>=50){a(f,s),f=!0,w(t,"\u2026"),t.append(l?": ":":"),t.append("[MaxEntries]");break}u+=1;let h;try{h=Reflect.getOwnPropertyDescriptor(n,d)}catch(y){a(f,s),f=!0,D(t,d),t.append(l?": ":":"),t.append("[Uninspectable]");continue}h!=null&&h.enumerable&&(a(f,s),f=!0,D(t,d),t.append(l?": ":":"),v(h,s+1))}p("}",f,s)}function b(n,s){if(o.has(n)){t.append("[Circular]");return}if(s>=5){t.append("[MaxDepth]");return}let i;try{i=Array.isArray(n)}catch(f){t.append("[Uninspectable]");return}o.add(n);try{i?c(n,s):g(n,s)}finally{o.delete(n)}}function $(n,s){n===null?t.append("null"):typeof n=="string"?w(t,n):typeof n=="number"?t.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?t.append(n?"true":"false"):typeof n>"u"?t.append("undefined"):typeof n=="bigint"?t.append("".concat(n,"n")):typeof n=="symbol"?j(t,n):typeof n=="function"?t.append("[Function]"):b(n,s)}try{return $(e,0),t.result()}catch(n){return"[Uninspectable]"}}var Z=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var E,q=(E=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:E.get;var Y=Date.prototype.getTime;var V="4.2.1";var J=V,N="\\",R={throwIfEmpty:!1,cb:null};function _(e,r){var s;if(typeof e!="string")return{};if(r&&typeof r!="object")throw new Error("string-extract-sass-vars/extractVars(): [THROW_ID_01] the second input argument should be a plain object but it was given as ".concat(C(r,4)," (type ").concat(typeof r,")"));let t=A(A({},R),r);if(t.cb&&typeof t.cb!="function")throw new Error("string-extract-sass-vars/extractVars(): [THROW_ID_02] resolvedOpts.cb should be function! But it was given as ".concat(C(r,4)," (type ").concat(typeof r,")"));let l=e.length,o=null,u=null,m=null,a=null,p=null,v=null,c=!1,g=!1,b=!1,$={};for(let i=0;i<l;i++)!c&&p&&e[i]===p&&e[i-1]!==N?p=null:!p&&!c&&e[i-1]!==N&&"'\"".includes(e[i])&&(p=e[i]),g&&"\r\n".includes(e[i])&&(g=!1),!c&&e[i]==="/"&&e[i+1]==="/"&&(g=!0),b&&e[i-2]==="*"&&e[i-1]==="/"&&(b=!1),!c&&e[i]==="/"&&e[i+1]==="*"&&(b=!0),c=g||b,!c&&e[i]==="$"&&o===null&&(o=i+1),!c&&u!==null&&!p&&e[i]===";"&&(a=e.slice("\"'".includes(e[u])?u+1:u,(v||0)+1),/^-?\d*\.?\d*$/.test(a)&&(a=+a),$[m]=t.cb?t.cb(a):a,o=null,u=null,m=null,a=null),!c&&m!==null&&((s=e[i])!=null&&s.trim())&&u===null&&(u=i),!c&&!m&&o!==null&&e[i]===":"&&!p&&(m=e.slice(o,i)),"'\"".includes(e[i])||(v=i);if(!Object.keys($).length&&t.throwIfEmpty)throw new Error("string-extract-sass-vars/extractVars(): [THROW_ID_03] no keys extracted! (setting resolvedOpts.opts)");return $}return L(H);})();
10
+ "use strict";var stringExtractSassVars=(()=>{var v=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames,j=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var x=(e,_,t)=>_ in e?v(e,_,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[_]=t,O=(e,_)=>{for(var t in _||(_={}))C.call(_,t)&&x(e,t,_[t]);if(j)for(var t of j(_))L.call(_,t)&&x(e,t,_[t]);return e};var U=(e,_)=>{for(var t in _)v(e,t,{get:_[t],enumerable:!0})},z=(e,_,t,l)=>{if(_&&typeof _=="object"||typeof _=="function")for(let s of B(_))!C.call(e,s)&&s!==t&&v(e,s,{get:()=>_[s],enumerable:!(l=T(_,s))||l.enumerable});return e};var F=e=>z(v({},"__esModule",{value:!0}),e);var ee={};U(ee,{defaults:()=>M,extractVars:()=>X,version:()=>Y});function J(){let e=[],_=0,t=!1;return{append(l){return t?!1:_+l.length>1999?(e.push("\u2026"),_+=1,t=!0,!1):(e.push(l),_+=l.length,!0)},result(){return e.join("")},stopped(){return t}}}function Q(e){return"\\u".concat(e.toString(16).padStart(4,"0"))}function w(e,_){if(e.append('"')){for(let t=0;t<_.length&&!e.stopped();t+=1){let l=_.charCodeAt(t);l===34?e.append('\\"'):l===92?e.append("\\\\"):l===8?e.append("\\b"):l===9?e.append("\\t"):l===10?e.append("\\n"):l===12?e.append("\\f"):l===13?e.append("\\r"):l<32||l===8232||l===8233||l>=55296&&l<=57343?e.append(Q(l)):e.append(_[t])}e.append('"')}}function q(e){return e.get&&e.set?"[Getter/Setter]":e.get?"[Getter]":e.set?"[Setter]":"[Accessor]"}function D(e,_){e.append("Symbol(");let t=String(_);t.length>8&&w(e,t.slice(7,-1)),e.append(")")}function k(e,_){typeof _=="symbol"?D(e,_):w(e,String(_))}function S(e,_=0){let t=J(),l=_===4?4:0,s=new WeakSet,o=0;function h(n){l&&t.append(" ".repeat(n*l))}function u(n,i){n&&t.append(","),l&&(t.append("\n"),h(i+1))}function f(n,i,r){l&&i&&(t.append("\n"),h(r)),t.append(n)}function $(n,i){Object.prototype.hasOwnProperty.call(n,"value")?b(n.value,i):t.append(q(n))}function c(n,i){let r;try{r=Reflect.getOwnPropertyDescriptor(n,"length")}catch(p){t.append("[Uninspectable]");return}let a=r==null?void 0:r.value;if(!Number.isSafeInteger(a)||a<0){t.append("[Uninspectable]");return}t.append("[");let g=!1;for(let p=0;p<a&&!t.stopped();p+=1){if(u(g,i),g=!0,o>=50){t.append("[MaxEntries]");break}o+=1;let y;try{y=Reflect.getOwnPropertyDescriptor(n,String(p))}catch(te){t.append("[Uninspectable]");continue}y!=null&&y.enumerable?$(y,i+1):t.append("[Empty]")}f("]",g,i)}function m(n,i){let r;try{r=Reflect.ownKeys(n)}catch(g){t.append("[Uninspectable]");return}t.append("{");let a=!1;for(let g of r){if(t.stopped())break;if(o>=50){u(a,i),a=!0,w(t,"\u2026"),t.append(l?": ":":"),t.append("[MaxEntries]");break}o+=1;let p;try{p=Reflect.getOwnPropertyDescriptor(n,g)}catch(y){u(a,i),a=!0,k(t,g),t.append(l?": ":":"),t.append("[Uninspectable]");continue}p!=null&&p.enumerable&&(u(a,i),a=!0,k(t,g),t.append(l?": ":":"),$(p,i+1))}f("}",a,i)}function d(n,i){if(s.has(n)){t.append("[Circular]");return}if(i>=5){t.append("[MaxDepth]");return}let r;try{r=Array.isArray(n)}catch(a){t.append("[Uninspectable]");return}s.add(n);try{r?c(n,i):m(n,i)}finally{s.delete(n)}}function b(n,i){n===null?t.append("null"):typeof n=="string"?w(t,n):typeof n=="number"?t.append(Object.is(n,-0)?"-0":String(n)):typeof n=="boolean"?t.append(n?"true":"false"):typeof n>"u"?t.append("undefined"):typeof n=="bigint"?t.append("".concat(n,"n")):typeof n=="symbol"?D(t,n):typeof n=="function"?t.append("[Function]"):d(n,i)}try{return b(e,0),t.result()}catch(n){return"[Uninspectable]"}}var H=["_16_0_a_0_4_0_5_m_1_u_1_cp_4_b_e_4_7_0_1_0_3l_4_1_1_2_3_1_0_6_0_1_2_1_0_1_j_1_2a_1_3u_8_4l_1_11_2_0_","6_14_1z_q_4_3_19_16_z_1_1_2q_1_0_f_1_7_1_a_2_2_0_g_0_1_t_t_2g_b_0_o_w_9_1_4_0_5_l_4_0_9_0_3_0_n_o_7_","a_5_n_1_6_g_15_1m_1h_3_0_i_0_7_9_f_f_4_7_2_1_2_l_1_6_1_0_3_3_3_0_g_0_d_1_1_2_e_1_a_0_8_5_4_1_2_l_1_6","_1_1_1_1_1_1_v_3_1_0_j_2_g_8_1_2_1_l_1_6_1_1_1_4_3_0_i_0_f_1_n_0_b_7_2_1_2_l_1_6_1_1_1_4_3_0_u_1_1_2","_f_0_h_0_1_5_3_2_1_3_3_1_1_0_1_1_3_1_3_2_3_b_m_0_1g_7_1_2_1_m_1_f_3_0_q_2_1_1_2_1_u_0_4_7_1_2_1_m_1_","9_1_4_3_0_u_2_1_1_f_1_h_8_1_2_1_14_2_0_g_0_5_2_8_2_o_5_5_h_3_n_1_8_1_0_2_6_1m_1b_1_1_c_6_1m_1_1_0_1_","4_1_n_1_0_1_9_1_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t_i_17_dg_r_6c_t_2_0_5r_u_1_2_1_1_1_6_2_4_9_1_68_6_1_3_1_1_1_e_1_5g_1n_1v_7_","0_xg_3_1_q_1_1_1_0_2_0_1_9_1_3_1_0_1_0_6_0_4_0_1_0_1_0_1_2_1_1_1_0_2_0_1_0_1_0_1_0_1_0_1_1_1_0_2_3_1","_6_1_3_1_3_1_0_1_9_1_g_5_2_1_4_1_g_3es_wyn_w_3dp_2_4gd_2_5rk_f_h9_1wi_f1_15u_3t6_5_6jt"].join(""),A=H.slice(1).split("_"),K=[],E=127;for(let e=0;e<A.length;e+=2){let _=E+1+Number.parseInt(A[e],36),t=_+Number.parseInt(A[e+1],36);K.push([_,t]),E=t}var ie=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);var G=Function.prototype.toString,se=G.call(Object);var oe=Map.prototype.entries,ue=Set.prototype.values;var V,ae=(V=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength"))==null?void 0:V.get,N,ce=(N=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags"))==null?void 0:N.get,R,fe=(R=Object.getOwnPropertyDescriptor(RegExp.prototype,"global"))==null?void 0:R.get,I,pe=(I=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:I.get,he=RegExp.prototype.test;var ge=Date.prototype.getTime;var P="4.2.3";var Y=P,W="\\",M={throwIfEmpty:!1,cb:null};function X(e,_){var i;if(typeof e!="string")return{};if(_&&typeof _!="object")throw new Error("string-extract-sass-vars/extractVars(): [THROW_ID_01] the second input argument should be a plain object but it was given as ".concat(S(_,4)," (type ").concat(typeof _,")"));let t=O(O({},M),_);if(t.cb&&typeof t.cb!="function")throw new Error("string-extract-sass-vars/extractVars(): [THROW_ID_02] resolvedOpts.cb should be function! But it was given as ".concat(S(_,4)," (type ").concat(typeof _,")"));let l=e.length,s=null,o=null,h=null,u=null,f=null,$=null,c=!1,m=!1,d=!1,b={};for(let r=0;r<l;r++)!c&&f&&e[r]===f&&e[r-1]!==W?f=null:!f&&!c&&e[r-1]!==W&&"'\"".includes(e[r])&&(f=e[r]),m&&"\r\n".includes(e[r])&&(m=!1),!c&&e[r]==="/"&&e[r+1]==="/"&&(m=!0),d&&e[r-2]==="*"&&e[r-1]==="/"&&(d=!1),!c&&e[r]==="/"&&e[r+1]==="*"&&(d=!0),c=m||d,!c&&e[r]==="$"&&s===null&&(s=r+1),!c&&o!==null&&!f&&e[r]===";"&&(u=e.slice("\"'".includes(e[o])?o+1:o,($||0)+1),/^-?\d*\.?\d*$/.test(u)&&(u=+u),b[h]=t.cb?t.cb(u):u,s=null,o=null,h=null,u=null),!c&&h!==null&&((i=e[r])!=null&&i.trim())&&o===null&&(o=r),!c&&!h&&s!==null&&e[r]===":"&&!f&&(h=e.slice(s,r)),"'\"".includes(e[r])||($=r);if(!Object.keys(b).length&&t.throwIfEmpty)throw new Error("string-extract-sass-vars/extractVars(): [THROW_ID_03] no keys extracted! (setting resolvedOpts.opts)");return b}return F(ee);})();
11
+ /**
12
+ * @name codsen-format-diagnostic-value
13
+ * @fileoverview Safely format untrusted JavaScript values for diagnostics
14
+ * @version 1.1.1
15
+ * @author Roy Revelt
16
+ * @license MIT
17
+ * {@link https://codsen.com/os/codsen-format-diagnostic-value/}
18
+ */
11
19
  /**
12
20
  * @name codsen-utils
13
21
  * @fileoverview Various utility functions
14
- * @version 1.9.0
22
+ * @version 1.10.1
15
23
  * @author Roy Revelt
16
24
  * @license MIT
17
25
  * {@link https://codsen.com/os/codsen-utils/}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-extract-sass-vars",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "Parse SASS variables file into a plain object of CSS key-value pairs",
5
5
  "keywords": [
6
6
  "css",
@@ -69,10 +69,10 @@
69
69
  "various": {}
70
70
  },
71
71
  "dependencies": {
72
- "codsen-utils": "^1.9.0"
72
+ "codsen-utils": "^1.10.1"
73
73
  },
74
74
  "devDependencies": {
75
- "color-shorthand-hex-to-six-digit": "^5.2.1"
75
+ "color-shorthand-hex-to-six-digit": "^5.2.3"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=18.20.8"