sass-embedded 1.0.0-beta.7 → 1.49.8
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/CHANGELOG.md +2386 -33
- package/README.md +95 -9
- package/dist/lib/index.js +25 -10
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/src/compile.js +67 -65
- package/dist/lib/src/compile.js.map +1 -1
- package/dist/lib/src/function-registry.js +16 -5
- package/dist/lib/src/function-registry.js.map +1 -1
- package/dist/lib/src/importer-registry.js +127 -0
- package/dist/lib/src/importer-registry.js.map +1 -0
- package/dist/lib/src/legacy/importer.js +191 -0
- package/dist/lib/src/legacy/importer.js.map +1 -0
- package/dist/lib/src/legacy/index.js +267 -0
- package/dist/lib/src/legacy/index.js.map +1 -0
- package/dist/lib/src/legacy/resolve-path.js +101 -0
- package/dist/lib/src/legacy/resolve-path.js.map +1 -0
- package/dist/lib/src/legacy/value/base.js +17 -0
- package/dist/lib/src/legacy/value/base.js.map +1 -0
- package/dist/lib/src/legacy/value/color.js +64 -0
- package/dist/lib/src/legacy/value/color.js.map +1 -0
- package/dist/lib/src/legacy/value/index.js +23 -0
- package/dist/lib/src/legacy/value/index.js.map +1 -0
- package/dist/lib/src/legacy/value/list.js +50 -0
- package/dist/lib/src/legacy/value/list.js.map +1 -0
- package/dist/lib/src/legacy/value/map.js +74 -0
- package/dist/lib/src/legacy/value/map.js.map +1 -0
- package/dist/lib/src/legacy/value/number.js +60 -0
- package/dist/lib/src/legacy/value/number.js.map +1 -0
- package/dist/lib/src/legacy/value/string.js +27 -0
- package/dist/lib/src/legacy/value/string.js.map +1 -0
- package/dist/lib/src/legacy/value/wrap.js +83 -0
- package/dist/lib/src/legacy/value/wrap.js.map +1 -0
- package/dist/lib/src/protofier.js +67 -0
- package/dist/lib/src/protofier.js.map +1 -1
- package/dist/lib/src/utils.js +37 -1
- package/dist/lib/src/utils.js.map +1 -1
- package/dist/lib/src/value/argument-list.js +31 -0
- package/dist/lib/src/value/argument-list.js.map +1 -0
- package/dist/lib/src/value/boolean.js +17 -1
- package/dist/lib/src/value/boolean.js.map +1 -1
- package/dist/lib/src/value/function.js +34 -0
- package/dist/lib/src/value/function.js.map +1 -0
- package/dist/lib/src/value/null.js +13 -1
- package/dist/lib/src/value/null.js.map +1 -1
- package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js +24 -1
- package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js.map +1 -1
- package/dist/package.json +3 -3
- package/dist/tool/utils.js +13 -7
- package/dist/tool/utils.js.map +1 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/legacy/function.d.ts +110 -6
- package/dist/types/legacy/plugin_this.d.ts +7 -4
- package/dist/types/options.d.ts +10 -0
- package/package.json +3 -3
- package/dist/lib/src/legacy.js +0 -133
- package/dist/lib/src/legacy.js.map +0 -1
package/dist/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sass-embedded",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"protocol-version": "1.0.0
|
|
5
|
-
"compiler-version": "1.
|
|
3
|
+
"version": "1.49.8",
|
|
4
|
+
"protocol-version": "1.0.0",
|
|
5
|
+
"compiler-version": "1.49.8",
|
|
6
6
|
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",
|
|
7
7
|
"repository": "sass/embedded-host-node",
|
|
8
8
|
"author": "Google Inc.",
|
package/dist/tool/utils.js
CHANGED
|
@@ -59,10 +59,10 @@ const BUILD_PATH = 'build';
|
|
|
59
59
|
* if an error occurs.
|
|
60
60
|
*/
|
|
61
61
|
async function getEmbeddedProtocol(outPath, options) {
|
|
62
|
-
var _a;
|
|
63
62
|
const repo = 'embedded-protocol';
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
options !== null && options !== void 0 ? options : (options = defaultVersionOption('protocol-version'));
|
|
64
|
+
if ('version' in options) {
|
|
65
|
+
const version = options === null || options === void 0 ? void 0 : options.version;
|
|
66
66
|
await downloadRelease({
|
|
67
67
|
repo,
|
|
68
68
|
assetUrl: `https://github.com/sass/${repo}/archive/${version}${ARCHIVE_EXTENSION}`,
|
|
@@ -92,10 +92,10 @@ exports.getEmbeddedProtocol = getEmbeddedProtocol;
|
|
|
92
92
|
* if an error occurs.
|
|
93
93
|
*/
|
|
94
94
|
async function getDartSassEmbedded(outPath, options) {
|
|
95
|
-
var _a;
|
|
96
95
|
const repo = 'dart-sass-embedded';
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
options !== null && options !== void 0 ? options : (options = defaultVersionOption('compiler-version'));
|
|
97
|
+
if ('version' in options) {
|
|
98
|
+
const version = options === null || options === void 0 ? void 0 : options.version;
|
|
99
99
|
await downloadRelease({
|
|
100
100
|
repo,
|
|
101
101
|
assetUrl: `https://github.com/sass/${repo}/releases/download/` +
|
|
@@ -177,7 +177,7 @@ function fetchRepo(options) {
|
|
|
177
177
|
console.log(`Cloning ${options.repo} into ${options.outPath}.`);
|
|
178
178
|
shell.exec(`git clone \
|
|
179
179
|
--depth=1 \
|
|
180
|
-
|
|
180
|
+
https://github.com/sass/${options.repo} \
|
|
181
181
|
${p.join(options.outPath, options.repo)}`, { silent: true });
|
|
182
182
|
}
|
|
183
183
|
const version = options.ref === 'main' ? 'latest update' : `commit ${options.ref}`;
|
|
@@ -216,6 +216,12 @@ function buildDartSassEmbedded(repoPath) {
|
|
|
216
216
|
silent: true,
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
+
// Given the name of a field in `package.json`, returns the default version
|
|
220
|
+
// option described by that field.
|
|
221
|
+
function defaultVersionOption(pkgField) {
|
|
222
|
+
const version = pkg[pkgField];
|
|
223
|
+
return version.endsWith('-dev') ? { ref: 'main' } : { version };
|
|
224
|
+
}
|
|
219
225
|
// Links or copies the contents of `source` into `destination`.
|
|
220
226
|
async function link(source, destination) {
|
|
221
227
|
await cleanDir(destination);
|
package/dist/tool/utils.js.map
CHANGED
|
@@ -1 +1 @@
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AAE,MAAM,EAAC,CAAC,CAAC,CAAC,EAAC,OAAO,EAAC,CAAC;AAC9D,CAAC;AAED,+DAA+D;AAC/D,KAAK,UAAU,IAAI,CAAC,MAAc,EAAE,WAAmB;IACrD,MAAM,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,KAAK,SAAS,EAAE;QACpB,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,SAAS,WAAW,GAAG,CAAC,CAAC;QACtD,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;KACrC;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,WAAW,MAAM,SAAS,WAAW,GAAG,CAAC,CAAC;QACtD,wEAAwE;QACxE,aAAE,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC;KAC5C;AACH,CAAC;AAED,oEAAoE;AACpE,KAAK,UAAU,QAAQ,CAAC,GAAW;IACjC,MAAM,aAAE,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IAClD,IAAI;QACF,MAAM,aAAE,CAAC,KAAK,CAAC,GAAG,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;KACxC;IAAC,OAAO,CAAC,EAAE;QACV,yCAAyC;KAC1C;AACH,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -41,10 +41,14 @@ export {
|
|
|
41
41
|
// Legacy APIs
|
|
42
42
|
export {LegacyException} from './legacy/exception';
|
|
43
43
|
export {
|
|
44
|
+
FALSE,
|
|
44
45
|
LegacyAsyncFunction,
|
|
45
|
-
|
|
46
|
+
LegacyAsyncFunctionDone,
|
|
46
47
|
LegacyFunction,
|
|
48
|
+
LegacySyncFunction,
|
|
47
49
|
LegacyValue,
|
|
50
|
+
NULL,
|
|
51
|
+
TRUE,
|
|
48
52
|
types,
|
|
49
53
|
} from './legacy/function';
|
|
50
54
|
export {
|
|
@@ -68,9 +68,10 @@ export type LegacySyncFunction = (
|
|
|
68
68
|
* });
|
|
69
69
|
* ```
|
|
70
70
|
*
|
|
71
|
-
*
|
|
72
|
-
* that's passed to [[LegacySharedOptions.functions]]. If the
|
|
73
|
-
*
|
|
71
|
+
* This is passed one argument for each argument that's declared in the
|
|
72
|
+
* signature that's passed to [[LegacySharedOptions.functions]]. If the
|
|
73
|
+
* signature [takes arbitrary
|
|
74
|
+
* arguments](https://sass-lang.com/documentation/at-rules/function#taking-arbitrary-arguments),
|
|
74
75
|
* they're passed as a single argument list in the last argument before the
|
|
75
76
|
* callback.
|
|
76
77
|
*
|
|
@@ -79,9 +80,73 @@ export type LegacySyncFunction = (
|
|
|
79
80
|
* APIs. Use [[CustomFunction]] with [[compile]], [[compileString]],
|
|
80
81
|
* [[compileAsync]], and [[compileStringAsync]] instead.
|
|
81
82
|
*/
|
|
82
|
-
export type LegacyAsyncFunction =
|
|
83
|
-
this: LegacyPluginThis,
|
|
84
|
-
|
|
83
|
+
export type LegacyAsyncFunction =
|
|
84
|
+
| ((this: LegacyPluginThis, done: (result: LegacyValue) => void) => void)
|
|
85
|
+
| ((
|
|
86
|
+
this: LegacyPluginThis,
|
|
87
|
+
arg1: LegacyValue,
|
|
88
|
+
done: LegacyAsyncFunctionDone
|
|
89
|
+
) => void)
|
|
90
|
+
| ((
|
|
91
|
+
this: LegacyPluginThis,
|
|
92
|
+
arg1: LegacyValue,
|
|
93
|
+
arg2: LegacyValue,
|
|
94
|
+
done: LegacyAsyncFunctionDone
|
|
95
|
+
) => void)
|
|
96
|
+
| ((
|
|
97
|
+
this: LegacyPluginThis,
|
|
98
|
+
arg1: LegacyValue,
|
|
99
|
+
arg2: LegacyValue,
|
|
100
|
+
arg3: LegacyValue,
|
|
101
|
+
done: LegacyAsyncFunctionDone
|
|
102
|
+
) => void)
|
|
103
|
+
| ((
|
|
104
|
+
this: LegacyPluginThis,
|
|
105
|
+
arg1: LegacyValue,
|
|
106
|
+
arg2: LegacyValue,
|
|
107
|
+
arg3: LegacyValue,
|
|
108
|
+
arg4: LegacyValue,
|
|
109
|
+
done: LegacyAsyncFunctionDone
|
|
110
|
+
) => void)
|
|
111
|
+
| ((
|
|
112
|
+
this: LegacyPluginThis,
|
|
113
|
+
arg1: LegacyValue,
|
|
114
|
+
arg2: LegacyValue,
|
|
115
|
+
arg3: LegacyValue,
|
|
116
|
+
arg4: LegacyValue,
|
|
117
|
+
arg5: LegacyValue,
|
|
118
|
+
done: LegacyAsyncFunctionDone
|
|
119
|
+
) => void)
|
|
120
|
+
| ((
|
|
121
|
+
this: LegacyPluginThis,
|
|
122
|
+
arg1: LegacyValue,
|
|
123
|
+
arg2: LegacyValue,
|
|
124
|
+
arg3: LegacyValue,
|
|
125
|
+
arg4: LegacyValue,
|
|
126
|
+
arg5: LegacyValue,
|
|
127
|
+
arg6: LegacyValue,
|
|
128
|
+
done: LegacyAsyncFunctionDone
|
|
129
|
+
) => void)
|
|
130
|
+
| ((
|
|
131
|
+
this: LegacyPluginThis,
|
|
132
|
+
...args: [...LegacyValue[], LegacyAsyncFunctionDone]
|
|
133
|
+
) => void);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The function called by a [[LegacyAsyncFunction]] to indicate that it's
|
|
137
|
+
* finished.
|
|
138
|
+
*
|
|
139
|
+
* @param result - If this is a [[LegacyValue]], that indicates that the
|
|
140
|
+
* function call completed successfully. If it's a [[types.Error]], that
|
|
141
|
+
* indicates that the function call failed.
|
|
142
|
+
*
|
|
143
|
+
* @category Legacy
|
|
144
|
+
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
|
145
|
+
* APIs. Use [[CustomFunction]] with [[compile]], [[compileString]],
|
|
146
|
+
* [[compileAsync]], and [[compileStringAsync]] instead.
|
|
147
|
+
*/
|
|
148
|
+
export type LegacyAsyncFunctionDone = (
|
|
149
|
+
result: LegacyValue | types.Error
|
|
85
150
|
) => void;
|
|
86
151
|
|
|
87
152
|
/**
|
|
@@ -119,6 +184,36 @@ export type LegacyValue =
|
|
|
119
184
|
| types.List
|
|
120
185
|
| types.Map;
|
|
121
186
|
|
|
187
|
+
/**
|
|
188
|
+
* A shorthand for `sass.types.Boolean.TRUE`.
|
|
189
|
+
*
|
|
190
|
+
* @category Legacy
|
|
191
|
+
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
|
192
|
+
* APIs. Use [[sassTrue]] with [[compile]], [[compileString]], [[compileAsync]],
|
|
193
|
+
* and [[compileStringAsync]] instead.
|
|
194
|
+
*/
|
|
195
|
+
export const TRUE: types.Boolean<true>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* A shorthand for `sass.types.Boolean.FALSE`.
|
|
199
|
+
*
|
|
200
|
+
* @category Legacy
|
|
201
|
+
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
|
202
|
+
* APIs. Use [[sassFalse]] with [[compile]], [[compileString]], [[compileAsync]],
|
|
203
|
+
* and [[compileStringAsync]] instead.
|
|
204
|
+
*/
|
|
205
|
+
export const FALSE: types.Boolean<false>;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* A shorthand for `sass.types.Null.NULL`.
|
|
209
|
+
*
|
|
210
|
+
* @category Legacy
|
|
211
|
+
* @deprecated This only works with the legacy [[render]] and [[renderSync]]
|
|
212
|
+
* APIs. Use [[sassNull]] with [[compile]], [[compileString]], [[compileAsync]],
|
|
213
|
+
* and [[compileStringAsync]] instead.
|
|
214
|
+
*/
|
|
215
|
+
export const NULL: types.Null;
|
|
216
|
+
|
|
122
217
|
/**
|
|
123
218
|
* The namespace for value types used in the legacy function API.
|
|
124
219
|
*
|
|
@@ -649,4 +744,13 @@ export namespace types {
|
|
|
649
744
|
*/
|
|
650
745
|
getLength(): number;
|
|
651
746
|
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* An error that can be returned from a Sass function to signal that it
|
|
750
|
+
* encountered an error. This is the only way to signal an error
|
|
751
|
+
* asynchronously from a [[LegacyAsyncFunction]].
|
|
752
|
+
*/
|
|
753
|
+
export class Error {
|
|
754
|
+
constructor(message: string);
|
|
755
|
+
}
|
|
652
756
|
}
|
|
@@ -13,6 +13,9 @@ export interface LegacyPluginThis {
|
|
|
13
13
|
* [[renderSync]].
|
|
14
14
|
*/
|
|
15
15
|
options: {
|
|
16
|
+
/** The same [[LegacyPluginThis]] instance that contains this object. */
|
|
17
|
+
context: LegacyPluginThis;
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
20
|
* The value passed to [[LegacyFileOptions.file]] or
|
|
18
21
|
* [[LegacyStringOptions.file]].
|
|
@@ -24,8 +27,8 @@ export interface LegacyPluginThis {
|
|
|
24
27
|
|
|
25
28
|
/**
|
|
26
29
|
* The value passed to [[LegacySharedOptions.includePaths]] separated by
|
|
27
|
-
* `";"` on Windows or `":"` on other operating systems
|
|
28
|
-
*
|
|
30
|
+
* `";"` on Windows or `":"` on other operating systems. This always
|
|
31
|
+
* includes the current working directory as the first entry.
|
|
29
32
|
*/
|
|
30
33
|
includePaths: string;
|
|
31
34
|
|
|
@@ -44,10 +47,10 @@ export interface LegacyPluginThis {
|
|
|
44
47
|
indentWidth: number;
|
|
45
48
|
|
|
46
49
|
/**
|
|
47
|
-
* The value passed to [[LegacySharedOptions.linefeed]], or `"
|
|
50
|
+
* The value passed to [[LegacySharedOptions.linefeed]], or `"\n"`
|
|
48
51
|
* otherwise.
|
|
49
52
|
*/
|
|
50
|
-
linefeed: '
|
|
53
|
+
linefeed: '\r' | '\r\n' | '\n' | '\n\r';
|
|
51
54
|
|
|
52
55
|
/** A partially-constructed [[LegacyResult]] object. */
|
|
53
56
|
result: {
|
package/dist/types/options.d.ts
CHANGED
|
@@ -275,6 +275,16 @@ export interface Options<sync extends 'sync' | 'async'> {
|
|
|
275
275
|
*/
|
|
276
276
|
sourceMap?: boolean;
|
|
277
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Whether Sass should include the sources in the generated source map.
|
|
280
|
+
*
|
|
281
|
+
* This option has no effect if [[sourceMap]] is `false`.
|
|
282
|
+
*
|
|
283
|
+
* @defaultValue `false`
|
|
284
|
+
* @category Output
|
|
285
|
+
*/
|
|
286
|
+
sourceMapIncludeSources?: boolean;
|
|
287
|
+
|
|
278
288
|
/**
|
|
279
289
|
* The [[OutputStyle]] of the compiled CSS.
|
|
280
290
|
*
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sass-embedded",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"protocol-version": "1.0.0
|
|
5
|
-
"compiler-version": "1.
|
|
3
|
+
"version": "1.49.8",
|
|
4
|
+
"protocol-version": "1.0.0",
|
|
5
|
+
"compiler-version": "1.49.8",
|
|
6
6
|
"description": "Node.js library that communicates with Embedded Dart Sass using the Embedded Sass protocol",
|
|
7
7
|
"repository": "sass/embedded-host-node",
|
|
8
8
|
"author": "Google Inc.",
|
package/dist/lib/src/legacy.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2021 Google Inc. Use of this source code is governed by an
|
|
3
|
-
// MIT-style license that can be found in the LICENSE file or at
|
|
4
|
-
// https://opensource.org/licenses/MIT.
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.render = void 0;
|
|
7
|
-
const p = require("path");
|
|
8
|
-
const url_1 = require("url");
|
|
9
|
-
const exception_1 = require("./exception");
|
|
10
|
-
const compile_1 = require("./compile");
|
|
11
|
-
const utils_1 = require("./utils");
|
|
12
|
-
function render(options, callback) {
|
|
13
|
-
if (!('file' in options && options.file) && !('data' in options)) {
|
|
14
|
-
callback(newLegacyException(new Error('Either options.data or options.file must be set.')));
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const start = Date.now();
|
|
18
|
-
const compileSass = isStringOptions(options)
|
|
19
|
-
? (0, compile_1.compileStringAsync)(options.data, {
|
|
20
|
-
sourceMap: wasSourceMapRequested(options),
|
|
21
|
-
url: options.file ? (0, url_1.pathToFileURL)(options.file) : undefined,
|
|
22
|
-
syntax: options.indentedSyntax ? 'indented' : 'scss',
|
|
23
|
-
})
|
|
24
|
-
: (0, compile_1.compileAsync)(options.file, {
|
|
25
|
-
sourceMap: wasSourceMapRequested(options),
|
|
26
|
-
loadPaths: options.includePaths,
|
|
27
|
-
});
|
|
28
|
-
compileSass.then(result => callback(undefined, newLegacyResult(options, start, result)), error => callback(newLegacyException(error)));
|
|
29
|
-
}
|
|
30
|
-
exports.render = render;
|
|
31
|
-
// Returns whether `options` is a `LegacyStringOptions`.
|
|
32
|
-
function isStringOptions(options) {
|
|
33
|
-
return 'data' in options;
|
|
34
|
-
}
|
|
35
|
-
// Determines whether a sourceMap was requested by the call to `render()`.
|
|
36
|
-
function wasSourceMapRequested(options) {
|
|
37
|
-
return (typeof options.sourceMap === 'string' ||
|
|
38
|
-
(options.sourceMap === true && !!options.outFile));
|
|
39
|
-
}
|
|
40
|
-
// Transforms the compilation result into an object that mimics the Node Sass
|
|
41
|
-
// API format.
|
|
42
|
-
function newLegacyResult(options, start, result) {
|
|
43
|
-
var _a, _b;
|
|
44
|
-
const end = Date.now();
|
|
45
|
-
let css = result.css;
|
|
46
|
-
let sourceMapBytes;
|
|
47
|
-
if (result.sourceMap) {
|
|
48
|
-
const sourceMap = result.sourceMap;
|
|
49
|
-
sourceMap.sourceRoot = (_a = options.sourceMapRoot) !== null && _a !== void 0 ? _a : '';
|
|
50
|
-
const sourceMapPath = typeof options.sourceMap === 'string'
|
|
51
|
-
? options.sourceMap
|
|
52
|
-
: options.outFile + '.map';
|
|
53
|
-
const sourceMapDir = p.dirname(sourceMapPath);
|
|
54
|
-
if (options.outFile) {
|
|
55
|
-
sourceMap.file = (0, utils_1.pathToUrlString)(p.relative(sourceMapDir, options.outFile));
|
|
56
|
-
}
|
|
57
|
-
else if (options.file) {
|
|
58
|
-
sourceMap.file = (0, utils_1.pathToUrlString)(p.relative(sourceMapDir, (0, utils_1.withoutExtension)(options.file) + '.css'));
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
sourceMap.file = 'stdin.css';
|
|
62
|
-
}
|
|
63
|
-
sourceMap.sources = sourceMap.sources.map(source => {
|
|
64
|
-
if (source.startsWith('file://')) {
|
|
65
|
-
return (0, utils_1.pathToUrlString)(p.relative(sourceMapDir, (0, url_1.fileURLToPath)(source)));
|
|
66
|
-
}
|
|
67
|
-
else if (source.startsWith('data:')) {
|
|
68
|
-
return 'stdin';
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return source;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
sourceMapBytes = Buffer.from(JSON.stringify(sourceMap));
|
|
75
|
-
if (!options.omitSourceMapUrl) {
|
|
76
|
-
let url;
|
|
77
|
-
if (options.sourceMapEmbed) {
|
|
78
|
-
url = `data:application/json;base64,${sourceMapBytes.toString('base64')}`;
|
|
79
|
-
}
|
|
80
|
-
else if (options.outFile) {
|
|
81
|
-
url = (0, utils_1.pathToUrlString)(p.relative(p.dirname(options.outFile), sourceMapPath));
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
url = (0, utils_1.pathToUrlString)(sourceMapPath);
|
|
85
|
-
}
|
|
86
|
-
css += `\n\n/*# sourceMappingURL=${url} */`;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
css: Buffer.from(css),
|
|
91
|
-
map: sourceMapBytes,
|
|
92
|
-
stats: {
|
|
93
|
-
entry: (_b = options.file) !== null && _b !== void 0 ? _b : 'data',
|
|
94
|
-
start,
|
|
95
|
-
end,
|
|
96
|
-
duration: end - start,
|
|
97
|
-
includedFiles: result.loadedUrls.map(url => url.toString()),
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
// Decorates an Error with additional fields so that it behaves like a Node Sass
|
|
102
|
-
// error.
|
|
103
|
-
function newLegacyException(error) {
|
|
104
|
-
var _a, _b, _c, _d;
|
|
105
|
-
if (!(error instanceof exception_1.Exception)) {
|
|
106
|
-
return Object.assign(error, {
|
|
107
|
-
formatted: error.toString(),
|
|
108
|
-
status: 3,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
const file = ((_a = error.span) === null || _a === void 0 ? void 0 : _a.url)
|
|
112
|
-
? // We have to cast to Node's URL type here because the specified type is the
|
|
113
|
-
// standard URL type which is slightly less featureful. `fileURLToPath()`
|
|
114
|
-
// does work with standard URL objects in practice, but we know that we
|
|
115
|
-
// generate Node URLs here regardless.
|
|
116
|
-
(0, url_1.fileURLToPath)((_b = error.span) === null || _b === void 0 ? void 0 : _b.url)
|
|
117
|
-
: 'stdin';
|
|
118
|
-
return Object.assign(new Error(), {
|
|
119
|
-
status: 1,
|
|
120
|
-
message: error.toString().replace(/^Error: /, ''),
|
|
121
|
-
formatted: error.toString(),
|
|
122
|
-
toString: () => error.toString(),
|
|
123
|
-
stack: error.stack,
|
|
124
|
-
line: (0, utils_1.isNullOrUndefined)((_c = error.span) === null || _c === void 0 ? void 0 : _c.start.line)
|
|
125
|
-
? undefined
|
|
126
|
-
: error.span.start.line + 1,
|
|
127
|
-
column: (0, utils_1.isNullOrUndefined)((_d = error.span) === null || _d === void 0 ? void 0 : _d.start.column)
|
|
128
|
-
? undefined
|
|
129
|
-
: error.span.start.column + 1,
|
|
130
|
-
file,
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
//# sourceMappingURL=legacy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../lib/src/legacy.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;;AAEvC,0BAA0B;AAC1B,6BAAsD;AAEtD,2CAAsC;AACtC,uCAA2D;AAC3D,mCAA6E;AAS7E,SAAgB,MAAM,CACpB,OAA+B,EAC/B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