sass 1.41.0 → 1.41.1

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 (3) hide show
  1. package/LICENSE +1 -33
  2. package/package.json +1 -1
  3. package/sass.dart.js +41 -17
package/LICENSE CHANGED
@@ -1328,39 +1328,7 @@ THE SOFTWARE.
1328
1328
 
1329
1329
  --------------------------------------------------------------------------------
1330
1330
 
1331
- pubspec_parse license:
1332
-
1333
- Copyright 2018, the Dart project authors. All rights reserved.
1334
- Redistribution and use in source and binary forms, with or without
1335
- modification, are permitted provided that the following conditions are
1336
- met:
1337
-
1338
- * Redistributions of source code must retain the above copyright
1339
- notice, this list of conditions and the following disclaimer.
1340
- * Redistributions in binary form must reproduce the above
1341
- copyright notice, this list of conditions and the following
1342
- disclaimer in the documentation and/or other materials provided
1343
- with the distribution.
1344
- * Neither the name of Google Inc. nor the names of its
1345
- contributors may be used to endorse or promote products derived
1346
- from this software without specific prior written permission.
1347
-
1348
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1349
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1350
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1351
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1352
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1353
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1354
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1355
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1356
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1357
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1358
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1359
-
1360
-
1361
- --------------------------------------------------------------------------------
1362
-
1363
- test_api and test_core license:
1331
+ pubspec_parse, test_api and test_core license:
1364
1332
 
1365
1333
  Copyright 2018, the Dart project authors.
1366
1334
 
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":">=3.0.0 <4.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"version":"1.41.0","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":">=3.0.0 <4.0.0"},"keywords":["style","scss","sass","preprocessor","css"],"version":"1.41.1","bin":{"sass":"sass.js"},"main":"sass.dart.js"}
package/sass.dart.js CHANGED
@@ -125,7 +125,7 @@ if (dartNodeIsActuallyNode) {
125
125
  self.chokidar = require("chokidar");
126
126
  self.readline = require("readline");
127
127
  self.fs = require("fs");
128
- // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, no-legacy-javascript), the Dart to JavaScript compiler version: 2.14.1.
128
+ // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, no-legacy-javascript), the Dart to JavaScript compiler version: 2.14.2.
129
129
  // The code supports the following hooks:
130
130
  // dartPrint(message):
131
131
  // if this function is defined it is called instead of the Dart [print]
@@ -17804,7 +17804,7 @@ self.fs = require("fs");
17804
17804
  new Uint8Array(0);
17805
17805
  J.set$render$x(self.exports, P.allowInterop(B.node___render$closure()));
17806
17806
  J.set$renderSync$x(self.exports, P.allowInterop(B.node___renderSync$closure()));
17807
- J.set$info$x(self.exports, "dart-sass\t1.41.0\t(Sass Compiler)\t[Dart]\ndart2js\t2.14.1\t(Dart Compiler)\t[Dart]");
17807
+ J.set$info$x(self.exports, "dart-sass\t1.41.1\t(Sass Compiler)\t[Dart]\ndart2js\t2.14.2\t(Dart Compiler)\t[Dart]");
17808
17808
  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});
17809
17809
  J.set$NULL$x(self.exports, C.C__SassNull);
17810
17810
  J.set$TRUE$x(self.exports, C.SassBoolean_true);
@@ -19346,7 +19346,7 @@ self.fs = require("fs");
19346
19346
  switch ($async$goto) {
19347
19347
  case 0:
19348
19348
  // Function start
19349
- $async$returnValue = "1.41.0 compiled with dart2js 2.14.1";
19349
+ $async$returnValue = "1.41.1 compiled with dart2js 2.14.2";
19350
19350
  // goto return
19351
19351
  $async$goto = 1;
19352
19352
  break;
@@ -53207,7 +53207,7 @@ self.fs = require("fs");
53207
53207
  _visitCalculationValue$body$_EvaluateVisitor(node) {
53208
53208
  var $async$goto = 0,
53209
53209
  $async$completer = P._makeAsyncAwaitCompleter(type$.Object),
53210
- $async$returnValue, $async$self = this, result, $async$temp1;
53210
+ $async$returnValue, $async$self = this, inner, result, t1, $async$temp1;
53211
53211
  var $async$_async_evaluate$_visitCalculationValue$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
53212
53212
  if ($async$errorCode === 1)
53213
53213
  return P._asyncRethrow($async$result, $async$completer);
@@ -53219,11 +53219,17 @@ self.fs = require("fs");
53219
53219
  break;
53220
53220
  case 3:
53221
53221
  // then
53222
+ inner = node.expression;
53222
53223
  $async$goto = 6;
53223
- return P._asyncAwait($async$self._async_evaluate$_visitCalculationValue$1(node.expression), $async$_async_evaluate$_visitCalculationValue$1);
53224
+ return P._asyncAwait($async$self._async_evaluate$_visitCalculationValue$1(inner), $async$_async_evaluate$_visitCalculationValue$1);
53224
53225
  case 6:
53225
53226
  // returning from await.
53226
- $async$returnValue = $async$result;
53227
+ result = $async$result;
53228
+ if (inner instanceof F.FunctionExpression)
53229
+ t1 = H.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof D.SassString && !result.hasQuotes;
53230
+ else
53231
+ t1 = false;
53232
+ $async$returnValue = t1 ? new D.SassString("(" + result.text + ")", false) : result;
53227
53233
  // goto return
53228
53234
  $async$goto = 1;
53229
53235
  break;
@@ -59284,10 +59290,16 @@ self.fs = require("fs");
59284
59290
  }
59285
59291
  },
59286
59292
  _visitCalculationValue$1(node) {
59287
- var result, _this = this;
59288
- if (node instanceof T.ParenthesizedExpression)
59289
- return _this._visitCalculationValue$1(node.expression);
59290
- else if (node instanceof D.StringExpression)
59293
+ var inner, result, t1, _this = this;
59294
+ if (node instanceof T.ParenthesizedExpression) {
59295
+ inner = node.expression;
59296
+ result = _this._visitCalculationValue$1(inner);
59297
+ if (inner instanceof F.FunctionExpression)
59298
+ t1 = H.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof D.SassString && !result.hasQuotes;
59299
+ else
59300
+ t1 = false;
59301
+ return t1 ? new D.SassString("(" + result.text + ")", false) : result;
59302
+ } else if (node instanceof D.StringExpression)
59291
59303
  return new V.CalculationInterpolation(_this._performInterpolation$1(node.text));
59292
59304
  else if (node instanceof V.BinaryOperationExpression)
59293
59305
  return _this._addExceptionSpan$2(node, new R._EvaluateVisitor__visitCalculationValue_closure(_this, node));
@@ -68459,7 +68471,7 @@ self.fs = require("fs");
68459
68471
  _visitCalculationValue$body$_EvaluateVisitor0(node) {
68460
68472
  var $async$goto = 0,
68461
68473
  $async$completer = P._makeAsyncAwaitCompleter(type$.Object),
68462
- $async$returnValue, $async$self = this, result, $async$temp1;
68474
+ $async$returnValue, $async$self = this, inner, result, t1, $async$temp1;
68463
68475
  var $async$_async_evaluate0$_visitCalculationValue$1 = P._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
68464
68476
  if ($async$errorCode === 1)
68465
68477
  return P._asyncRethrow($async$result, $async$completer);
@@ -68471,11 +68483,17 @@ self.fs = require("fs");
68471
68483
  break;
68472
68484
  case 3:
68473
68485
  // then
68486
+ inner = node.expression;
68474
68487
  $async$goto = 6;
68475
- return P._asyncAwait($async$self._async_evaluate0$_visitCalculationValue$1(node.expression), $async$_async_evaluate0$_visitCalculationValue$1);
68488
+ return P._asyncAwait($async$self._async_evaluate0$_visitCalculationValue$1(inner), $async$_async_evaluate0$_visitCalculationValue$1);
68476
68489
  case 6:
68477
68490
  // returning from await.
68478
- $async$returnValue = $async$result;
68491
+ result = $async$result;
68492
+ if (inner instanceof F.FunctionExpression0)
68493
+ t1 = H.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof D.SassString0 && !result.hasQuotes;
68494
+ else
68495
+ t1 = false;
68496
+ $async$returnValue = t1 ? new D.SassString0("(" + result.text + ")", false) : result;
68479
68497
  // goto return
68480
68498
  $async$goto = 1;
68481
68499
  break;
@@ -77270,10 +77288,16 @@ self.fs = require("fs");
77270
77288
  }
77271
77289
  },
77272
77290
  _evaluate0$_visitCalculationValue$1(node) {
77273
- var result, _this = this;
77274
- if (node instanceof T.ParenthesizedExpression0)
77275
- return _this._evaluate0$_visitCalculationValue$1(node.expression);
77276
- else if (node instanceof D.StringExpression0)
77291
+ var inner, result, t1, _this = this;
77292
+ if (node instanceof T.ParenthesizedExpression0) {
77293
+ inner = node.expression;
77294
+ result = _this._evaluate0$_visitCalculationValue$1(inner);
77295
+ if (inner instanceof F.FunctionExpression0)
77296
+ t1 = H.stringReplaceAllUnchecked(inner.originalName, "_", "-").toLowerCase() === "var" && result instanceof D.SassString0 && !result.hasQuotes;
77297
+ else
77298
+ t1 = false;
77299
+ return t1 ? new D.SassString0("(" + result.text + ")", false) : result;
77300
+ } else if (node instanceof D.StringExpression0)
77277
77301
  return new V.CalculationInterpolation0(_this._evaluate0$_performInterpolation$1(node.text));
77278
77302
  else if (node instanceof V.BinaryOperationExpression0)
77279
77303
  return _this._evaluate0$_addExceptionSpan$2(node, new R._EvaluateVisitor__visitCalculationValue_closure1(_this, node));