sass 1.50.0 → 1.52.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.
- package/LICENSE +94 -7
- package/package.json +1 -1
- package/sass.dart.js +2500 -2270
- package/types/options.d.ts +9 -6
package/types/options.d.ts
CHANGED
|
@@ -38,7 +38,8 @@ export type OutputStyle = 'expanded' | 'compressed';
|
|
|
38
38
|
* const result = sass.compile('style.scss', {
|
|
39
39
|
* functions: {
|
|
40
40
|
* "sum($arg1, $arg2)": (args) => {
|
|
41
|
-
* const
|
|
41
|
+
* const arg1 = args[0].assertNumber('arg1');
|
|
42
|
+
* const value1 = arg1.value;
|
|
42
43
|
* const value2 = args[1].assertNumber('arg2')
|
|
43
44
|
* .convertValueToMatch(arg1, 'arg2', 'arg1');
|
|
44
45
|
* return new sass.SassNumber(value1 + value2).coerceToMatch(arg1);
|
|
@@ -333,8 +334,8 @@ export interface Options<sync extends 'sync' | 'async'> {
|
|
|
333
334
|
* Options that can be passed to [[compileString]] or [[compileStringAsync]].
|
|
334
335
|
*
|
|
335
336
|
* If the [[StringOptionsWithImporter.importer]] field isn't passed, the
|
|
336
|
-
* entrypoint file can
|
|
337
|
-
*
|
|
337
|
+
* entrypoint file can load files relative to itself if a `file://` URL is
|
|
338
|
+
* passed to the [[url]] field.
|
|
338
339
|
*
|
|
339
340
|
* @typeParam sync - This lets the TypeScript checker verify that asynchronous
|
|
340
341
|
* [[Importer]]s, [[FileImporter]]s, and [[CustomFunction]]s aren't passed to
|
|
@@ -354,9 +355,11 @@ export interface StringOptionsWithoutImporter<sync extends 'sync' | 'async'>
|
|
|
354
355
|
syntax?: Syntax;
|
|
355
356
|
|
|
356
357
|
/**
|
|
357
|
-
* The canonical URL of the entrypoint stylesheet.
|
|
358
|
-
*
|
|
359
|
-
*
|
|
358
|
+
* The canonical URL of the entrypoint stylesheet.
|
|
359
|
+
*
|
|
360
|
+
* A relative load's URL is first resolved relative to [[url]], then resolved
|
|
361
|
+
* to a file on disk if it's a `file://` URL. If it can't be resolved to a
|
|
362
|
+
* file on disk, it's then passed to [[importers]] and [[loadPaths]].
|
|
360
363
|
*
|
|
361
364
|
* @category Input
|
|
362
365
|
*/
|