sass-embedded 1.0.0-beta.1 → 1.0.0-beta.7

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 (116) hide show
  1. package/CHANGELOG.md +49 -1
  2. package/README.md +3 -3
  3. package/dist/.gitignore +2 -1
  4. package/dist/lib/index.js +29 -2
  5. package/dist/lib/index.js.map +1 -1
  6. package/dist/lib/src/{embedded/compiler.js → async-compiler.js} +13 -13
  7. package/dist/lib/src/async-compiler.js.map +1 -0
  8. package/dist/lib/src/compile.js +170 -69
  9. package/dist/lib/src/compile.js.map +1 -1
  10. package/dist/lib/src/compiler-path.js +18 -0
  11. package/dist/lib/src/compiler-path.js.map +1 -0
  12. package/dist/lib/src/deprotofy-span.js +51 -0
  13. package/dist/lib/src/deprotofy-span.js.map +1 -0
  14. package/dist/lib/src/{embedded/dispatcher.js → dispatcher.js} +63 -57
  15. package/dist/lib/src/dispatcher.js.map +1 -0
  16. package/dist/lib/src/exception.js +20 -0
  17. package/dist/lib/src/exception.js.map +1 -0
  18. package/dist/lib/src/function-registry.js +81 -0
  19. package/dist/lib/src/function-registry.js.map +1 -0
  20. package/dist/lib/src/legacy.js +133 -0
  21. package/dist/lib/src/legacy.js.map +1 -0
  22. package/dist/lib/src/{embedded/message-transformer.js → message-transformer.js} +35 -34
  23. package/dist/lib/src/message-transformer.js.map +1 -0
  24. package/dist/lib/src/{embedded/packet-transformer.js → packet-transformer.js} +2 -1
  25. package/dist/lib/src/packet-transformer.js.map +1 -0
  26. package/dist/lib/src/protofier.js +205 -0
  27. package/dist/lib/src/protofier.js.map +1 -0
  28. package/dist/lib/src/{embedded/request-tracker.js → request-tracker.js} +1 -0
  29. package/dist/lib/src/request-tracker.js.map +1 -0
  30. package/dist/lib/src/sync-compiler.js +52 -0
  31. package/dist/lib/src/sync-compiler.js.map +1 -0
  32. package/dist/lib/src/{exception/span.js → sync-process/event.js} +2 -2
  33. package/dist/lib/src/sync-process/event.js.map +1 -0
  34. package/dist/lib/src/sync-process/index.js +122 -0
  35. package/dist/lib/src/sync-process/index.js.map +1 -0
  36. package/dist/lib/src/sync-process/sync-message-port.js +128 -0
  37. package/dist/lib/src/sync-process/sync-message-port.js.map +1 -0
  38. package/dist/lib/src/sync-process/worker.js +51 -0
  39. package/dist/lib/src/sync-process/worker.js.map +1 -0
  40. package/dist/lib/src/utils.js +64 -42
  41. package/dist/lib/src/utils.js.map +1 -1
  42. package/dist/lib/src/value/boolean.js +40 -0
  43. package/dist/lib/src/value/boolean.js.map +1 -0
  44. package/dist/lib/src/value/color.js +258 -0
  45. package/dist/lib/src/value/color.js.map +1 -0
  46. package/dist/lib/src/value/index.js +147 -0
  47. package/dist/lib/src/value/index.js.map +1 -0
  48. package/dist/lib/src/value/list.js +99 -0
  49. package/dist/lib/src/value/list.js.map +1 -0
  50. package/dist/lib/src/value/map.js +91 -0
  51. package/dist/lib/src/value/map.js.map +1 -0
  52. package/dist/lib/src/value/null.js +35 -0
  53. package/dist/lib/src/value/null.js.map +1 -0
  54. package/dist/lib/src/value/number.js +579 -0
  55. package/dist/lib/src/value/number.js.map +1 -0
  56. package/dist/lib/src/value/string.js +117 -0
  57. package/dist/lib/src/value/string.js.map +1 -0
  58. package/dist/lib/src/value/utils.js +120 -0
  59. package/dist/lib/src/value/utils.js.map +1 -0
  60. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js +1738 -261
  61. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js.map +1 -1
  62. package/dist/package.json +63 -0
  63. package/dist/tool/utils.js +78 -90
  64. package/dist/tool/utils.js.map +1 -1
  65. package/dist/types/compile.d.ts +152 -0
  66. package/dist/types/exception.d.ts +41 -0
  67. package/dist/types/importer.d.ts +294 -0
  68. package/dist/types/index.d.ts +76 -0
  69. package/dist/types/legacy/exception.d.ts +54 -0
  70. package/dist/types/legacy/function.d.ts +652 -0
  71. package/dist/types/legacy/importer.d.ts +168 -0
  72. package/dist/types/legacy/options.d.ts +642 -0
  73. package/dist/types/legacy/plugin_this.d.ts +70 -0
  74. package/dist/types/legacy/render.d.ts +139 -0
  75. package/dist/types/logger/index.d.ts +94 -0
  76. package/dist/types/logger/source_location.d.ts +21 -0
  77. package/dist/types/logger/source_span.d.ts +34 -0
  78. package/dist/types/options.d.ts +408 -0
  79. package/dist/types/util/promise_or.d.ts +17 -0
  80. package/dist/types/value/argument_list.d.ts +47 -0
  81. package/dist/types/value/boolean.d.ts +29 -0
  82. package/dist/types/value/color.d.ts +107 -0
  83. package/dist/types/value/function.d.ts +22 -0
  84. package/dist/types/value/index.d.ts +173 -0
  85. package/dist/types/value/list.d.ts +54 -0
  86. package/dist/types/value/map.d.ts +41 -0
  87. package/dist/types/value/number.d.ts +305 -0
  88. package/dist/types/value/string.d.ts +84 -0
  89. package/download-compiler-for-end-user.js +1 -6
  90. package/package.json +25 -21
  91. package/dist/lib/index.d.ts +0 -1
  92. package/dist/lib/src/compile.d.ts +0 -20
  93. package/dist/lib/src/embedded/compiler.d.ts +0 -19
  94. package/dist/lib/src/embedded/compiler.js.map +0 -1
  95. package/dist/lib/src/embedded/dispatcher.d.ts +0 -60
  96. package/dist/lib/src/embedded/dispatcher.js.map +0 -1
  97. package/dist/lib/src/embedded/message-transformer.d.ts +0 -47
  98. package/dist/lib/src/embedded/message-transformer.js.map +0 -1
  99. package/dist/lib/src/embedded/packet-transformer.d.ts +0 -34
  100. package/dist/lib/src/embedded/packet-transformer.js.map +0 -1
  101. package/dist/lib/src/embedded/request-tracker.d.ts +0 -20
  102. package/dist/lib/src/embedded/request-tracker.js.map +0 -1
  103. package/dist/lib/src/exception/exception.d.ts +0 -19
  104. package/dist/lib/src/exception/exception.js +0 -36
  105. package/dist/lib/src/exception/exception.js.map +0 -1
  106. package/dist/lib/src/exception/location.d.ts +0 -11
  107. package/dist/lib/src/exception/location.js +0 -6
  108. package/dist/lib/src/exception/location.js.map +0 -1
  109. package/dist/lib/src/exception/span.d.ts +0 -29
  110. package/dist/lib/src/exception/span.js.map +0 -1
  111. package/dist/lib/src/node-sass/render.d.ts +0 -60
  112. package/dist/lib/src/node-sass/render.js +0 -125
  113. package/dist/lib/src/node-sass/render.js.map +0 -1
  114. package/dist/lib/src/utils.d.ts +0 -14
  115. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.d.ts +0 -1
  116. package/dist/tool/utils.d.ts +0 -29
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-transformer.js","sourceRoot":"","sources":["../../../../lib/src/embedded/message-transformer.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;AAEvC,+BAAyC;AACzC,8CAAmC;AAEnC,oCAAkD;AAClD,mFAGsD;AAgDtD;;;;;;;;;;GAUG;AACH,MAAa,kBAAkB;IAW7B,YACmB,kBAAsC,EACtC,oBAA8C;QAD9C,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,yBAAoB,GAApB,oBAAoB,CAA0B;QAZjE,2EAA2E;QAC3E,4BAA4B;QACX,8BAAyB,GAAG,IAAI,cAAO,EAAwB,CAAC;QAEjF;;;WAGG;QACM,sBAAiB,GAAG,IAAI,CAAC,yBAAyB,CAAC,IAAI,EAAE,CAAC;QAMjE,IAAI,CAAC,kBAAkB;aACpB,IAAI,CAAC,eAAG,CAAC,MAAM,CAAC,CAAC;aACjB,SAAS,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,OAA4B;QAC9C,IAAI;YACF,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;SAC5C;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC7C;IACH,CAAC;CACF;AA9BD,gDA8BC;AAED,8EAA8E;AAC9E,+EAA+E;AAC/E,4EAA4E;AAC5E,SAAS,MAAM,CAAC,MAAc;;IAC5B,IAAI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Ac,CAAC,eAAe,EAAE,CAAC,CAAC;AACvD,CAAC"}
@@ -1,34 +0,0 @@
1
- /// <reference types="node" />
2
- import { Observable } from 'rxjs';
3
- /**
4
- * Decodes arbitrarily-chunked buffers, for example
5
- * [ 0 1 2 3 4 5 6 7 ... ],
6
- * into packets of set length in the form
7
- * +---------+------------- ...
8
- * | 0 1 2 3 | 4 5 6 7 ...
9
- * +---------+------------- ...
10
- * | HEADER | PAYLOAD (PROTOBUF)
11
- * +---------+------------- ...
12
- * and emits the payload of each packet.
13
- *
14
- * Encodes packets by attaching a header to a protobuf that describes the
15
- * protobuf's length.
16
- */
17
- export declare class PacketTransformer {
18
- private readonly outboundBuffers$;
19
- private readonly writeInboundBuffer;
20
- private packet;
21
- private readonly outboundProtobufsInternal$;
22
- /**
23
- * The fully-decoded, outbound protobufs. If any errors are encountered
24
- * during encoding/decoding, this Observable will error out.
25
- */
26
- readonly outboundProtobufs$: Observable<Buffer>;
27
- constructor(outboundBuffers$: Observable<Buffer>, writeInboundBuffer: (buffer: Buffer) => void);
28
- /**
29
- * Encodes a packet by pre-fixing `protobuf` with a header that describes its
30
- * length.
31
- */
32
- writeInboundProtobuf(protobuf: Buffer): void;
33
- private decode;
34
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"packet-transformer.js","sourceRoot":"","sources":["../../../../lib/src/embedded/packet-transformer.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;AAEvC,+BAAyC;AACzC,8CAAwC;AACxC,gDAAiD;AAEjD;;;;;;;;;;;;;GAaG;AACH,MAAa,iBAAiB;IAc5B,YACmB,gBAAoC,EACpC,kBAA4C;QAD5C,qBAAgB,GAAhB,gBAAgB,CAAoB;QACpC,uBAAkB,GAAlB,kBAAkB,CAA0B;QAf/D,gEAAgE;QACxD,WAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QAE9B,4EAA4E;QAC5E,4BAA4B;QACX,+BAA0B,GAAG,IAAI,cAAO,EAA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- import { InboundResponseType, OutboundResponseType } from './message-transformer';
2
- /**
3
- * Manages pending inbound and outbound requests. Ensures that requests and
4
- * responses interact correctly and obey the Embedded Protocol.
5
- */
6
- export declare class RequestTracker {
7
- private readonly requests;
8
- /** The next available request ID. */
9
- get nextId(): number;
10
- /**
11
- * Adds an entry for a pending request with ID `id`. The entry stores the
12
- * expected response type. Throws an error if the Protocol Error is violated.
13
- */
14
- add(id: number, expectedResponseType: InboundResponseType | OutboundResponseType): void;
15
- /**
16
- * Resolves a pending request with matching ID `id` and expected response type
17
- * `type`. Throws an error if the Protocol Error is violated.
18
- */
19
- resolve(id: number, type: InboundResponseType | OutboundResponseType): void;
20
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-tracker.js","sourceRoot":"","sources":["../../../../lib/src/embedded/request-tracker.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;AAIvC;;;GAGG;AACH,MAAa,cAAc;IAA3B;QACE,4EAA4E;QAC5E,8CAA8C;QAC7B,aAAQ,GAErB,EAAE,CAAC;IA4CT,CAAC;IA1CC,qCAAqC;IACrC,IAAI,MAAM;QACR,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;gBAC/D,OAAO,CAAC,CAAC;aACV;SACF;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,GAAG,CACD,EAAU,EACV,oBAAgE;QAEhE,IAAI,EAAE,GAAG,CAAC,EAAE;YACV,MAAM,KAAK,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC;SAC1C;aAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;YAC5B,MAAM,KAAK,CACT,cAAc,EAAE,6CAA6C,CAC9D,CAAC;SACH;QACD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,oBAAoB,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,EAAU,EAAE,IAAgD;QAClE,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE;YACjE,MAAM,KAAK,CAAC,eAAe,EAAE,uCAAuC,CAAC,CAAC;SACvE;aAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE;YACrC,MAAM,KAAK,CACT,oBAAoB,EAAE,oDAAoD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,IAAI,GAAG,CACpH,CAAC;SACH;QACD,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAC3B,CAAC;CACF;AAjDD,wCAiDC"}
@@ -1,19 +0,0 @@
1
- import { SourceSpan } from './span';
2
- /**
3
- * An exception thrown by Sass.
4
- */
5
- export declare class SassException extends Error {
6
- readonly message: string;
7
- private readonly formatted;
8
- readonly span?: SourceSpan | undefined;
9
- readonly trace?: string | undefined;
10
- /**
11
- * @param message - The error message.
12
- * @param formatted - The formatted error message. Includes the message, span,
13
- * and trace.
14
- * @param [span] - The source span associated with the error.
15
- * @param [trace] - The trace associated with the error.
16
- */
17
- constructor(message: string, formatted: string, span?: SourceSpan | undefined, trace?: string | undefined);
18
- toString(): string;
19
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- // Copyright 2020 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
- /**
7
- * An exception thrown by Sass.
8
- */
9
- class SassException extends Error {
10
- /**
11
- * @param message - The error message.
12
- * @param formatted - The formatted error message. Includes the message, span,
13
- * and trace.
14
- * @param [span] - The source span associated with the error.
15
- * @param [trace] - The trace associated with the error.
16
- */
17
- constructor(message, formatted, span, trace) {
18
- var _a;
19
- super(message);
20
- this.message = message;
21
- this.formatted = formatted;
22
- this.span = span;
23
- this.trace = trace;
24
- if (formatted === '')
25
- this.formatted = `Error: ${message}`;
26
- if (trace === '')
27
- this.trace = undefined;
28
- // Inject the entire Sass error into the JS stack trace.
29
- this.stack = (_a = this.stack) === null || _a === void 0 ? void 0 : _a.replace(new RegExp(`^Error: ${message}`), this.formatted);
30
- }
31
- toString() {
32
- return this.formatted;
33
- }
34
- }
35
- exports.SassException = SassException;
36
- //# sourceMappingURL=exception.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exception.js","sourceRoot":"","sources":["../../../../lib/src/exception/exception.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;AAIvC;;GAEG;AACH,MAAa,aAAc,SAAQ,KAAK;IACtC;;;;;;OAMG;IACH,YACW,OAAe,EACP,SAAiB,EACzB,IAAiB,EACjB,KAAc;;QAEvB,KAAK,CAAC,OAAO,CAAC,CAAC;QALN,YAAO,GAAP,OAAO,CAAQ;QACP,cAAS,GAAT,SAAS,CAAQ;QACzB,SAAI,GAAJ,IAAI,CAAa;QACjB,UAAK,GAAL,KAAK,CAAS;QAIvB,IAAI,SAAS,KAAK,EAAE;YAAE,IAAI,CAAC,SAAS,GAAG,UAAU,OAAO,EAAE,CAAC;QAC3D,IAAI,KAAK,KAAK,EAAE;YAAE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QAEzC,wDAAwD;QACxD,IAAI,CAAC,KAAK,SAAG,IAAI,CAAC,KAAK,0CAAE,OAAO,CAC9B,IAAI,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,EAChC,IAAI,CAAC,SAAS,CACf,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF;AA7BD,sCA6BC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * A single point in a source file.
3
- */
4
- export interface SourceLocation {
5
- /** 0-based offset of this location within the source file. */
6
- readonly offset: number;
7
- /** 0-based line number of this location within the source file. */
8
- readonly line: number;
9
- /** 0-based column number of this location within its line. */
10
- readonly column: number;
11
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // Copyright 2020 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
- //# sourceMappingURL=location.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../../lib/src/exception/location.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC"}
@@ -1,29 +0,0 @@
1
- import { SourceLocation } from './location';
2
- /**
3
- * A chunk of a source file.
4
- */
5
- export interface SourceSpan {
6
- /**
7
- * The text covered by the span, between `start.offset` and `end.offset` in
8
- * the source file referred to by `url`.
9
- */
10
- readonly text: string;
11
- /** The location of the first character in the span. */
12
- readonly start: SourceLocation;
13
- /**
14
- * The location of the first character after the span. If omitted, indicates
15
- * that the span is empty and points immediately before `start`.
16
- */
17
- readonly end?: SourceLocation;
18
- /**
19
- * The URL of the file to which this span refers. If omitted, indicates that
20
- * the span refers to a string that doesn't specify a URL.
21
- */
22
- readonly url?: string;
23
- /**
24
- * Additional source text surrounding the span. Usually contains the full
25
- * lines the span begins and ends on if the span itself doesn't cover the full
26
- * lines.
27
- */
28
- readonly context?: string;
29
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"span.js","sourceRoot":"","sources":["../../../../lib/src/exception/span.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC"}
@@ -1,60 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * Options that are passed to render().
4
- *
5
- * This attempts to match the Node Sass render options as closely as possible
6
- * (see: https://github.com/sass/node-sass#options).
7
- */
8
- export declare type RenderOptions = (FileOptions | StringOptions) & SharedOptions;
9
- interface FileOptions extends SharedOptions {
10
- file: string;
11
- }
12
- interface StringOptions extends SharedOptions {
13
- data: string;
14
- file?: string;
15
- }
16
- interface SharedOptions {
17
- omitSourceMapUrl?: boolean;
18
- outFile?: string | null;
19
- sourceMap?: boolean | string;
20
- sourceMapEmbed?: boolean;
21
- sourceMapRoot?: string;
22
- }
23
- /**
24
- * The result returned by render().
25
- *
26
- * This attempts to match the Node Sass result object as closely as possible
27
- * (see: https://github.com/sass/node-sass#result-object).
28
- */
29
- export interface RenderResult {
30
- css: Buffer;
31
- map?: Buffer;
32
- stats: {
33
- start: number;
34
- end: number;
35
- duration: number;
36
- entry: string;
37
- };
38
- }
39
- /**
40
- * An error thrown by render().
41
- *
42
- * This attempts to match the Node Sass error object as closely as possible
43
- * (see: https://github.com/sass/node-sass#error-object).
44
- */
45
- export interface RenderError extends Error {
46
- status: number;
47
- message: string;
48
- formatted?: string;
49
- line?: number;
50
- column?: number;
51
- file?: string;
52
- }
53
- /**
54
- * Converts Sass to CSS.
55
- *
56
- * This attempts to match the Node Sass `render()` API as closely as possible
57
- * (see: https://github.com/sass/node-sass#usage).
58
- */
59
- export declare function render(options: RenderOptions, callback: (error?: RenderError, result?: RenderResult) => void): void;
60
- export {};
@@ -1,125 +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
- const p = require("path");
7
- const url_1 = require("url");
8
- const compile_1 = require("../compile");
9
- const exception_1 = require("../exception/exception");
10
- const utils_1 = require("../utils");
11
- /**
12
- * Converts Sass to CSS.
13
- *
14
- * This attempts to match the Node Sass `render()` API as closely as possible
15
- * (see: https://github.com/sass/node-sass#usage).
16
- */
17
- function render(options, callback) {
18
- const fileRequest = options;
19
- const stringRequest = options;
20
- if (!fileRequest.file && utils_1.isNullOrUndefined(stringRequest.data)) {
21
- callback(newRenderError(Error('Either options.data or options.file must be set.')));
22
- return;
23
- }
24
- let sourceMap;
25
- const getSourceMap = wasSourceMapRequested(options)
26
- ? (map) => (sourceMap = map)
27
- : undefined;
28
- const start = Date.now();
29
- const compileSass = stringRequest.data
30
- ? compile_1.compileString({
31
- source: stringRequest.data,
32
- sourceMap: getSourceMap,
33
- url: stringRequest.file ? url_1.pathToFileURL(stringRequest.file) : 'stdin',
34
- })
35
- : compile_1.compile({ path: fileRequest.file, sourceMap: getSourceMap });
36
- compileSass.then(css => callback(undefined, newRenderResult(options, start, css, sourceMap)), error => callback(newRenderError(error)));
37
- }
38
- exports.render = render;
39
- // Determines whether a sourceMap was requested by the call to render().
40
- function wasSourceMapRequested(options) {
41
- return (typeof options.sourceMap === 'string' ||
42
- (options.sourceMap === true && !!options.outFile));
43
- }
44
- // Transforms the compilation result into an object that mimics the Node Sass
45
- // API format.
46
- function newRenderResult(options, start, css, sourceMap) {
47
- var _a, _b;
48
- const end = Date.now();
49
- let sourceMapBytes;
50
- if (sourceMap) {
51
- sourceMap.sourceRoot = (_a = options.sourceMapRoot) !== null && _a !== void 0 ? _a : '';
52
- const sourceMapPath = typeof options.sourceMap === 'string'
53
- ? options.sourceMap
54
- : options.outFile + '.map';
55
- const sourceMapDir = p.dirname(sourceMapPath);
56
- if (options.outFile) {
57
- sourceMap.file = p.relative(sourceMapDir, options.outFile);
58
- }
59
- else if (options.file) {
60
- const extension = p.extname(options.file);
61
- sourceMap.file = `${options.file.substring(0, options.file.length - extension.length)}.css`;
62
- }
63
- else {
64
- sourceMap.file = 'stdin.css';
65
- }
66
- sourceMap.sources = sourceMap.sources.map(source => {
67
- if (source === 'stdin')
68
- return source;
69
- return p.relative(sourceMapDir, url_1.fileURLToPath(source));
70
- });
71
- sourceMapBytes = Buffer.from(JSON.stringify(sourceMap));
72
- if (!options.omitSourceMapUrl) {
73
- let url;
74
- if (options.sourceMapEmbed) {
75
- url = `data:application/json;base64,${sourceMapBytes.toString('base64')}`;
76
- }
77
- else if (options.outFile) {
78
- url = p.relative(p.dirname(options.outFile), sourceMapPath);
79
- }
80
- else {
81
- url = sourceMapPath;
82
- }
83
- css += `\n\n/*# sourceMappingURL=${url} */`;
84
- }
85
- }
86
- return {
87
- css: Buffer.from(css),
88
- map: sourceMapBytes,
89
- stats: {
90
- entry: (_b = options.file) !== null && _b !== void 0 ? _b : 'data',
91
- start,
92
- end,
93
- duration: end - start,
94
- },
95
- };
96
- }
97
- // Decorates an Error with additional fields so that it behaves like a Node Sass
98
- // error.
99
- function newRenderError(error) {
100
- var _a, _b, _c;
101
- if (!(error instanceof exception_1.SassException)) {
102
- return Object.assign(error, {
103
- status: 3,
104
- });
105
- }
106
- let file = ((_a = error.span) === null || _a === void 0 ? void 0 : _a.url) || undefined;
107
- if (file && file !== 'stdin') {
108
- file = url_1.fileURLToPath(file);
109
- }
110
- return Object.assign(new Error(), {
111
- status: 1,
112
- message: error.toString().replace(/^Error: /, ''),
113
- formatted: error.toString(),
114
- toString: () => error.toString(),
115
- stack: error.stack,
116
- line: utils_1.isNullOrUndefined((_b = error.span) === null || _b === void 0 ? void 0 : _b.start.line)
117
- ? undefined
118
- : error.span.start.line + 1,
119
- column: utils_1.isNullOrUndefined((_c = error.span) === null || _c === void 0 ? void 0 : _c.start.column)
120
- ? undefined
121
- : error.span.start.column + 1,
122
- file,
123
- });
124
- }
125
- //# sourceMappingURL=render.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render.js","sourceRoot":"","sources":["../../../../lib/src/node-sass/render.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;AAEvC,0BAA0B;AAE1B,6BAAiD;AAEjD,wCAAkD;AAClD,sDAAqD;AACrD,oCAA2C;AAqE3C;;;;;GAKG;AACH,SAAgB,MAAM,CAC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AI,GAAG,mBAAa,CAAC,IAAI,CAAC,CAAC;KAC5B;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,EAAE;QAChC,MAAM,EAAE,CAAC;QACT,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;QACjD,SAAS,EAAE,KAAK,CAAC,QAAQ,EAAE;QAC3B,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE;QAChC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,IAAI,EAAE,yBAAiB,OAAC,KAAK,CAAC,IAAI,0CAAE,KAAK,CAAC,IAAI,CAAC;YAC7C,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,KAAK,CAAC,IAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC;QAC9B,MAAM,EAAE,yBAAiB,OAAC,KAAK,CAAC,IAAI,0CAAE,KAAK,CAAC,MAAM,CAAC;YACjD,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,KAAK,CAAC,IAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC;QAChC,IAAI;KACL,CAAC,CAAC;AACL,CAAC"}
@@ -1,14 +0,0 @@
1
- import { SassException } from './exception/exception';
2
- import * as proto from './vendor/embedded-protocol/embedded_sass_pb';
3
- export declare type PromiseOr<T> = T | Promise<T>;
4
- /** Checks for null or undefined. */
5
- export declare function isNullOrUndefined<T>(object: T): boolean;
6
- /** Constructs a compiler-caused Error. */
7
- export declare function compilerError(message: string): Error;
8
- /** Constructs a host-caused Error. */
9
- export declare function hostError(message: string): Error;
10
- /**
11
- * Creates a SassException from the given protocol `buffer`. Throws if the
12
- * buffer has invalid fields.
13
- */
14
- export declare function deprotifyException(buffer: proto.OutboundMessage.CompileResponse.CompileFailure): SassException;
@@ -1,29 +0,0 @@
1
- /**
2
- * Gets the latest version of the Embedded Protocol. Throws if an error occurs.
3
- *
4
- * @param version - The Git ref to check out and build. Defaults to `master`.
5
- * @param path - Build from this path instead of pulling from Github.
6
- * @param release - Download the latest release instead of building from source.
7
- */
8
- export declare function getEmbeddedProtocol(options: {
9
- outPath: string;
10
- version?: string;
11
- path?: string;
12
- release?: boolean;
13
- }): Promise<void>;
14
- /**
15
- * Gets the latest version of the Dart Sass wrapper for the Embedded Compiler.
16
- * Throws if an error occurs.
17
- *
18
- * @param version - If `release` is true, the version of the released binary to
19
- * download (defaults to the latest version). If it's false, the Git ref to
20
- * check out and build (defaults to master).
21
- * @param path - Build from this path instead of pulling from Github.
22
- * @param release - Download the latest release instead of building from source.
23
- */
24
- export declare function getDartSassEmbedded(options: {
25
- outPath: string;
26
- version?: string;
27
- path?: string;
28
- release?: boolean;
29
- }): Promise<void>;