diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b6379..886ddd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,15 @@ ## 8.0.0-beta.0 (unreleased) +- FEATURE: Add True `sass` option (`string` or Sass implementation instance, + defaults to `'sass'`) to allow using either `sass` or `embedded-sass`. +- FEATURE: Add the + [Node.js package importer](https://sass-lang.com/documentation/js-api/classes/nodepackageimporter/) + to the Sass `importers` option by default, if Dart Sass v1.71 or later is + available. Users can opt out by providing their own `importers` option, e.g. + `{ importers: [] }`. - BREAKING: Drop support for node < 18 +- INTERNAL: Remove `sass` as a peer-dependency. - INTERNAL: Update dependencies ## 7.0.1 (01/04/24) diff --git a/README.md b/README.md index f20e100..e4969d9 100644 --- a/README.md +++ b/README.md @@ -35,17 +35,26 @@ Import in your test directory, like any other Sass file: ```scss -@use 'true' as *; +@use 'pkg:sass-true' as *; ``` -Depending on your setup, -you may need to include the full path name: +If you are not using the Sass [Node.js package importer][pkg-importer], you may +need to include the full path name: ```scss // This is only an example, your path may be different @use '../node_modules/sass-true' as *; ``` +Or if you are using the [JavaScript test runner integration][js-runner]: + +```scss +@use 'true' as *; +``` + +[pkg-importer]: https://sass-lang.com/documentation/js-api/classes/nodepackageimporter/ +[js-runner]: #using-mocha-jest-or-other-js-test-runners + ## One Setting `$terminal-output` (boolean), @@ -146,7 +155,8 @@ when upgrading from an older version of True. npm install --save-dev sass-true ``` -2. [Optional] Install `sass` (Dart Sass), if not already installed. +2. [Optional] Install Dart Sass (`sass` or `sass-embedded`), if not already + installed. ```bash npm install --save-dev sass @@ -157,7 +167,7 @@ when upgrading from an older version of True. 4. Write a shim JS test file in `test/sass.test.js`: ```js - const path = require('path'); + const path = require('node:path'); const sassTrue = require('sass-true'); const sassFile = path.join(__dirname, 'test.scss'); @@ -185,12 +195,17 @@ You can call `runSass` more than once, if you have multiple Sass test files you want to run separately. The first argument is an object with required `describe` and `it` options, and -optional `contextLines` and `sourceType` options. +optional `sass`, `contextLines` and `sourceType` options. Any JS test runner with equivalents to Mocha's or Jest's `describe` and `it` should be usable in the same way: just pass your test runner's `describe` and `it` equivalents in the first argument to `runSass`. +The `sass` option is an optional string name of a Dart Sass implementation +installed in the current environment (e.g. `'embedded-sass'` or `'sass'`), or a +Dart Sass implementation instance itself. If none is provided, this defaults to +`'sass'`. + If True can't parse the CSS output, it'll give you some context lines of CSS as part of the error message. This context will likely be helpful in understanding the parse failure. By default it provides up to 10 lines of context; if you need @@ -202,14 +217,22 @@ file (passed through to Sass' [`compile`](https://sass-lang.com/documentation/js-api/modules#compile) function), or a string of source Sass (passed through to Sass' [`compileString`](https://sass-lang.com/documentation/js-api/modules#compileString) -function). By default it is expected to be a path, and `sass.compile` is used -- -to pass in a source string (and use `sass.compileString`), add `sourceType: 'string'` to your options passed in as the first argument to `runSass`. +function). By default it is expected to be a path, and `sass.compile` is used. +To pass in a source string (and use `sass.compileString`), add `sourceType: +'string'` to your options passed in as the first argument to `runSass`. The third (optional) argument to `runSass` accepts the [same options](https://sass-lang.com/documentation/js-api/interfaces/Options) that -Sass' `compile` or `compileString` expect, and these are passed directly through -to Sass. The only modification `runSass` makes is to add True's sass path to the -`loadPaths` option, so `@use 'true';` works in your Sass test file. +Sass' `compile` or `compileString` expect (e.g. `importers`, `loadPaths`, or +`style`), and these are passed directly through to Sass. + +By default, True makes two modifications to these options. First, True's sass +path is added to the `loadPaths` option, so `@use 'true';` works in your Sass +test file. Second, if Dart Sass v1.71 or greater is installed, `importers` is +set to an array containing the [Node.js package importer][pkg-importer], which +supports `pkg:` imports to resolve `@use` and `@import` for external modules +installed via npm or Yarn. If `importers` is set (even as an empty array +`importers: []`), it will override this default importer. **Note:** True requires the [default Sass `'expanded'` output style](https://sass-lang.com/documentation/js-api/modules#OutputStyle), @@ -218,15 +241,15 @@ and will not work if `{ style: 'compressed' }` is used in the third argument to ### Custom Importers -If you use Webpack's tilde notation, like `@use '~accoutrement/sass/tools'`, -you'll need to tell `runSass` how to handle that. That will require writing a -[custom importer](https://sass-lang.com/documentation/js-api/interfaces/FileImporter) +If you use tilde notation (e.g. `@use '~accoutrement/sass/tools'`) or another +method for importing Sass files from `node_modules`, you'll need to tell +`runSass` how to handle that. That will require writing a [custom +importer](https://sass-lang.com/documentation/js-api/interfaces/FileImporter) and passing it into the configuration for `runSass`: ```js -const path = require('path'); -const { pathToFileURL } = require('url'); - +const path = require('node:path'); +const { pathToFileURL } = require('node:url'); const sassTrue = require('sass-true'); const importers = [ diff --git a/package.json b/package.json index 59803b8..93f6e9e 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,6 @@ "eyeglass-module" ], "homepage": "https://www.oddbird.net/true/", - "main": "./lib/index.js", - "types": "./lib/index.d.ts", "license": "BSD-3-Clause", "repository": { "type": "git", @@ -63,9 +61,6 @@ "release": "run-s commit docs", "prepack": "yarn run release" }, - "peerDependencies": { - "sass": ">=1.45.0" - }, "dependencies": { "@adobe/css-tools": "^4.3.3", "jest-diff": "^29.7.0", @@ -92,12 +87,20 @@ "postcss": "^8.4.35", "prettier": "^3.2.5", "sass": "^1.71.1", + "sass-embedded": "^1.71.1", "sassdoc": "^2.7.4", "sassdoc-theme-herman": "^5.0.1", "stylelint": "^16.2.1", "stylelint-config-standard-scss": "^13.0.0", "typescript": "^5.3.3" }, + "main": "./lib/index.js", + "types": "./lib/index.d.ts", + "exports": { + "types": "./lib/index.d.ts", + "sass": "./_index.scss", + "default": "./lib/index.js" + }, "eyeglass": { "needs": "*", "name": "true", diff --git a/src/index.ts b/src/index.ts index a40da60..32218cd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,8 @@ -/* eslint-disable @typescript-eslint/no-use-before-define */ /* eslint-disable no-use-before-define */ +/* eslint-disable @typescript-eslint/no-use-before-define */ + +import assert from 'node:assert'; +import path from 'node:path'; import { CssAtRuleAST, @@ -9,12 +12,8 @@ import { parse as cssParse, stringify as cssStringify, } from '@adobe/css-tools'; -import * as assert from 'assert'; import { diffStringsUnified } from 'jest-diff'; import { find, forEach, last, startsWith } from 'lodash'; -import * as path from 'path'; -import type { Options, StringOptions } from 'sass'; -import { compile, compileString } from 'sass'; import * as constants from './constants'; import { @@ -28,6 +27,7 @@ import { export interface TrueOptions { describe: (description: string, fn: () => void) => void; it: (description: string, fn: () => void) => void; + sass?: any; sourceType?: 'path' | 'string'; contextLines?: number; } @@ -69,10 +69,12 @@ export type Parser = (rule: Rule, ctx: Context) => Parser; export const runSass = function ( trueOptions: TrueOptions, src: string, - sassOptions?: Options<'sync'> | StringOptions<'sync'>, + sassOptions?: any, ) { const trueOpts = Object.assign({}, trueOptions); const sassOpts = Object.assign({}, sassOptions); + + // Add True's sass to `loadPaths` const sassPath = path.join(__dirname, '..', 'sass'); if (sassOpts.loadPaths) { sassOpts.loadPaths.push(sassPath); @@ -80,15 +82,45 @@ export const runSass = function ( sassOpts.loadPaths = [sassPath]; } - // Warn if arguments match v6 API + // Error if arguments match v6 API if (typeof src !== 'string' || !trueOptions.describe || !trueOptions.it) { throw new Error( - 'The arguments provided to `runSass` do not match the new API introduced in True v7. Refer to the v7 release notes for migration documentation: https://github.com/oddbird/true/releases/tag/v7.0.0', + 'The arguments provided to `runSass` do not match the new API ' + + 'introduced in True v7. Refer to the v7 release notes ' + + 'for migration documentation: ' + + 'https://github.com/oddbird/true/releases/tag/v7.0.0', + ); + } + + // Error if `style: "compressed"` is used + if (sassOpts.style === 'compressed') { + throw new Error( + 'True requires the default Sass `expanded` output style, ' + + 'but `style: "compressed"` was used.', ); } - const compiler = trueOpts.sourceType === 'string' ? compileString : compile; - const parsedCss = compiler(src, sassOpts).css; + let compiler; + if (trueOpts.sass && typeof trueOpts.sass !== 'string') { + compiler = trueOpts.sass; + } else { + const sassPkg = trueOpts.sass ?? 'sass'; + try { + // eslint-disable-next-line global-require + compiler = require(sassPkg); + } catch (err) { + throw new Error(`Cannot find Dart Sass (\`${sassPkg}\`) dependency.`); + } + } + + // Add the Sass Node.js package importer, if available + if (!sassOpts.importers && compiler.NodePackageImporter) { + sassOpts.importers = [new compiler.NodePackageImporter()]; + } + + const compilerFn = + trueOpts.sourceType === 'string' ? 'compileString' : 'compile'; + const parsedCss = compiler[compilerFn](src, sassOpts).css; const modules = parse(parsedCss, trueOpts.contextLines); forEach(modules, (module) => { diff --git a/test/main.test.js b/test/main.test.js index d6cd184..0e669f5 100644 --- a/test/main.test.js +++ b/test/main.test.js @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable global-require */ -const path = require('path'); +const path = require('node:path'); const { expect } = require('chai'); const { diffStringsUnified } = require('jest-diff'); @@ -14,6 +14,11 @@ if (process.env.USE_BUILT) { sassTrue = require('../src'); } +const mock = function (name, cb) { + cb(); +}; +const trueOpts = { describe: mock, it: mock }; + describe('#fail', () => { it('formats failure message', () => { const msg = sassTrue.formatFailureMessage({ @@ -33,7 +38,7 @@ describe('#fail', () => { }); describe('#runSass', () => { - it('throws if arguments do not match newer API', () => { + it('throws if `style: "compressed"` is used', () => { const sass = [ '@use "true" as *;', '@include test-module("Module") {', @@ -49,11 +54,34 @@ describe('#runSass', () => { ' }', '}', ].join('\n'); - const mock = function (name, cb) { - cb(); + const attempt = function () { + sassTrue.runSass(trueOpts, sass, { + style: 'compressed', + }); }; + expect(attempt).to.throw( + 'requires the default Sass `expanded` output style', + ); + }); + + it('throws if arguments do not match newer API', () => { + const sass = [ + '@use "true" as *;', + '@include test-module("Module") {', + ' @include test("Test") {', + ' @include assert("Assertion") {', + ' @include output() {', + ' height: 10px;', + ' }', + ' @include expect() {', + ' height: 10px;', + ' }', + ' }', + ' }', + '}', + ].join('\n'); const attempt = function () { - sassTrue.runSass({ data: sass }, { describe: mock, it: mock }); + sassTrue.runSass({ data: sass }, trueOpts); }; expect(attempt).to.throw('do not match the new API'); }); @@ -67,14 +95,8 @@ describe('#runSass', () => { ' }', '}', ].join('\n'); - const mock = function (name, cb) { - cb(); - }; const attempt = function () { - sassTrue.runSass( - { describe: mock, it: mock, sourceType: 'string' }, - sass, - ); + sassTrue.runSass({ ...trueOpts, sourceType: 'string' }, sass); }; expect(attempt).to.throw('This test is meant to fail. [type: assert-true]'); }); @@ -96,14 +118,10 @@ describe('#runSass', () => { ' }', '}', ].join('\n'); - const mock = function (name, cb) { - cb(); - }; const attempt = function () { sassTrue.runSass( { - describe: mock, - it: mock, + ...trueOpts, sourceType: 'string', }, sass, @@ -114,6 +132,104 @@ describe('#runSass', () => { }; expect(attempt).not.to.throw(); }); + + it('can specify sass implementation to use [string]', () => { + const sass = [ + '@use "true" as *;', + '@include test-module("Module") {', + ' @include test("Test") {', + ' @include assert("Assertion") {', + ' @include output() {', + ' -property: value;', + ' }', + ' @include expect() {', + ' -property: value;', + ' }', + ' }', + ' }', + '}', + ].join('\n'); + const attempt = function () { + sassTrue.runSass( + { + ...trueOpts, + sourceType: 'string', + sass: 'sass-embedded', + }, + sass, + ); + }; + expect(attempt).not.to.throw(); + }); + + it('can specify sass implementation to use [object]', () => { + const attempt = function () { + sassTrue.runSass( + { + ...trueOpts, + sass: { + compile() { + throw new Error('Custom sass implementation called'); + }, + }, + }, + '', + ); + }; + expect(attempt).to.throw('Custom sass implementation called'); + }); + + it('throws if sass implementation is not found', () => { + const attempt = function () { + sassTrue.runSass({ ...trueOpts, sass: 'foobar' }, ''); + }; + expect(attempt).to.throw('Cannot find Dart Sass (`foobar`) dependency.'); + }); + + it('adds NodePackageImporter by default', () => { + const attempt = function () { + sassTrue.runSass( + { + ...trueOpts, + sass: { + NodePackageImporter: class { + constructor() { + throw new Error('NodePackageImporter added'); + } + }, + compile() { + throw new Error('not added'); + }, + }, + }, + '', + ); + }; + expect(attempt).to.throw('NodePackageImporter added'); + }); + + it('skips NodePackageImporter if `importers` option is provided', () => { + const attempt = function () { + sassTrue.runSass( + { + ...trueOpts, + sass: { + NodePackageImporter: class { + constructor() { + throw new Error('NodePackageImporter added'); + } + }, + compile() { + throw new Error('not added'); + }, + }, + }, + '', + { importers: [] }, + ); + }; + expect(attempt).to.throw('not added'); + }); }); describe('#parse', () => { diff --git a/test/sass.test.js b/test/sass.test.js index 11e4d4e..695a365 100644 --- a/test/sass.test.js +++ b/test/sass.test.js @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable global-require */ -const path = require('path'); +const path = require('node:path'); const sassFile = path.join(__dirname, 'scss', 'test.scss'); let runSass; diff --git a/yarn.lock b/yarn.lock index 9e31010..0486027 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1485,6 +1485,13 @@ __metadata: languageName: node linkType: hard +"@bufbuild/protobuf@npm:^1.0.0": + version: 1.7.2 + resolution: "@bufbuild/protobuf@npm:1.7.2" + checksum: 10/f23ccc77066100157043cf36bd2506acdcb235f0a902f7662fbbb992e78df4202780aeb55bd2e3fd1945bd9e52a4fca759351f333f2ff779e32996e13eb56d34 + languageName: node + linkType: hard + "@csstools/css-parser-algorithms@npm:^2.5.0": version: 2.6.0 resolution: "@csstools/css-parser-algorithms@npm:2.6.0" @@ -2896,6 +2903,13 @@ __metadata: languageName: node linkType: hard +"buffer-builder@npm:^0.2.0": + version: 0.2.0 + resolution: "buffer-builder@npm:0.2.0" + checksum: 10/16bd9eb8ac6630a05441bcb56522e956ae6a0724371ecc49b9a6bc10d35690489140df73573d0577e1e85c875737e560a4e2e67521fddd14714ddf4e0097d0ec + languageName: node + linkType: hard + "buffer-equal@npm:^1.0.0": version: 1.0.1 resolution: "buffer-equal@npm:1.0.1" @@ -8292,6 +8306,15 @@ __metadata: languageName: node linkType: hard +"rxjs@npm:^7.4.0": + version: 7.8.1 + resolution: "rxjs@npm:7.8.1" + dependencies: + tslib: "npm:^2.1.0" + checksum: 10/b10cac1a5258f885e9dd1b70d23c34daeb21b61222ee735d2ec40a8685bdca40429000703a44f0e638c27a684ac139e1c37e835d2a0dc16f6fc061a138ae3abb + languageName: node + linkType: hard + "safe-array-concat@npm:^1.0.1": version: 1.0.1 resolution: "safe-array-concat@npm:1.0.1" @@ -8366,6 +8389,205 @@ __metadata: languageName: node linkType: hard +"sass-embedded-android-arm64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-android-arm64@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"sass-embedded-android-arm@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-android-arm@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"sass-embedded-android-ia32@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-android-ia32@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=android & cpu=ia32 + languageName: node + linkType: hard + +"sass-embedded-android-x64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-android-x64@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + +"sass-embedded-darwin-arm64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-darwin-arm64@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"sass-embedded-darwin-x64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-darwin-x64@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"sass-embedded-linux-arm64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-arm64@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"sass-embedded-linux-arm@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-arm@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"sass-embedded-linux-ia32@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-ia32@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + +"sass-embedded-linux-musl-arm64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-musl-arm64@npm:1.71.1" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"sass-embedded-linux-musl-arm@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-musl-arm@npm:1.71.1" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"sass-embedded-linux-musl-ia32@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-musl-ia32@npm:1.71.1" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + +"sass-embedded-linux-musl-x64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-musl-x64@npm:1.71.1" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"sass-embedded-linux-x64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-linux-x64@npm:1.71.1" + bin: + sass: dart-sass/sass + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"sass-embedded-win32-ia32@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-win32-ia32@npm:1.71.1" + bin: + sass: dart-sass/sass.bat + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"sass-embedded-win32-x64@npm:1.71.1": + version: 1.71.1 + resolution: "sass-embedded-win32-x64@npm:1.71.1" + bin: + sass: dart-sass/sass.bat + conditions: os=win32 & (cpu=arm64 | cpu=x64) + languageName: node + linkType: hard + +"sass-embedded@npm:^1.71.1": + version: 1.71.1 + resolution: "sass-embedded@npm:1.71.1" + dependencies: + "@bufbuild/protobuf": "npm:^1.0.0" + buffer-builder: "npm:^0.2.0" + immutable: "npm:^4.0.0" + rxjs: "npm:^7.4.0" + sass-embedded-android-arm: "npm:1.71.1" + sass-embedded-android-arm64: "npm:1.71.1" + sass-embedded-android-ia32: "npm:1.71.1" + sass-embedded-android-x64: "npm:1.71.1" + sass-embedded-darwin-arm64: "npm:1.71.1" + sass-embedded-darwin-x64: "npm:1.71.1" + sass-embedded-linux-arm: "npm:1.71.1" + sass-embedded-linux-arm64: "npm:1.71.1" + sass-embedded-linux-ia32: "npm:1.71.1" + sass-embedded-linux-musl-arm: "npm:1.71.1" + sass-embedded-linux-musl-arm64: "npm:1.71.1" + sass-embedded-linux-musl-ia32: "npm:1.71.1" + sass-embedded-linux-musl-x64: "npm:1.71.1" + sass-embedded-linux-x64: "npm:1.71.1" + sass-embedded-win32-ia32: "npm:1.71.1" + sass-embedded-win32-x64: "npm:1.71.1" + supports-color: "npm:^8.1.1" + varint: "npm:^6.0.0" + dependenciesMeta: + sass-embedded-android-arm: + optional: true + sass-embedded-android-arm64: + optional: true + sass-embedded-android-ia32: + optional: true + sass-embedded-android-x64: + optional: true + sass-embedded-darwin-arm64: + optional: true + sass-embedded-darwin-x64: + optional: true + sass-embedded-linux-arm: + optional: true + sass-embedded-linux-arm64: + optional: true + sass-embedded-linux-ia32: + optional: true + sass-embedded-linux-musl-arm: + optional: true + sass-embedded-linux-musl-arm64: + optional: true + sass-embedded-linux-musl-ia32: + optional: true + sass-embedded-linux-musl-x64: + optional: true + sass-embedded-linux-x64: + optional: true + sass-embedded-win32-ia32: + optional: true + sass-embedded-win32-x64: + optional: true + checksum: 10/bf4da1bf905b7de845822c915169e35c6fb9f4e9055b4042f5869b3ed7c803b13017c408b0a068279a9240b2bd464609e77744f4bd163580c23997cd67d82b91 + languageName: node + linkType: hard + "sass-true@workspace:.": version: 0.0.0-use.local resolution: "sass-true@workspace:." @@ -8393,13 +8615,12 @@ __metadata: postcss: "npm:^8.4.35" prettier: "npm:^3.2.5" sass: "npm:^1.71.1" + sass-embedded: "npm:^1.71.1" sassdoc: "npm:^2.7.4" sassdoc-theme-herman: "npm:^5.0.1" stylelint: "npm:^16.2.1" stylelint-config-standard-scss: "npm:^13.0.0" typescript: "npm:^5.3.3" - peerDependencies: - sass: ">=1.45.0" languageName: unknown linkType: soft @@ -9101,7 +9322,7 @@ __metadata: languageName: node linkType: hard -"supports-color@npm:8.1.1, supports-color@npm:^8.0.0": +"supports-color@npm:8.1.1, supports-color@npm:^8.0.0, supports-color@npm:^8.1.1": version: 8.1.1 resolution: "supports-color@npm:8.1.1" dependencies: @@ -9328,6 +9549,13 @@ __metadata: languageName: node linkType: hard +"tslib@npm:^2.1.0": + version: 2.6.2 + resolution: "tslib@npm:2.6.2" + checksum: 10/bd26c22d36736513980091a1e356378e8b662ded04204453d353a7f34a4c21ed0afc59b5f90719d4ba756e581a162ecbf93118dc9c6be5acf70aa309188166ca + languageName: node + linkType: hard + "type-check@npm:^0.4.0, type-check@npm:~0.4.0": version: 0.4.0 resolution: "type-check@npm:0.4.0" @@ -9679,6 +9907,13 @@ __metadata: languageName: node linkType: hard +"varint@npm:^6.0.0": + version: 6.0.0 + resolution: "varint@npm:6.0.0" + checksum: 10/7684113c9d497c01e40396e50169c502eb2176203219b96e1c5ac965a3e15b4892bd22b7e48d87148e10fffe638130516b6dbeedd0efde2b2d0395aa1772eea7 + languageName: node + linkType: hard + "vinyl-fs@npm:^3.0.3": version: 3.0.3 resolution: "vinyl-fs@npm:3.0.3"