rearrage_stuff

This commit is contained in:
Kim Ravn Hansen
2025-09-16 11:26:40 +02:00
parent 40e8c5e0ab
commit 3f11ebe6dc
4937 changed files with 1146031 additions and 134 deletions

32
node_modules/sass-embedded/dist/test/sandbox.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
"use strict";
// Copyright 2021 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.run = run;
const fs = require("fs");
const p = require("path");
/**
* Runs `test` within a sandbox directory. This directory is made available via
* the `dir` function, which acts like `p.join()` but includes the sandbox
* directory at the beginning.
*
* Handles all buildup and teardown. Returns a promise that resolves when `test`
* finishes running.
*/
async function run(test, options) {
const testDir = p.join(p.dirname(__filename), 'sandbox', `${Math.random()}`.slice(2));
fs.mkdirSync(testDir, { recursive: true });
if (options?.sassPathDirs) {
process.env.SASS_PATH = options.sassPathDirs.join(process.platform === 'win32' ? ';' : ':');
}
try {
await test((...paths) => p.join(testDir, ...paths));
}
finally {
if (options?.sassPathDirs)
process.env.SASS_PATH = undefined;
fs.rmSync(testDir, { force: true, recursive: true, maxRetries: 3 });
}
}
//# sourceMappingURL=sandbox.js.map

1
node_modules/sass-embedded/dist/test/sandbox.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../test/sandbox.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;AAevC,kBAyBC;AAtCD,yBAAyB;AACzB,0BAA0B;AAI1B;;;;;;;GAOG;AACI,KAAK,UAAU,GAAG,CACvB,IAA8D,EAC9D,OAGC;IAED,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CACpB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EACrB,SAAS,EACT,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAC5B,CAAC;IACF,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACzC,IAAI,OAAO,EAAE,YAAY,EAAE,CAAC;QAC1B,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAC/C,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CACzC,CAAC;IACJ,CAAC;IACD,IAAI,CAAC;QACH,MAAM,IAAI,CAAC,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;IACtD,CAAC;YAAS,CAAC;QACT,IAAI,OAAO,EAAE,YAAY;YAAE,OAAO,CAAC,GAAG,CAAC,SAAS,GAAG,SAAS,CAAC;QAE7D,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAC,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}

57
node_modules/sass-embedded/dist/test/utils.js generated vendored Normal file
View File

@@ -0,0 +1,57 @@
"use strict";
// Copyright 2020 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.expectObservableToError = expectObservableToError;
exports.expectEqualPaths = expectEqualPaths;
exports.expectEqualIgnoringWhitespace = expectEqualIgnoringWhitespace;
exports.expectEqualWithHashCode = expectEqualWithHashCode;
/**
* Subscribes to `observable` and asserts that it errors with the expected
* `errorMessage`. Calls `done()` to complete the spec.
*/
function expectObservableToError(observable, errorMessage, done) {
observable.subscribe({
next: () => {
throw new Error('expected error');
},
error: error => {
expect(error.message).toBe(errorMessage);
done();
},
complete: () => {
throw new Error('expected error');
},
});
}
/**
* Asserts that the `actual` path is equal to the `expected` one, accounting for
* OS differences.
*/
function expectEqualPaths(actual, expected) {
if (process.platform === 'win32') {
expect(actual.toLowerCase()).toBe(expected.toLowerCase());
}
else {
expect(actual).toBe(expected);
}
}
/**
* Asserts that `string1` is equal to `string2`, ignoring all whitespace in
* either string.
*/
function expectEqualIgnoringWhitespace(string1, string2) {
function strip(str) {
return str.replace(/\s+/g, '');
}
expect(strip(string1)).toBe(strip(string2));
}
/**
* Asserts that `val1` and `val2` are equal and have the same hashcode.
*/
function expectEqualWithHashCode(val1, val2) {
expect(val1.equals(val2)).toBe(true);
expect(val1.hashCode()).toBe(val2.hashCode());
}
//# sourceMappingURL=utils.js.map

1
node_modules/sass-embedded/dist/test/utils.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../test/utils.ts"],"names":[],"mappings":";AAAA,uEAAuE;AACvE,gEAAgE;AAChE,uCAAuC;;AASvC,0DAiBC;AAMD,4CAMC;AAMD,sEAQC;AAKD,0DAGC;AAvDD;;;GAGG;AACH,SAAgB,uBAAuB,CACrC,UAAyB,EACzB,YAAoB,EACpB,IAAgB;IAEhB,UAAU,CAAC,SAAS,CAAC;QACnB,IAAI,EAAE,GAAG,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACpC,CAAC;QACD,KAAK,EAAE,KAAK,CAAC,EAAE;YACb,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACzC,IAAI,EAAE,CAAC;QACT,CAAC;QACD,QAAQ,EAAE,GAAG,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACpC,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,MAAc,EAAE,QAAgB;IAC/D,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACjC,MAAM,CAAC,MA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