From e2b419d7e671ca9a67fb55101c081d1cfda24c82 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 08:58:33 -0400 Subject: [PATCH] fix(deps): update dependency sass to ^1.77.8 (#604) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .pnp.cjs | 8 ++++---- .pnp.loader.mjs | 10 ++++++++-- metapackages/sass/package.json | 2 +- yarn.lock | 10 +++++----- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/.pnp.cjs b/.pnp.cjs index fb2250a9..3c398e26 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -501,7 +501,7 @@ const RAW_RUNTIME_STATE = ["gulp-sourcemaps", "npm:3.0.0"],\ ["modern-normalize", "npm:2.0.0"],\ ["postcss", "npm:8.4.39"],\ - ["sass", "npm:1.77.6"],\ + ["sass", "npm:1.77.8"],\ ["yargs", "npm:17.7.2"]\ ],\ "linkType": "SOFT"\ @@ -8215,10 +8215,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["sass", [\ - ["npm:1.77.6", {\ - "packageLocation": "../../../../cache/others/berry/cache/sass-npm-1.77.6-bcc408e096-10c0.zip/node_modules/sass/",\ + ["npm:1.77.8", {\ + "packageLocation": "../../../../cache/others/berry/cache/sass-npm-1.77.8-d0ad322666-10c0.zip/node_modules/sass/",\ "packageDependencies": [\ - ["sass", "npm:1.77.6"],\ + ["sass", "npm:1.77.8"],\ ["chokidar", "npm:3.5.2"],\ ["immutable", "npm:4.0.0"],\ ["source-map-js", "npm:1.0.2"]\ diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index 6815830b..0d287915 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -6,7 +6,7 @@ import { URL as URL$1, fileURLToPath, pathToFileURL } from 'url'; import path from 'path'; import { createHash } from 'crypto'; import { EOL } from 'os'; -import moduleExports, { isBuiltin } from 'module'; +import esmModule, { createRequire, isBuiltin } from 'module'; import assert from 'assert'; const SAFE_TIME = 456789e3; @@ -1975,6 +1975,13 @@ function packageImportsResolve({ name, base, conditions, readFileSyncFn }) { throwImportNotDefined(name, packageJSONUrl, base); } +let findPnpApi = esmModule.findPnpApi; +if (!findPnpApi) { + const require = createRequire(import.meta.url); + const pnpApi = require(`./.pnp.cjs`); + pnpApi.setup(); + findPnpApi = esmModule.findPnpApi; +} const pathRegExp = /^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:node:)?(?:@[^/]+\/)?[^/]+)\/*(.*|)$/; const isRelativeRegexp = /^\.{0,2}\//; function tryReadFile(filePath) { @@ -2002,7 +2009,6 @@ async function resolvePrivateRequest(specifier, issuer, context, nextResolve) { } } async function resolve$1(originalSpecifier, context, nextResolve) { - const { findPnpApi } = moduleExports; if (!findPnpApi || isBuiltin(originalSpecifier)) return nextResolve(originalSpecifier, context, nextResolve); let specifier = originalSpecifier; diff --git a/metapackages/sass/package.json b/metapackages/sass/package.json index f0d2a4ef..4e88e151 100644 --- a/metapackages/sass/package.json +++ b/metapackages/sass/package.json @@ -12,7 +12,7 @@ "gulp-sourcemaps": "^3.0.0", "modern-normalize": "^2.0.0", "postcss": "^8.4.39", - "sass": "^1.77.6", + "sass": "^1.77.8", "yargs": "^17.7.2" }, "repository": { diff --git a/yarn.lock b/yarn.lock index c929b403..fed9ee0f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -380,7 +380,7 @@ __metadata: gulp-sourcemaps: "npm:^3.0.0" modern-normalize: "npm:^2.0.0" postcss: "npm:^8.4.39" - sass: "npm:^1.77.6" + sass: "npm:^1.77.8" yargs: "npm:^17.7.2" bin: drainpipe-sass: ./gulp.js @@ -7038,16 +7038,16 @@ __metadata: languageName: node linkType: hard -"sass@npm:^1.77.6": - version: 1.77.6 - resolution: "sass@npm:1.77.6" +"sass@npm:^1.77.8": + version: 1.77.8 + resolution: "sass@npm:1.77.8" dependencies: chokidar: "npm:>=3.0.0 <4.0.0" immutable: "npm:^4.0.0" source-map-js: "npm:>=0.6.2 <2.0.0" bin: sass: sass.js - checksum: 10c0/fe5a393c0aa29eda9f83c06be9b94788b61fe8bad0616ee6e3a25d21ab504f430d40c0064fdca89b02b8e426411ae6dcd906c91f2e48c263575c3d392b6daeb1 + checksum: 10c0/2bfd62794070352c804f949e69bd8bb5b4ec846deeb924251b2c3f7b503170fb1ae186f513f0166907749eb34e0277dee747edcb78c886fb471aac01be1e864c languageName: node linkType: hard