sass 1.32.5 → 1.32.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/package.json +1 -1
  2. package/sass.dart.js +13 -9
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":">=8.9.0"},"dependencies":{"chokidar":">=2.0.0 <4.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"version":"1.32.5","bin":{"sass":"sass.js"},"main":"sass.dart.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":">=8.9.0"},"dependencies":{"chokidar":">=2.0.0 <4.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"version":"1.32.6","bin":{"sass":"sass.js"},"main":"sass.dart.js"}
package/sass.dart.js CHANGED
@@ -5,9 +5,9 @@ var dartNodePreambleSelf = typeof global !== "undefined" ? global : window;
5
5
 
6
6
  var self = Object.create(dartNodePreambleSelf);
7
7
 
8
- self.scheduleImmediate = self.setImmediate
8
+ self.scheduleImmediate = typeof setImmediate !== "undefined"
9
9
  ? function (cb) {
10
- dartNodePreambleSelf.setImmediate(cb);
10
+ setImmediate(cb);
11
11
  }
12
12
  : function(cb) {
13
13
  setTimeout(cb, 0);
@@ -30,6 +30,10 @@ if (typeof __filename !== "undefined") {
30
30
  self.__filename = __filename;
31
31
  }
32
32
 
33
+ if (typeof Buffer !== "undefined") {
34
+ self.Buffer = Buffer;
35
+ }
36
+
33
37
  // if we're running in a browser, Dart supports most of this out of box
34
38
  // make sure we only run these in Node.js environment
35
39
 
@@ -42,7 +46,7 @@ try {
42
46
  }
43
47
 
44
48
  // Check if we're in Electron, with Node.js integration, and override if true.
45
- if (dartNodePreambleSelf.process && dartNodePreambleSelf.process.versions && dartNodePreambleSelf.process.versions.hasOwnProperty('electron') && dartNodePreambleSelf.process.versions.hasOwnProperty('node')) {
49
+ if ("undefined" !== typeof process && process.versions && process.versions.hasOwnProperty('electron') && process.versions.hasOwnProperty('node')) {
46
50
  dartNodeIsActuallyNode = true;
47
51
  }
48
52
  } catch(e) {}
@@ -112,7 +116,7 @@ if (dartNodeIsActuallyNode) {
112
116
  self.chokidar = require("chokidar");
113
117
  self.readline = require("readline");
114
118
  self.fs = require("fs");
115
- // Generated by dart2js (fast startup emitter, strong, trust primitives, omit checks, lax runtime type), the Dart to JavaScript compiler version: 2.10.4.
119
+ // Generated by dart2js (fast startup emitter, strong, trust primitives, omit checks, lax runtime type), the Dart to JavaScript compiler version: 2.10.5.
116
120
  // The code supports the following hooks:
117
121
  // dartPrint(message):
118
122
  // if this function is defined it is called instead of the Dart [print]
@@ -6217,7 +6221,7 @@ self.fs = require("fs");
6217
6221
  return new P.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message);
6218
6222
  },
6219
6223
  RangeError$range: function(invalidValue, minValue, maxValue, $name, message) {
6220
- return new P.RangeError(minValue, maxValue, true, invalidValue, $name, "Invalid value");
6224
+ return new P.RangeError(minValue, maxValue, true, invalidValue, $name, message == null ? "Invalid value" : message);
6221
6225
  },
6222
6226
  RangeError_checkValueInInterval: function(value, minValue, maxValue, $name) {
6223
6227
  if (value < minValue || value > maxValue)
@@ -15254,7 +15258,7 @@ self.fs = require("fs");
15254
15258
  switch ($async$goto) {
15255
15259
  case 0:
15256
15260
  // Function start
15257
- $async$returnValue = "1.32.5 compiled with dart2js 2.10.4";
15261
+ $async$returnValue = "1.32.6 compiled with dart2js 2.10.5";
15258
15262
  // goto return
15259
15263
  $async$goto = 1;
15260
15264
  break;
@@ -20741,7 +20745,7 @@ self.fs = require("fs");
20741
20745
  new Uint8Array(0);
20742
20746
  J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
20743
20747
  J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
20744
- J.set$info$x(self.exports, "dart-sass\t1.32.5\t(Sass Compiler)\t[Dart]\ndart2js\t2.10.4\t(Dart Compiler)\t[Dart]");
20748
+ J.set$info$x(self.exports, "dart-sass\t1.32.6\t(Sass Compiler)\t[Dart]\ndart2js\t2.10.5\t(Dart Compiler)\t[Dart]");
20745
20749
  J.set$types$x(self.exports, {Boolean: $.$get$booleanConstructor(), Color: $.$get$colorConstructor(), List: $.$get$listConstructor(), Map: $.$get$mapConstructor(), Null: $.$get$nullConstructor(), Number: $.$get$numberConstructor(), String: $.$get$stringConstructor(), Error: self.Error});
20746
20750
  J.set$NULL$x(self.exports, C.C_SassNull);
20747
20751
  J.set$TRUE$x(self.exports, C.SassBoolean_true);
@@ -21822,7 +21826,7 @@ self.fs = require("fs");
21822
21826
  var result = T.fuzzyCheckRange(number, min, max);
21823
21827
  if (result != null)
21824
21828
  return result;
21825
- throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
21829
+ throw H.wrapException(P.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
21826
21830
  },
21827
21831
  isWhitespace0: function(character) {
21828
21832
  return character === 32 || character === 9 || T.isNewline0(character);
@@ -21931,7 +21935,7 @@ self.fs = require("fs");
21931
21935
  var result = T.fuzzyCheckRange0(number, min, max);
21932
21936
  if (result != null)
21933
21937
  return result;
21934
- throw H.wrapException(P.RangeError$value(number, $name, "must be between " + min + " and " + max + "."));
21938
+ throw H.wrapException(P.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
21935
21939
  }
21936
21940
  },
21937
21941
  S = {VariableExpression: function VariableExpression(t0, t1, t2) {