sass-embedded-go 1.104.0-alpha0

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 (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/lib/index.js +100 -0
  4. package/lib/index.js.map +1 -0
  5. package/lib/index.mjs +215 -0
  6. package/lib/src/canonicalize-context.js +31 -0
  7. package/lib/src/canonicalize-context.js.map +1 -0
  8. package/lib/src/compile.js +51 -0
  9. package/lib/src/compile.js.map +1 -0
  10. package/lib/src/compiler/async.js +187 -0
  11. package/lib/src/compiler/async.js.map +1 -0
  12. package/lib/src/compiler/sync.js +204 -0
  13. package/lib/src/compiler/sync.js.map +1 -0
  14. package/lib/src/compiler/utils.js +210 -0
  15. package/lib/src/compiler/utils.js.map +1 -0
  16. package/lib/src/compiler-module.js +64 -0
  17. package/lib/src/compiler-module.js.map +1 -0
  18. package/lib/src/compiler-path.js +82 -0
  19. package/lib/src/compiler-path.js.map +1 -0
  20. package/lib/src/deprecations.js +121 -0
  21. package/lib/src/deprecations.js.map +1 -0
  22. package/lib/src/deprotofy-span.js +41 -0
  23. package/lib/src/deprotofy-span.js.map +1 -0
  24. package/lib/src/dispatcher.js +241 -0
  25. package/lib/src/dispatcher.js.map +1 -0
  26. package/lib/src/elf.js +114 -0
  27. package/lib/src/elf.js.map +1 -0
  28. package/lib/src/exception.js +23 -0
  29. package/lib/src/exception.js.map +1 -0
  30. package/lib/src/function-registry.js +127 -0
  31. package/lib/src/function-registry.js.map +1 -0
  32. package/lib/src/importer-registry.js +201 -0
  33. package/lib/src/importer-registry.js.map +1 -0
  34. package/lib/src/legacy/importer.js +296 -0
  35. package/lib/src/legacy/importer.js.map +1 -0
  36. package/lib/src/legacy/index.js +329 -0
  37. package/lib/src/legacy/index.js.map +1 -0
  38. package/lib/src/legacy/resolve-path.js +133 -0
  39. package/lib/src/legacy/resolve-path.js.map +1 -0
  40. package/lib/src/legacy/utils.js +58 -0
  41. package/lib/src/legacy/utils.js.map +1 -0
  42. package/lib/src/legacy/value/base.js +18 -0
  43. package/lib/src/legacy/value/base.js.map +1 -0
  44. package/lib/src/legacy/value/color.js +65 -0
  45. package/lib/src/legacy/value/color.js.map +1 -0
  46. package/lib/src/legacy/value/index.js +23 -0
  47. package/lib/src/legacy/value/index.js.map +1 -0
  48. package/lib/src/legacy/value/list.js +50 -0
  49. package/lib/src/legacy/value/list.js.map +1 -0
  50. package/lib/src/legacy/value/map.js +74 -0
  51. package/lib/src/legacy/value/map.js.map +1 -0
  52. package/lib/src/legacy/value/number.js +60 -0
  53. package/lib/src/legacy/value/number.js.map +1 -0
  54. package/lib/src/legacy/value/string.js +27 -0
  55. package/lib/src/legacy/value/string.js.map +1 -0
  56. package/lib/src/legacy/value/wrap.js +115 -0
  57. package/lib/src/legacy/value/wrap.js.map +1 -0
  58. package/lib/src/logger.js +10 -0
  59. package/lib/src/logger.js.map +1 -0
  60. package/lib/src/message-transformer.js +108 -0
  61. package/lib/src/message-transformer.js.map +1 -0
  62. package/lib/src/messages.js +6 -0
  63. package/lib/src/messages.js.map +1 -0
  64. package/lib/src/packet-transformer.js +171 -0
  65. package/lib/src/packet-transformer.js.map +1 -0
  66. package/lib/src/protofier.js +492 -0
  67. package/lib/src/protofier.js.map +1 -0
  68. package/lib/src/request-tracker.js +52 -0
  69. package/lib/src/request-tracker.js.map +1 -0
  70. package/lib/src/utils.js +177 -0
  71. package/lib/src/utils.js.map +1 -0
  72. package/lib/src/value/argument-list.js +66 -0
  73. package/lib/src/value/argument-list.js.map +1 -0
  74. package/lib/src/value/boolean.js +69 -0
  75. package/lib/src/value/boolean.js.map +1 -0
  76. package/lib/src/value/calculations.js +114 -0
  77. package/lib/src/value/calculations.js.map +1 -0
  78. package/lib/src/value/color.js +869 -0
  79. package/lib/src/value/color.js.map +1 -0
  80. package/lib/src/value/function.js +74 -0
  81. package/lib/src/value/function.js.map +1 -0
  82. package/lib/src/value/index.js +166 -0
  83. package/lib/src/value/index.js.map +1 -0
  84. package/lib/src/value/list.js +101 -0
  85. package/lib/src/value/list.js.map +1 -0
  86. package/lib/src/value/map.js +92 -0
  87. package/lib/src/value/map.js.map +1 -0
  88. package/lib/src/value/mixin.js +50 -0
  89. package/lib/src/value/mixin.js.map +1 -0
  90. package/lib/src/value/null.js +49 -0
  91. package/lib/src/value/null.js.map +1 -0
  92. package/lib/src/value/number.js +583 -0
  93. package/lib/src/value/number.js.map +1 -0
  94. package/lib/src/value/string.js +118 -0
  95. package/lib/src/value/string.js.map +1 -0
  96. package/lib/src/value/utils.js +124 -0
  97. package/lib/src/value/utils.js.map +1 -0
  98. package/lib/src/vendor/deprecations.js +216 -0
  99. package/lib/src/vendor/deprecations.js.map +1 -0
  100. package/lib/src/vendor/embedded_sass_pb.js +432 -0
  101. package/lib/src/vendor/embedded_sass_pb.js.map +1 -0
  102. package/lib/src/vendor/sass/README.md +162 -0
  103. package/lib/src/vendor/sass/compile.d.ts +342 -0
  104. package/lib/src/vendor/sass/deprecations.d.ts +312 -0
  105. package/lib/src/vendor/sass/exception.d.ts +41 -0
  106. package/lib/src/vendor/sass/importer.d.ts +471 -0
  107. package/lib/src/vendor/sass/index.d.ts +122 -0
  108. package/lib/src/vendor/sass/index.m.d.ts +122 -0
  109. package/lib/src/vendor/sass/legacy/exception.d.ts +55 -0
  110. package/lib/src/vendor/sass/legacy/function.d.ts +757 -0
  111. package/lib/src/vendor/sass/legacy/importer.d.ts +169 -0
  112. package/lib/src/vendor/sass/legacy/options.d.ts +700 -0
  113. package/lib/src/vendor/sass/legacy/plugin_this.d.ts +74 -0
  114. package/lib/src/vendor/sass/legacy/render.d.ts +144 -0
  115. package/lib/src/vendor/sass/logger/index.d.ts +115 -0
  116. package/lib/src/vendor/sass/logger/source_location.d.ts +21 -0
  117. package/lib/src/vendor/sass/logger/source_span.d.ts +34 -0
  118. package/lib/src/vendor/sass/options.d.ts +468 -0
  119. package/lib/src/vendor/sass/util/promise_or.d.ts +17 -0
  120. package/lib/src/vendor/sass/value/argument_list.d.ts +47 -0
  121. package/lib/src/vendor/sass/value/boolean.d.ts +29 -0
  122. package/lib/src/vendor/sass/value/calculation.d.ts +137 -0
  123. package/lib/src/vendor/sass/value/color.d.ts +567 -0
  124. package/lib/src/vendor/sass/value/function.d.ts +22 -0
  125. package/lib/src/vendor/sass/value/index.d.ts +219 -0
  126. package/lib/src/vendor/sass/value/list.d.ts +54 -0
  127. package/lib/src/vendor/sass/value/map.d.ts +41 -0
  128. package/lib/src/vendor/sass/value/mixin.d.ts +14 -0
  129. package/lib/src/vendor/sass/value/number.d.ts +305 -0
  130. package/lib/src/vendor/sass/value/string.d.ts +84 -0
  131. package/lib/src/version.js +28 -0
  132. package/lib/src/version.js.map +1 -0
  133. package/package.json +36 -0
  134. package/types/compile.d.ts +342 -0
  135. package/types/deprecations.d.ts +312 -0
  136. package/types/exception.d.ts +41 -0
  137. package/types/importer.d.ts +471 -0
  138. package/types/index.d.ts +122 -0
  139. package/types/index.m.d.ts +122 -0
  140. package/types/legacy/exception.d.ts +55 -0
  141. package/types/legacy/function.d.ts +757 -0
  142. package/types/legacy/importer.d.ts +169 -0
  143. package/types/legacy/options.d.ts +700 -0
  144. package/types/legacy/plugin_this.d.ts +74 -0
  145. package/types/legacy/render.d.ts +144 -0
  146. package/types/logger/index.d.ts +115 -0
  147. package/types/logger/source_location.d.ts +21 -0
  148. package/types/logger/source_span.d.ts +34 -0
  149. package/types/options.d.ts +468 -0
  150. package/types/util/promise_or.d.ts +17 -0
  151. package/types/value/argument_list.d.ts +47 -0
  152. package/types/value/boolean.d.ts +29 -0
  153. package/types/value/calculation.d.ts +137 -0
  154. package/types/value/color.d.ts +567 -0
  155. package/types/value/function.d.ts +22 -0
  156. package/types/value/index.d.ts +219 -0
  157. package/types/value/list.d.ts +54 -0
  158. package/types/value/map.d.ts +41 -0
  159. package/types/value/mixin.d.ts +14 -0
  160. package/types/value/number.d.ts +305 -0
  161. package/types/value/string.d.ts +84 -0
@@ -0,0 +1,122 @@
1
+ // This is a mirror of the JS API definitions in `spec/js-api`, but with comments
2
+ // written to provide user-facing documentation rather than to specify behavior for
3
+ // implementations.
4
+
5
+ export {
6
+ AsyncCompiler,
7
+ CompileResult,
8
+ Compiler,
9
+ compile,
10
+ compileAsync,
11
+ compileString,
12
+ compileStringAsync,
13
+ initCompiler,
14
+ initAsyncCompiler,
15
+ } from './compile';
16
+ export {
17
+ deprecations,
18
+ Deprecation,
19
+ Deprecations,
20
+ DeprecationOrId,
21
+ DeprecationStatus,
22
+ Version,
23
+ } from './deprecations';
24
+ export {Exception} from './exception';
25
+ export {
26
+ CanonicalizeContext,
27
+ FileImporter,
28
+ Importer,
29
+ ImporterResult,
30
+ NodePackageImporter,
31
+ } from './importer';
32
+ export {Logger, LoggerWarnOptions, SourceSpan, SourceLocation} from './logger';
33
+ export {
34
+ CustomFunction,
35
+ Options,
36
+ OutputStyle,
37
+ StringOptions,
38
+ StringOptionsWithImporter,
39
+ StringOptionsWithoutImporter,
40
+ Syntax,
41
+ } from './options';
42
+ export {PromiseOr} from './util/promise_or';
43
+ export {
44
+ CalculationInterpolation,
45
+ CalculationOperation,
46
+ CalculationOperator,
47
+ CalculationValue,
48
+ ChannelName,
49
+ ChannelNameHsl,
50
+ ChannelNameHwb,
51
+ ChannelNameLch,
52
+ ChannelNameLab,
53
+ ChannelNameRgb,
54
+ ChannelNameXyz,
55
+ ColorSpaceHsl,
56
+ ColorSpaceHwb,
57
+ ColorSpaceLch,
58
+ ColorSpaceLab,
59
+ ColorSpaceRgb,
60
+ ColorSpaceXyz,
61
+ GamutMapMethod,
62
+ HueInterpolationMethod,
63
+ KnownColorSpace,
64
+ ListSeparator,
65
+ PolarColorSpace,
66
+ RectangularColorSpace,
67
+ SassArgumentList,
68
+ SassBoolean,
69
+ SassCalculation,
70
+ SassColor,
71
+ SassFunction,
72
+ SassList,
73
+ SassMap,
74
+ SassMixin,
75
+ SassNumber,
76
+ SassString,
77
+ Value,
78
+ sassFalse,
79
+ sassNull,
80
+ sassTrue,
81
+ } from './value';
82
+
83
+ // Legacy APIs
84
+ export {LegacyException} from './legacy/exception';
85
+ export {
86
+ FALSE,
87
+ LegacyAsyncFunction,
88
+ LegacyAsyncFunctionDone,
89
+ LegacyFunction,
90
+ LegacySyncFunction,
91
+ LegacyValue,
92
+ NULL,
93
+ TRUE,
94
+ types,
95
+ } from './legacy/function';
96
+ export {
97
+ LegacyAsyncImporter,
98
+ LegacyImporter,
99
+ LegacyImporterResult,
100
+ LegacyImporterThis,
101
+ LegacySyncImporter,
102
+ } from './legacy/importer';
103
+ export {
104
+ LegacySharedOptions,
105
+ LegacyFileOptions,
106
+ LegacyStringOptions,
107
+ LegacyOptions,
108
+ } from './legacy/options';
109
+ export {LegacyPluginThis} from './legacy/plugin_this';
110
+ export {LegacyResult, render, renderSync} from './legacy/render';
111
+
112
+ /**
113
+ * Information about the Sass implementation. This always begins with a unique
114
+ * identifier for the Sass implementation, followed by U+0009 TAB, followed by
115
+ * its npm package version. Some implementations include additional information
116
+ * as well, but not in any standardized format.
117
+ *
118
+ * * For Dart Sass, the implementation name is `dart-sass`.
119
+ * * For Node Sass, the implementation name is `node-sass`.
120
+ * * For the embedded host, the implementation name is `sass-embedded`.
121
+ */
122
+ export const info: string;
@@ -0,0 +1,55 @@
1
+ /**
2
+ * The exception type thrown by {@link renderSync} and passed as the error to
3
+ * {@link render}'s callback.
4
+ *
5
+ * @category Legacy
6
+ * @deprecated This is only thrown by the legacy {@link render} and {@link
7
+ * renderSync} APIs. Use {@link compile}, {@link compileString}, {@link
8
+ * compileAsync}, and {@link compileStringAsync} instead.
9
+ */
10
+ export interface LegacyException extends Error {
11
+ /**
12
+ * The error message. For Dart Sass, when possible this includes a highlighted
13
+ * indication of where in the source file the error occurred as well as the
14
+ * Sass stack trace.
15
+ */
16
+ message: string;
17
+
18
+ /**
19
+ * The error message. For Dart Sass, this is the same as the result of calling
20
+ * {@link toString}, which is itself the same as {@link message} but with the
21
+ * prefix "Error:".
22
+ */
23
+ formatted: string;
24
+
25
+ /**
26
+ * The (1-based) line number on which the error occurred, if this exception is
27
+ * associated with a specific Sass file location.
28
+ */
29
+ line?: number;
30
+
31
+ /**
32
+ * The (1-based) column number within {@link line} at which the error
33
+ * occurred, if this exception is associated with a specific Sass file
34
+ * location.
35
+ */
36
+ column?: number;
37
+
38
+ /**
39
+ * Analogous to the exit code for an executable. `1` for an error caused by a
40
+ * Sass file, `3` for any other type of error.
41
+ */
42
+ status: number;
43
+
44
+ /**
45
+ * If this exception was caused by an error in a Sass file, this will
46
+ * represent the Sass file's location. It can be in one of three formats:
47
+ *
48
+ * * If the Sass file was loaded from disk, this is the path to that file.
49
+ * * If the Sass file was generated by an importer, this is its canonical URL.
50
+ * * If the Sass file was passed as {@link LegacyStringOptions.data} without a
51
+ * corresponding {@link LegacyStringOptions.file}, this is the special
52
+ * string `"stdin"`.
53
+ */
54
+ file?: string;
55
+ }