sass 1.100.0 → 1.101.0

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/package.json +1 -1
  2. package/sass.dart.js +28 -10
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"sass","description":"A pure JavaScript implementation of Sass.","license":"MIT","bugs":"https://github.com/sass/dart-sass/issues","homepage":"https://github.com/sass/dart-sass","repository":{"type":"git","url":"https://github.com/sass/dart-sass"},"author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"engines":{"node":">=20.19.0"},"dependencies":{"chokidar":"^5.0.0","immutable":"^5.1.5","source-map-js":">=0.6.2 <2.0.0"},"optionalDependencies":{"@parcel/watcher":"^2.4.1"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.100.0","bin":{"sass":"sass.js"},"main":"sass.node.js"}
1
+ {"name":"sass","description":"A pure JavaScript implementation of Sass.","license":"MIT","bugs":"https://github.com/sass/dart-sass/issues","homepage":"https://github.com/sass/dart-sass","repository":{"type":"git","url":"https://github.com/sass/dart-sass"},"author":{"name":"Natalie Weizenbaum","email":"nweiz@google.com","url":"https://github.com/nex3"},"engines":{"node":">=20.19.0"},"dependencies":{"chokidar":"^5.0.0","immutable":"^5.1.5","source-map-js":">=0.6.2 <2.0.0"},"optionalDependencies":{"@parcel/watcher":"^2.4.1"},"keywords":["style","scss","sass","preprocessor","css"],"types":"types/index.d.ts","exports":{"types":"./types/index.d.ts","node":{"require":"./sass.node.js","default":"./sass.node.mjs"},"default":{"require":"./sass.default.cjs","default":"./sass.default.js"}},"version":"1.101.0","bin":{"sass":"sass.js"},"main":"sass.node.js"}
package/sass.dart.js CHANGED
@@ -130,7 +130,7 @@ self.fs = _cliPkgRequires.fs;
130
130
  self.nodeModule = _cliPkgRequires.nodeModule;
131
131
  self.stream = _cliPkgRequires.stream;
132
132
  self.util = _cliPkgRequires.util;
133
- // Generated by dart2js (, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.12.0.
133
+ // Generated by dart2js (, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.12.2.
134
134
  // The code supports the following hooks:
135
135
  // dartPrint(message):
136
136
  // if this function is defined it is called instead of the Dart [print]
@@ -29117,7 +29117,7 @@ self.util = _cliPkgRequires.util;
29117
29117
  J.set$deprecations$x(self.exports, A.jsify($.$get$deprecations()));
29118
29118
  J.set$Version$x(self.exports, $.$get$versionClass());
29119
29119
  J.set$loadParserExports_$x(self.exports, A.allowInterop(A.parser0__loadParserExports$closure()));
29120
- J.set$info$x(self.exports, "dart-sass\t1.100.0\t(Sass Compiler)\t[Dart]\ndart2js\t3.12.0\t(Dart Compiler)\t[Dart]");
29120
+ J.set$info$x(self.exports, "dart-sass\t1.101.0\t(Sass Compiler)\t[Dart]\ndart2js\t3.12.2\t(Dart Compiler)\t[Dart]");
29121
29121
  A.updateCanonicalizeContextPrototype();
29122
29122
  A.updateSourceSpanPrototype();
29123
29123
  J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
@@ -34313,7 +34313,7 @@ self.util = _cliPkgRequires.util;
34313
34313
  switch ($async$goto) {
34314
34314
  case 0:
34315
34315
  // Function start
34316
- $async$returnValue = "1.100.0 compiled with dart2js 3.12.0";
34316
+ $async$returnValue = "1.101.0 compiled with dart2js 3.12.2";
34317
34317
  // goto return
34318
34318
  $async$goto = 1;
34319
34319
  break;
@@ -52896,7 +52896,7 @@ self.util = _cliPkgRequires.util;
52896
52896
  }
52897
52897
  try {
52898
52898
  argVersion = A.Version_Version$parse(id);
52899
- sassVersion = A.Version_Version$parse("1.100.0");
52899
+ sassVersion = A.Version_Version$parse("1.101.0");
52900
52900
  if (J.compareTo$1$ns(argVersion, sassVersion) > 0)
52901
52901
  A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version.");
52902
52902
  J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion));
@@ -57041,7 +57041,7 @@ self.util = _cliPkgRequires.util;
57041
57041
  _1_0 = _this._resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName);
57042
57042
  if (_1_0 != null)
57043
57043
  if (B.Set_FTDN4.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, t5)._splitExtension$1(1)[1]))
57044
- return t4.toUri$1(t4.canonicalize$1(0, _1_0));
57044
+ return t4.toUri$1(t4.canonicalize$1(0, _this._resolveImportOnly$1(_1_0)));
57045
57045
  else {
57046
57046
  t1 = subpath == null ? "root" : subpath;
57047
57047
  throw A.wrapException("The export for '" + t1 + "' in '" + A.S(packageName) + "' resolved to '" + _1_0 + string$.x27x2c_whi);
@@ -57079,7 +57079,7 @@ self.util = _cliPkgRequires.util;
57079
57079
  t1 = false;
57080
57080
  }
57081
57081
  if (t1)
57082
- return A.join(packageRoot, sassValue, _null);
57082
+ return this._resolveImportOnly$1(A.join(packageRoot, sassValue, _null));
57083
57083
  else {
57084
57084
  _1_0 = packageManifest.$index(0, "style");
57085
57085
  if (typeof _1_0 == "string") {
@@ -57090,7 +57090,7 @@ self.util = _cliPkgRequires.util;
57090
57090
  t1 = false;
57091
57091
  }
57092
57092
  if (t1)
57093
- return A.join(packageRoot, styleValue, _null);
57093
+ return this._resolveImportOnly$1(A.join(packageRoot, styleValue, _null));
57094
57094
  }
57095
57095
  return A.resolveImportPath(A.join(packageRoot, "index", _null));
57096
57096
  },
@@ -57142,6 +57142,15 @@ self.util = _cliPkgRequires.util;
57142
57142
  }
57143
57143
  return t1;
57144
57144
  },
57145
+ _resolveImportOnly$1(path) {
57146
+ var t1, extension, importOnly;
57147
+ if (!A.fromImport())
57148
+ return path;
57149
+ t1 = $.$get$context();
57150
+ extension = A.ParsedPath_ParsedPath$parse(path, t1.style)._splitExtension$1(1)[1];
57151
+ importOnly = t1.withoutExtension$1(path) + ".import" + extension;
57152
+ return A.fileExists(importOnly) ? importOnly : path;
57153
+ },
57145
57154
  _compareExpansionKeys$2(keyA, keyB) {
57146
57155
  var t1 = B.JSString_methods.contains$1(keyA, "*"),
57147
57156
  baseLengthA = t1 ? B.JSString_methods.indexOf$1(keyA, "*") + 1 : keyA.length,
@@ -115677,7 +115686,7 @@ self.util = _cliPkgRequires.util;
115677
115686
  _1_0 = _this._node_package$_resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName);
115678
115687
  if (_1_0 != null)
115679
115688
  if (B.Set_FTDN4.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, t5)._splitExtension$1(1)[1]))
115680
- return t4.toUri$1(t4.canonicalize$1(0, _1_0));
115689
+ return t4.toUri$1(t4.canonicalize$1(0, _this._node_package$_resolveImportOnly$1(_1_0)));
115681
115690
  else {
115682
115691
  t1 = subpath == null ? "root" : subpath;
115683
115692
  throw A.wrapException("The export for '" + t1 + "' in '" + A.S(packageName) + "' resolved to '" + _1_0 + string$.x27x2c_whi);
@@ -115715,7 +115724,7 @@ self.util = _cliPkgRequires.util;
115715
115724
  t1 = false;
115716
115725
  }
115717
115726
  if (t1)
115718
- return A.join(packageRoot, sassValue, _null);
115727
+ return this._node_package$_resolveImportOnly$1(A.join(packageRoot, sassValue, _null));
115719
115728
  else {
115720
115729
  _1_0 = packageManifest.$index(0, "style");
115721
115730
  if (typeof _1_0 == "string") {
@@ -115726,7 +115735,7 @@ self.util = _cliPkgRequires.util;
115726
115735
  t1 = false;
115727
115736
  }
115728
115737
  if (t1)
115729
- return A.join(packageRoot, styleValue, _null);
115738
+ return this._node_package$_resolveImportOnly$1(A.join(packageRoot, styleValue, _null));
115730
115739
  }
115731
115740
  return A.resolveImportPath0(A.join(packageRoot, "index", _null));
115732
115741
  },
@@ -115778,6 +115787,15 @@ self.util = _cliPkgRequires.util;
115778
115787
  }
115779
115788
  return t1;
115780
115789
  },
115790
+ _node_package$_resolveImportOnly$1(path) {
115791
+ var t1, extension, importOnly;
115792
+ if (!A.fromImport0())
115793
+ return path;
115794
+ t1 = $.$get$context();
115795
+ extension = A.ParsedPath_ParsedPath$parse(path, t1.style)._splitExtension$1(1)[1];
115796
+ importOnly = t1.withoutExtension$1(path) + ".import" + extension;
115797
+ return A.fileExists0(importOnly) ? importOnly : path;
115798
+ },
115781
115799
  _node_package$_compareExpansionKeys$2(keyA, keyB) {
115782
115800
  var t1 = B.JSString_methods.contains$1(keyA, "*"),
115783
115801
  baseLengthA = t1 ? B.JSString_methods.indexOf$1(keyA, "*") + 1 : keyA.length,