Skip to content

Commit 9d805bb

Browse files
committed
fix vuln
1 parent 8d34de6 commit 9d805bb

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ bower_components/
2929
# Terraform
3030
/terraform/.terraform
3131

32-
/_target/
3332
/src/diff2html-templates.*
3433
/docs/
3534
/bundles/

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
"prettier": "prettier --ignore-path .gitignore '**/*.+(js|jsx|ts|tsx|json|css|html|md|mdx)'",
4242
"format:check": "yarn run prettier --check",
4343
"format:fix": "yarn run prettier --write",
44-
"build": "yarn run build:css && yarn run build:templates && yarn run build:es5 && yarn run build:esm && yarn run build:bundles && yarn run build:website",
45-
"build:es5": "rm -rf lib; tsc -p tsconfig.json --outDir lib",
46-
"build:esm": "rm -rf lib-esm; tsc -p tsconfig.json -m es6 --outDir lib-esm",
44+
"build": "yarn run build:css && yarn run build:templates && yarn run build:commonjs && yarn run build:esm && yarn run build:bundles && yarn run build:website",
45+
"build:commonjs": "rm -rf lib; tsc -p tsconfig.json --outDir lib",
46+
"build:esm": "rm -rf lib-esm; tsc -p tsconfig.json -m ESNext --outDir lib-esm",
4747
"build:bundles": "rm -rf ./bundles/js; webpack --mode production --config webpack.bundles.ts",
4848
"build:css": "rm -rf ./bundles/css; postcss --config ./postcss.config.js --no-map -o ./bundles/css/diff2html.min.css ./src/ui/css/diff2html.css",
4949
"build:templates": "ts-node ./scripts/hulk.ts --wrapper ts --variable 'defaultTemplates' ./src/templates/*.mustache > ./src/diff2html-templates.ts",
@@ -150,7 +150,8 @@
150150
"trim-newlines": ">=3.0.1",
151151
"async": ">=2.6.4",
152152
"terser": ">=5.14.2",
153-
"semver-regex": ">=4.0.5"
153+
"semver-regex": ">=4.0.5",
154+
"http-cache-semantics": ">=4.1.1"
154155
},
155156
"license": "MIT",
156157
"files": [

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": ["*env.d.ts", "src/**/*", "./typings/**/*"],
33
"exclude": ["node_modules", "src/__tests__/**"],
44
"compilerOptions": {
5-
"outDir": "_target",
5+
"outDir": "lib",
66
"module": "CommonJS",
77
"moduleResolution": "Node",
88
"target": "ES6",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3923,10 +3923,10 @@ htmlparser2@^6.1.0:
39233923
domutils "^2.5.2"
39243924
entities "^2.0.0"
39253925

3926-
3927-
version "3.8.1"
3928-
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2"
3929-
integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==
3926+
[email protected], http-cache-semantics@>=4.1.1:
3927+
version "4.1.1"
3928+
resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a"
3929+
integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==
39303930

39313931
human-signals@^1.1.1:
39323932
version "1.1.1"

0 commit comments

Comments
 (0)