Skip to content

Commit

Permalink
build(npm): updates external dependencies
Browse files Browse the repository at this point in the history
Up'em just updated these outdated dependencies in package.json:

@swc/core                         1.3.69     -> 1.3.74    devDependencies   (policy: latest)
@types/lodash                     4.14.195   -> 4.14.196  devDependencies   (policy: latest)
@types/node                       20.4.2     -> 20.4.7    devDependencies   (policy: latest)
@typescript-eslint/eslint-plugin  6.0.0      -> 6.2.1     devDependencies   (policy: latest)
@typescript-eslint/parser         6.0.0      -> 6.2.1     devDependencies   (policy: latest)
c8                                8.0.0      -> 8.0.1     devDependencies   (policy: latest)
eslint                            8.45.0     -> 8.46.0    devDependencies   (policy: latest)
eslint-config-prettier            8.8.0      -> 8.10.0    devDependencies   (policy: latest)
eslint-plugin-import              2.27.5     -> 2.28.0    devDependencies   (policy: latest)
eslint-plugin-unicorn             47.0.0     -> 48.0.1    devDependencies   (policy: latest)
handlebars                        4.7.7      -> 4.7.8     dependencies      (policy: latest)
prettier                          3.0.0      -> 3.0.1     devDependencies   (policy: latest)
watskeburt                        0.11.6     -> 0.12.1    dependencies      (policy: latest)

Up'em found these packages were outdated, but did not update them because of policies:

svelte                            3.59.1    devDependencies   (policy: pin)
  • Loading branch information
sverweij committed Aug 5, 2023
1 parent 45f6925 commit e73f38e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"enhanced-resolve": "5.15.0",
"figures": "5.0.0",
"glob": "10.3.3",
"handlebars": "4.7.7",
"handlebars": "4.7.8",
"ignore": "5.2.4",
"indent-string": "5.0.0",
"interpret": "^3.1.1",
Expand All @@ -173,40 +173,40 @@
"semver-try-require": "6.2.3",
"teamcity-service-messages": "0.1.14",
"tsconfig-paths-webpack-plugin": "4.1.0",
"watskeburt": "0.11.6",
"watskeburt": "0.12.1",
"wrap-ansi": "8.1.0"
},
"devDependencies": {
"@babel/core": "7.22.9",
"@babel/plugin-transform-modules-commonjs": "7.22.5",
"@babel/preset-typescript": "7.22.5",
"@swc/core": "1.3.69",
"@types/lodash": "4.14.195",
"@types/node": "20.4.2",
"@swc/core": "1.3.74",
"@types/lodash": "4.14.196",
"@types/node": "20.4.7",
"@types/prompts": "2.4.4",
"@typescript-eslint/eslint-plugin": "6.0.0",
"@typescript-eslint/parser": "6.0.0",
"@typescript-eslint/eslint-plugin": "6.2.1",
"@typescript-eslint/parser": "6.2.1",
"@vue/compiler-sfc": "3.3.4",
"c8": "8.0.0",
"c8": "8.0.1",
"chai": "4.3.7",
"coffeescript": "2.7.0",
"eslint": "8.45.0",
"eslint": "8.46.0",
"eslint-config-moving-meadow": "4.0.2",
"eslint-config-prettier": "8.8.0",
"eslint-config-prettier": "8.10.0",
"eslint-plugin-budapestian": "5.0.1",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-mocha": "10.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "1.7.1",
"eslint-plugin-unicorn": "^47.0.0",
"eslint-plugin-unicorn": "^48.0.1",
"husky": "8.0.3",
"intercept-stdout": "0.1.2",
"lint-staged": "13.2.3",
"mocha": "10.2.0",
"normalize-newline": "4.1.0",
"npm-run-all": "4.1.5",
"prettier": "3.0.0",
"prettier": "3.0.1",
"proxyquire": "2.1.3",
"shx": "0.3.4",
"svelte": "3.59.1",
Expand Down Expand Up @@ -255,4 +255,4 @@
"vue-template-compiler": ">=2.0.0 <3.0.0",
"@vue/compiler-sfc": ">=3.0.0 <4.0.0"
}
}
}
6 changes: 3 additions & 3 deletions src/extract/helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function detectPreCompilationNess(pTSDependencies, pJSDependencies) {
return pTSDependencies.map((pTSDependency) =>
pJSDependencies.some(dependenciesEqual(pTSDependency))
? { ...pTSDependency, preCompilationOnly: false }
: { ...pTSDependency, preCompilationOnly: true }
: { ...pTSDependency, preCompilationOnly: true },
);
}

Expand All @@ -39,8 +39,8 @@ export function detectPreCompilationNess(pTSDependencies, pJSDependencies) {
export function extractModuleAttributes(pString) {
let lReturnValue = { module: pString };
const lModuleAttributes = pString.match(
// eslint-disable-next-line security/detect-unsafe-regex, unicorn/no-unsafe-regex
/^((node:|file:|data:)(([^,]+),)?)(.+)$/
// eslint-disable-next-line security/detect-unsafe-regex
/^((node:|file:|data:)(([^,]+),)?)(.+)$/,
);
const lProtocolPosition = 2;
const lMimeTypePosition = 4;
Expand Down
12 changes: 6 additions & 6 deletions src/extract/transpile/svelte-preprocess.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function parseAttributes(pString) {
lAttributes[pAttribute] = true;
} else {
lAttributes[pAttribute.slice(0, lEqualsSignIndex)] = "'\"".includes(
pAttribute[lEqualsSignIndex + 1]
pAttribute[lEqualsSignIndex + 1],
)
? pAttribute.slice(lEqualsSignIndex + 2, -1)
: pAttribute.slice(lEqualsSignIndex + 1);
Expand Down Expand Up @@ -51,7 +51,7 @@ function getSourceReplacer(pTranspiler, pTranspilerOptions) {
return `<script${lAttributes}>${pTranspiler(
pSource,
"dummy-filename",
composeTranspilerOptions(pTranspilerOptions)
composeTranspilerOptions(pTranspilerOptions),
)}</script>`;
} else {
return pMatch;
Expand All @@ -72,21 +72,21 @@ function styleReplacer(pMatch, pAttributes) {
export default function preProcess(
pSource,
pTranspilerWrapper,
pTranspilerOptions
pTranspilerOptions,
) {
// regexes from
// github.com/sveltejs/svelte/blob/67dea941bb1e61f0912ebd2257666b899c1ccefa/src/compiler/preprocess/index.ts#L165
// eslint-disable-next-line security/detect-unsafe-regex, unicorn/no-unsafe-regex
// eslint-disable-next-line security/detect-unsafe-regex
const lScriptRegex = /<script(\s[^]*?)?(?:>([^]*?)<\/script>|\/>)/gi;
// eslint-disable-next-line security/detect-unsafe-regex, unicorn/no-unsafe-regex
// eslint-disable-next-line security/detect-unsafe-regex
const lStyleRegex = /<style(\s[^]*?)?(?:>([^]*?)<\/style>|\/>)/gi;

if (pTranspilerWrapper.isAvailable) {
return (
pSource
.replace(
lScriptRegex,
getSourceReplacer(pTranspilerWrapper.transpile, pTranspilerOptions)
getSourceReplacer(pTranspilerWrapper.transpile, pTranspilerOptions),
)
// we don't regard styling in our dependency analysis, so we can remove
// styles that (our instance of) svelte doesn't have pre-processors
Expand Down
6 changes: 3 additions & 3 deletions src/report/anon/anonymize-path.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { anonymizePathElement } from "./anonymize-path-element.mjs";

export const WHITELIST_RE =
// eslint-disable-next-line security/detect-unsafe-regex, unicorn/no-unsafe-regex
// eslint-disable-next-line security/detect-unsafe-regex
/^(|[.]+|~|bin|apps?|cli|src|libs?|configs?|components?|fixtures?|helpers?|i18n|index\.(jsx?|[mc]js|d\.ts|tsx?|vue|coffee|ls)|_?_?mocks?_?_?|node_modules|packages?|package\.json|scripts?|services?|sources?|specs?|_?_?tests?_?_?|types?|uti?ls?)$/;

/**
Expand All @@ -24,12 +24,12 @@ export const WHITELIST_RE =
export function anonymizePath(
pPath,
pWordList = [],
pWhiteListRE = WHITELIST_RE
pWhiteListRE = WHITELIST_RE,
) {
return pPath
.split("/")
.map((pPathElement) =>
anonymizePathElement(pPathElement, pWordList, pWhiteListRE)
anonymizePathElement(pPathElement, pWordList, pWhiteListRE),
)
.join("/");
}

0 comments on commit e73f38e

Please sign in to comment.