sass-embedded 1.77.5 → 1.78.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/dist/bin/sass.js +23 -0
- package/dist/bin/sass.js.map +1 -0
- package/dist/jest.config.js +1 -0
- package/dist/jest.config.js.map +1 -1
- package/dist/lib/src/compile.js +5 -5
- package/dist/lib/src/compile.js.map +1 -1
- package/dist/lib/src/compiler/async.js +2 -2
- package/dist/lib/src/compiler/async.js.map +1 -1
- package/dist/lib/src/compiler/sync.js +2 -2
- package/dist/lib/src/compiler/sync.js.map +1 -1
- package/dist/lib/src/compiler/utils.js +5 -6
- package/dist/lib/src/compiler/utils.js.map +1 -1
- package/dist/lib/src/compiler-path.js +14 -6
- package/dist/lib/src/compiler-path.js.map +1 -1
- package/dist/lib/src/deprecations.js +2 -2
- package/dist/lib/src/deprecations.js.map +1 -1
- package/dist/lib/src/deprotofy-span.js +1 -2
- package/dist/lib/src/deprotofy-span.js.map +1 -1
- package/dist/lib/src/elf.js +81 -0
- package/dist/lib/src/elf.js.map +1 -0
- package/dist/lib/src/legacy/index.js +5 -3
- package/dist/lib/src/legacy/index.js.map +1 -1
- package/dist/lib/src/legacy/resolve-path.js +1 -2
- package/dist/lib/src/legacy/resolve-path.js.map +1 -1
- package/dist/lib/src/legacy/utils.js +5 -5
- package/dist/lib/src/legacy/utils.js.map +1 -1
- package/dist/lib/src/legacy/value/wrap.js +5 -6
- package/dist/lib/src/legacy/value/wrap.js.map +1 -1
- package/dist/lib/src/utils.js +14 -15
- package/dist/lib/src/utils.js.map +1 -1
- package/dist/lib/src/value/calculations.js +4 -2
- package/dist/lib/src/value/calculations.js.map +1 -1
- package/dist/lib/src/value/utils.js +13 -13
- package/dist/lib/src/value/utils.js.map +1 -1
- package/dist/lib/src/vendor/deprecations.js +14 -0
- package/dist/lib/src/vendor/deprecations.js.map +1 -1
- package/dist/package.json +26 -20
- package/dist/test/sandbox.js +1 -2
- package/dist/test/sandbox.js.map +1 -1
- package/dist/test/utils.js +4 -5
- package/dist/test/utils.js.map +1 -1
- package/dist/tool/get-deprecations.js +1 -2
- package/dist/tool/get-deprecations.js.map +1 -1
- package/dist/tool/get-embedded-compiler.js +1 -2
- package/dist/tool/get-embedded-compiler.js.map +1 -1
- package/dist/tool/get-language-repo.js +1 -2
- package/dist/tool/get-language-repo.js.map +1 -1
- package/dist/tool/prepare-optional-release.js +4 -29
- package/dist/tool/prepare-optional-release.js.map +1 -1
- package/dist/tool/utils.js +5 -5
- package/dist/tool/utils.js.map +1 -1
- package/dist/types/deprecations.d.ts +15 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.m.d.ts +1 -1
- package/dist/types/legacy/options.d.ts +40 -0
- package/dist/types/logger/index.d.ts +32 -16
- package/package.json +26 -20
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.nodePlatformToDartPlatform = nodePlatformToDartPlatform;
|
|
4
|
+
exports.nodeArchToDartArch = nodeArchToDartArch;
|
|
4
5
|
const extractZip = require("extract-zip");
|
|
5
6
|
const fs_1 = require("fs");
|
|
6
7
|
const p = require("path");
|
|
@@ -34,7 +35,6 @@ function nodePlatformToDartPlatform(platform) {
|
|
|
34
35
|
throw Error(`Platform ${platform} is not supported.`);
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
exports.nodePlatformToDartPlatform = nodePlatformToDartPlatform;
|
|
38
38
|
// Converts a Node-style architecture name as returned by `process.arch` into a
|
|
39
39
|
// name used by Dart Sass. Throws if the architecture is not supported by Dart
|
|
40
40
|
// Sass Embedded.
|
|
@@ -50,11 +50,12 @@ function nodeArchToDartArch(arch) {
|
|
|
50
50
|
return 'arm';
|
|
51
51
|
case 'arm64':
|
|
52
52
|
return 'arm64';
|
|
53
|
+
case 'riscv64':
|
|
54
|
+
return 'riscv64';
|
|
53
55
|
default:
|
|
54
56
|
throw Error(`Architecture ${arch} is not supported.`);
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
|
-
exports.nodeArchToDartArch = nodeArchToDartArch;
|
|
58
59
|
// Get the platform's file extension for archives.
|
|
59
60
|
function getArchiveExtension(platform) {
|
|
60
61
|
return platform === 'windows' ? '.zip' : '.tar.gz';
|
|
@@ -91,31 +92,6 @@ async function downloadRelease(options) {
|
|
|
91
92
|
}
|
|
92
93
|
await fs_1.promises.unlink(zippedAssetPath);
|
|
93
94
|
}
|
|
94
|
-
// Patch the launcher script if needed.
|
|
95
|
-
//
|
|
96
|
-
// For linux both `-linux-` and `-linux-musl-` packages will be installed
|
|
97
|
-
// because npm doesn't know how to select packages based on LibC. To avoid
|
|
98
|
-
// conflicts, only the `-linux-` packages have "bin" scripts defined in
|
|
99
|
-
// package.json, which we patch to detect which LibC is available and launch the
|
|
100
|
-
// correct binary.
|
|
101
|
-
async function patchLauncherScript(path, dartPlatform, dartArch) {
|
|
102
|
-
if (dartPlatform !== 'linux')
|
|
103
|
-
return;
|
|
104
|
-
const scriptPath = p.join(path, 'dart-sass', 'sass');
|
|
105
|
-
console.log(`Patching ${scriptPath} script.`);
|
|
106
|
-
const shebang = Buffer.from('#!/bin/sh\n');
|
|
107
|
-
const buffer = await fs_1.promises.readFile(scriptPath);
|
|
108
|
-
if (!buffer.subarray(0, shebang.length).equals(shebang)) {
|
|
109
|
-
throw new Error(`${scriptPath} is not a shell script!`);
|
|
110
|
-
}
|
|
111
|
-
const lines = buffer.toString('utf-8').split('\n');
|
|
112
|
-
const index = lines.findIndex(line => line.startsWith('path='));
|
|
113
|
-
if (index < 0) {
|
|
114
|
-
throw new Error(`The format of ${scriptPath} has changed!`);
|
|
115
|
-
}
|
|
116
|
-
lines.splice(index + 1, 0, '# Detect linux-musl', 'if grep -qm 1 /ld-musl- /proc/self/exe; then', ` path="$path/../../sass-embedded-linux-musl-${dartArch}/dart-sass"`, 'fi');
|
|
117
|
-
await fs_1.promises.writeFile(scriptPath, lines.join('\n'));
|
|
118
|
-
}
|
|
119
95
|
void (async () => {
|
|
120
96
|
try {
|
|
121
97
|
const version = pkg['compiler-version'];
|
|
@@ -137,7 +113,6 @@ void (async () => {
|
|
|
137
113
|
`${getArchiveExtension(dartPlatform)}`,
|
|
138
114
|
outPath,
|
|
139
115
|
});
|
|
140
|
-
await patchLauncherScript(outPath, dartPlatform, dartArch);
|
|
141
116
|
}
|
|
142
117
|
catch (error) {
|
|
143
118
|
console.error(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-optional-release.js","sourceRoot":"","sources":["../../tool/prepare-optional-release.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare-optional-release.js","sourceRoot":"","sources":["../../tool/prepare-optional-release.ts"],"names":[],"mappings":";;AAgCA,gEAcC;AAKD,gDAiBC;AApED,0CAA2C;AAC3C,2BAAkC;AAClC,0BAA0B;AAC1B,6BAA0C;AAC1C,iCAA0B;AAE1B,uCAAuC;AACvC,iCAAiC;AAUjC,MAAM,IAAI,GAAG,IAAA,eAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACtC,MAAM,CAAC,SAAS,EAAE;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EACT,2EAA2E;IAC7E,YAAY,EAAE,IAAI;IAClB,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,GAAG,CAChD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CACxC;CACF,CAAC;KACD,SAAS,EAAE,CAAC;AAEf,+EAA+E;AAC/E,6EAA6E;AAC7E,sBAAsB;AACtB,SAAgB,0BAA0B,CAAC,QAAgB;IACzD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC;QACnB,KAAK,OAAO,CAAC;QACb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AAK,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAC5C,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QACnD,MAAM,YAAY,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAAC;QAC9D,MAAM,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QAC9C,MAAM,MAAM,GAAG,YAAY,KAAK,YAAY,CAAC;QAC7C,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,eAAe,CAAC;YACpB,IAAI,EAAE,WAAW;YACjB,QAAQ,EACN,sDAAsD;gBACtD,GAAG,OAAO,cAAc,OAAO,GAAG;gBAClC,GAAG,YAAY,IAAI,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBACrD,GAAG,mBAAmB,CAAC,YAAY,CAAC,EAAE;YACxC,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"}
|
package/dist/tool/utils.js
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
// MIT-style license that can be found in the LICENSE file or at
|
|
4
4
|
// https://opensource.org/licenses/MIT.
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.BUILD_PATH = void 0;
|
|
7
|
+
exports.fetchRepo = fetchRepo;
|
|
8
|
+
exports.link = link;
|
|
9
|
+
exports.cleanDir = cleanDir;
|
|
10
|
+
exports.sameTarget = sameTarget;
|
|
7
11
|
const fs_1 = require("fs");
|
|
8
12
|
const p = require("path");
|
|
9
13
|
const shell = require("shelljs");
|
|
@@ -31,7 +35,6 @@ function fetchRepo(options) {
|
|
|
31
35
|
cwd: path,
|
|
32
36
|
});
|
|
33
37
|
}
|
|
34
|
-
exports.fetchRepo = fetchRepo;
|
|
35
38
|
// Links or copies the contents of `source` into `destination`.
|
|
36
39
|
async function link(source, destination) {
|
|
37
40
|
await cleanDir(destination);
|
|
@@ -46,7 +49,6 @@ async function link(source, destination) {
|
|
|
46
49
|
await fs_1.promises.symlink(source, destination);
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
|
-
exports.link = link;
|
|
50
52
|
// Ensures that `dir` does not exist, but its parent directory does.
|
|
51
53
|
async function cleanDir(dir) {
|
|
52
54
|
await fs_1.promises.mkdir(p.dirname(dir), { recursive: true });
|
|
@@ -57,7 +59,6 @@ async function cleanDir(dir) {
|
|
|
57
59
|
// If dir doesn't exist yet, that's fine.
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
|
-
exports.cleanDir = cleanDir;
|
|
61
62
|
// Returns whether [path1] and [path2] are symlinks that refer to the same file.
|
|
62
63
|
async function sameTarget(path1, path2) {
|
|
63
64
|
const realpath1 = await tryRealpath(path1);
|
|
@@ -65,7 +66,6 @@ async function sameTarget(path1, path2) {
|
|
|
65
66
|
return false;
|
|
66
67
|
return realpath1 === (await tryRealpath(path2));
|
|
67
68
|
}
|
|
68
|
-
exports.sameTarget = sameTarget;
|
|
69
69
|
// Like `fs.realpath()`, but returns `null` if the path doesn't exist on disk.
|
|
70
70
|
async function tryRealpath(path) {
|
|
71
71
|
try {
|
package/dist/tool/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../tool/utils.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;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I,SAAS,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAErC,OAAO,SAAS,KAAK,CAAC,MAAM,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AAClD,CAAC;AAED,8EAA8E;AAC9E,KAAK,UAAU,WAAW,CAAC,IAAY;IACrC,IAAI,CAAC;QACH,OAAO,MAAM,aAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export interface Deprecations {
|
|
8
8
|
// START AUTOGENERATED LIST
|
|
9
|
-
// Checksum:
|
|
9
|
+
// Checksum: dd5c6aa0f1431fa9fc88bb71a96f832adbc165f5
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Deprecation for passing a string directly to meta.call().
|
|
@@ -113,6 +113,20 @@ export interface Deprecations {
|
|
|
113
113
|
*/
|
|
114
114
|
'css-function-mixin': Deprecation<'css-function-mixin'>;
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Deprecation for declarations after or between nested rules.
|
|
118
|
+
*
|
|
119
|
+
* This deprecation became active in Dart Sass 1.77.7.
|
|
120
|
+
*/
|
|
121
|
+
'mixed-decls': Deprecation<'mixed-decls'>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Deprecation for meta.feature-exists
|
|
125
|
+
*
|
|
126
|
+
* This deprecation became active in Dart Sass 1.78.0.
|
|
127
|
+
*/
|
|
128
|
+
'feature-exists': Deprecation<'feature-exists'>;
|
|
129
|
+
|
|
116
130
|
/**
|
|
117
131
|
* Deprecation for @import rules.
|
|
118
132
|
*
|
package/dist/types/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export {
|
|
|
29
29
|
ImporterResult,
|
|
30
30
|
NodePackageImporter,
|
|
31
31
|
} from './importer';
|
|
32
|
-
export {Logger, SourceSpan, SourceLocation} from './logger';
|
|
32
|
+
export {Logger, LoggerWarnOptions, SourceSpan, SourceLocation} from './logger';
|
|
33
33
|
export {
|
|
34
34
|
CustomFunction,
|
|
35
35
|
Options,
|
package/dist/types/index.m.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export {
|
|
|
29
29
|
ImporterResult,
|
|
30
30
|
NodePackageImporter,
|
|
31
31
|
} from './importer';
|
|
32
|
-
export {Logger, SourceSpan, SourceLocation} from './logger';
|
|
32
|
+
export {Logger, LoggerWarnOptions, SourceSpan, SourceLocation} from './logger';
|
|
33
33
|
export {
|
|
34
34
|
CustomFunction,
|
|
35
35
|
Options,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {DeprecationOrId, Version} from '../deprecations';
|
|
1
2
|
import {Logger} from '../logger';
|
|
2
3
|
import {LegacyImporter} from './importer';
|
|
3
4
|
import {LegacyFunction} from './function';
|
|
@@ -483,6 +484,45 @@ export interface LegacySharedOptions<sync extends 'sync' | 'async'> {
|
|
|
483
484
|
*/
|
|
484
485
|
quietDeps?: boolean;
|
|
485
486
|
|
|
487
|
+
/**
|
|
488
|
+
* A set of deprecations to treat as fatal.
|
|
489
|
+
*
|
|
490
|
+
* If a deprecation warning of any provided type is encountered during
|
|
491
|
+
* compilation, the compiler will error instead.
|
|
492
|
+
*
|
|
493
|
+
* If a `Version` is provided, then all deprecations that were active in that
|
|
494
|
+
* compiler version will be treated as fatal.
|
|
495
|
+
*
|
|
496
|
+
* @category Messages
|
|
497
|
+
* @compatiblity dart: "1.78.0", node: false
|
|
498
|
+
*/
|
|
499
|
+
fatalDeprecations?: (DeprecationOrId | Version)[];
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* A set of future deprecations to opt into early.
|
|
503
|
+
*
|
|
504
|
+
* Future deprecations passed here will be treated as active by the compiler,
|
|
505
|
+
* emitting warnings as necessary.
|
|
506
|
+
*
|
|
507
|
+
* @category Messages
|
|
508
|
+
* @compatiblity dart: "1.78.0", node: false
|
|
509
|
+
*/
|
|
510
|
+
futureDeprecations?: DeprecationOrId[];
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* A set of active deprecations to ignore.
|
|
514
|
+
*
|
|
515
|
+
* If a deprecation warning of any provided type is encountered during
|
|
516
|
+
* compilation, the compiler will ignore it instead.
|
|
517
|
+
*
|
|
518
|
+
* **Heads up!** The deprecated functionality you're depending on will
|
|
519
|
+
* eventually break.
|
|
520
|
+
*
|
|
521
|
+
* @category Messages
|
|
522
|
+
* @compatiblity dart: "1.78.0", node: false
|
|
523
|
+
*/
|
|
524
|
+
silenceDeprecations?: DeprecationOrId[];
|
|
525
|
+
|
|
486
526
|
/**
|
|
487
527
|
* By default, Dart Sass will print only five instances of the same
|
|
488
528
|
* deprecation warning per compilation to avoid deluging users in console
|
|
@@ -4,6 +4,35 @@ import {SourceSpan} from './source_span';
|
|
|
4
4
|
export {SourceLocation} from './source_location';
|
|
5
5
|
export {SourceSpan} from './source_span';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* The options passed to {@link Logger.warn}.
|
|
9
|
+
*
|
|
10
|
+
* * `deprecation`: Whether this is a deprecation warning.
|
|
11
|
+
*
|
|
12
|
+
* * `deprecationType`: The type of deprecation. Only set if `deprecation` is
|
|
13
|
+
* true.
|
|
14
|
+
*
|
|
15
|
+
* * `span`: The location in the Sass source code that generated this warning.
|
|
16
|
+
* This may be unset if the warning didn't come from Sass source, for
|
|
17
|
+
* example if it's from a deprecated JavaScript option.
|
|
18
|
+
*
|
|
19
|
+
* * `stack`: The Sass stack trace at the point the warning was issued. This may
|
|
20
|
+
* be unset if the warning didn't come from Sass source, for example if it's
|
|
21
|
+
* from a deprecated JavaScript option.
|
|
22
|
+
*
|
|
23
|
+
* @category Logger
|
|
24
|
+
*/
|
|
25
|
+
export type LoggerWarnOptions = (
|
|
26
|
+
| {
|
|
27
|
+
deprecation: true;
|
|
28
|
+
deprecationType: Deprecation;
|
|
29
|
+
}
|
|
30
|
+
| {deprecation: false}
|
|
31
|
+
) & {
|
|
32
|
+
span?: SourceSpan;
|
|
33
|
+
stack?: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
7
36
|
/**
|
|
8
37
|
* An object that can be passed to {@link LegacySharedOptions.logger} to control
|
|
9
38
|
* how Sass emits warnings and debug messages.
|
|
@@ -42,24 +71,11 @@ export interface Logger {
|
|
|
42
71
|
*
|
|
43
72
|
* If this is `undefined`, Sass will print warnings to standard error.
|
|
44
73
|
*
|
|
74
|
+
* `options` may contain the following fields:
|
|
75
|
+
*
|
|
45
76
|
* @param message - The warning message.
|
|
46
|
-
* @param options.deprecation - Whether this is a deprecation warning.
|
|
47
|
-
* @param options.deprecationType - The type of deprecation this warning is
|
|
48
|
-
* for, if any.
|
|
49
|
-
* @param options.span - The location in the Sass source code that generated this
|
|
50
|
-
* warning.
|
|
51
|
-
* @param options.stack - The Sass stack trace at the point the warning was issued.
|
|
52
77
|
*/
|
|
53
|
-
warn?(
|
|
54
|
-
message: string,
|
|
55
|
-
options: (
|
|
56
|
-
| {
|
|
57
|
-
deprecation: true;
|
|
58
|
-
deprecationType: Deprecation;
|
|
59
|
-
}
|
|
60
|
-
| {deprecation: false}
|
|
61
|
-
) & {span?: SourceSpan; stack?: string}
|
|
62
|
-
): void;
|
|
78
|
+
warn?(message: string, options: LoggerWarnOptions): void;
|
|
63
79
|
|
|
64
80
|
/**
|
|
65
81
|
* This method is called when Sass emits a debug message due to a [`@debug`
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sass-embedded",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.78.0",
|
|
4
4
|
"protocol-version": "2.7.1",
|
|
5
|
-
"compiler-version": "1.
|
|
5
|
+
"compiler-version": "1.78.0",
|
|
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.",
|
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=16.0.0"
|
|
25
25
|
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"sass": "dist/bin/sass.js"
|
|
28
|
+
},
|
|
26
29
|
"scripts": {
|
|
27
30
|
"init": "ts-node ./tool/init.ts",
|
|
28
31
|
"check": "npm-run-all check:gts check:tsc",
|
|
@@ -35,23 +38,26 @@
|
|
|
35
38
|
"test": "jest"
|
|
36
39
|
},
|
|
37
40
|
"optionalDependencies": {
|
|
38
|
-
"sass-embedded-android-arm": "1.
|
|
39
|
-
"sass-embedded-android-arm64": "1.
|
|
40
|
-
"sass-embedded-android-ia32": "1.
|
|
41
|
-
"sass-embedded-android-
|
|
42
|
-
"sass-embedded-
|
|
43
|
-
"sass-embedded-darwin-
|
|
44
|
-
"sass-embedded-
|
|
45
|
-
"sass-embedded-linux-
|
|
46
|
-
"sass-embedded-linux-
|
|
47
|
-
"sass-embedded-linux-
|
|
48
|
-
"sass-embedded-linux-
|
|
49
|
-
"sass-embedded-linux-
|
|
50
|
-
"sass-embedded-linux-musl-
|
|
51
|
-
"sass-embedded-linux-musl-
|
|
52
|
-
"sass-embedded-
|
|
53
|
-
"sass-embedded-
|
|
54
|
-
"sass-embedded-
|
|
41
|
+
"sass-embedded-android-arm": "1.78.0",
|
|
42
|
+
"sass-embedded-android-arm64": "1.78.0",
|
|
43
|
+
"sass-embedded-android-ia32": "1.78.0",
|
|
44
|
+
"sass-embedded-android-riscv64": "1.78.0",
|
|
45
|
+
"sass-embedded-android-x64": "1.78.0",
|
|
46
|
+
"sass-embedded-darwin-arm64": "1.78.0",
|
|
47
|
+
"sass-embedded-darwin-x64": "1.78.0",
|
|
48
|
+
"sass-embedded-linux-arm": "1.78.0",
|
|
49
|
+
"sass-embedded-linux-arm64": "1.78.0",
|
|
50
|
+
"sass-embedded-linux-ia32": "1.78.0",
|
|
51
|
+
"sass-embedded-linux-riscv64": "1.78.0",
|
|
52
|
+
"sass-embedded-linux-x64": "1.78.0",
|
|
53
|
+
"sass-embedded-linux-musl-arm": "1.78.0",
|
|
54
|
+
"sass-embedded-linux-musl-arm64": "1.78.0",
|
|
55
|
+
"sass-embedded-linux-musl-ia32": "1.78.0",
|
|
56
|
+
"sass-embedded-linux-musl-riscv64": "1.78.0",
|
|
57
|
+
"sass-embedded-linux-musl-x64": "1.78.0",
|
|
58
|
+
"sass-embedded-win32-arm64": "1.78.0",
|
|
59
|
+
"sass-embedded-win32-ia32": "1.78.0",
|
|
60
|
+
"sass-embedded-win32-x64": "1.78.0"
|
|
55
61
|
},
|
|
56
62
|
"dependencies": {
|
|
57
63
|
"@bufbuild/protobuf": "^1.0.0",
|
|
@@ -67,7 +73,7 @@
|
|
|
67
73
|
"@types/buffer-builder": "^0.2.0",
|
|
68
74
|
"@types/google-protobuf": "^3.7.2",
|
|
69
75
|
"@types/jest": "^29.4.0",
|
|
70
|
-
"@types/node": "^
|
|
76
|
+
"@types/node": "^22.0.0",
|
|
71
77
|
"@types/shelljs": "^0.8.8",
|
|
72
78
|
"@types/supports-color": "^8.1.1",
|
|
73
79
|
"@types/tar": "^6.1.0",
|