豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit c43d46e

Browse files
committed
[SECURITY] Update Prism to version 1.25.0
See also: PrismJS/prism@0ff371b
1 parent 5e66bde commit c43d46e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+98
-30
lines changed

Build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "codehighlight",
33
"license": "GPL-2.0+",
44
"dependencies": {
5-
"prismjs": "^1.24.1"
5+
"prismjs": "^1.25.0"
66
},
77
"devDependencies": {
88
"del": "^6.0.0",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/node_modules/prismjs/plugins/autoloader/prism-autoloader.js b/node_modules/prismjs/plugins/autoloader/prism-autoloader.js
2-
index e45977f..5466ea3 100644
2+
index ae93dc1..8dc4590 100644
33
--- a/node_modules/prismjs/plugins/autoloader/prism-autoloader.js
44
+++ b/node_modules/prismjs/plugins/autoloader/prism-autoloader.js
5-
@@ -259,28 +259,10 @@
5+
@@ -266,28 +266,10 @@
66
var lang_data = {};
77

88
var ignored_language = 'none';

Build/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,10 +1990,10 @@ pretty-hrtime@^1.0.0:
19901990
resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"
19911991
integrity sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=
19921992

1993-
prismjs@^1.24.1:
1994-
version "1.24.1"
1995-
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.24.1.tgz#c4d7895c4d6500289482fa8936d9cdd192684036"
1996-
integrity sha512-mNPsedLuk90RVJioIky8ANZEwYm5w9LcvCXrxHlwf4fNVSn8jEipMybMkWUyyF0JhnC+C4VcOVSBuHRKs1L5Ow==
1993+
prismjs@^1.25.0:
1994+
version "1.25.0"
1995+
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.25.0.tgz#6f822df1bdad965734b310b315a23315cf999756"
1996+
integrity sha512-WCjJHl1KEWbnkQom1+SzftbtXMKQoezOCYs5rECqMN+jP+apI7ftoflyqigqzopSO3hMhTEb0mFClA8lkolgEg==
19971997

19981998
process-nextick-args@^2.0.0, process-nextick-args@~2.0.0:
19991999
version "2.0.1"

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Security
10+
- Update Prism to version 1.25.0
11+
912
## [2.6.1] - 2021-07-04
1013

1114
### Updated

Resources/Private/Language/ProgrammingLanguages.xlf

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3-
<file source-language="en" datatype="plaintext" original="EXT:codehighlight/Resources/Private/Language/ProgrammingLanguages.xlf" date="2021-06-28T15:37:43Z" product-name="codehighlight">
3+
<file source-language="en" datatype="plaintext" original="EXT:codehighlight/Resources/Private/Language/ProgrammingLanguages.xlf" date="2021-09-16T17:55:37Z" product-name="codehighlight">
44
<body>
55
<trans-unit id="abap" resname="abap" translate="no">
66
<source><![CDATA[ABAP]]></source>
@@ -59,6 +59,12 @@
5959
<trans-unit id="autoit" resname="autoit" translate="no">
6060
<source><![CDATA[AutoIt]]></source>
6161
</trans-unit>
62+
<trans-unit id="avisynth" resname="avisynth" translate="no">
63+
<source><![CDATA[AviSynth]]></source>
64+
</trans-unit>
65+
<trans-unit id="avro-idl" resname="avro-idl" translate="no">
66+
<source><![CDATA[Avro IDL]]></source>
67+
</trans-unit>
6268
<trans-unit id="bash" resname="bash" translate="no">
6369
<source><![CDATA[Bash]]></source>
6470
</trans-unit>
@@ -71,6 +77,9 @@
7177
<trans-unit id="bbcode" resname="bbcode" translate="no">
7278
<source><![CDATA[BBcode + Shortcode]]></source>
7379
</trans-unit>
80+
<trans-unit id="bicep" resname="bicep" translate="no">
81+
<source><![CDATA[Bicep]]></source>
82+
</trans-unit>
7483
<trans-unit id="birb" resname="birb" translate="no">
7584
<source><![CDATA[Birb]]></source>
7685
</trans-unit>
@@ -134,6 +143,9 @@
134143
<trans-unit id="csharp" resname="csharp" translate="no">
135144
<source><![CDATA[C#]]></source>
136145
</trans-unit>
146+
<trans-unit id="cshtml" resname="cshtml" translate="no">
147+
<source><![CDATA[Razor C#]]></source>
148+
</trans-unit>
137149
<trans-unit id="csp" resname="csp" translate="no">
138150
<source><![CDATA[Content-Security-Policy]]></source>
139151
</trans-unit>
@@ -230,6 +242,9 @@
230242
<trans-unit id="ftl" resname="ftl">
231243
<source><![CDATA[FreeMarker Template Language]]></source>
232244
</trans-unit>
245+
<trans-unit id="gap" resname="gap" translate="no">
246+
<source><![CDATA[GAP (CAS)]]></source>
247+
</trans-unit>
233248
<trans-unit id="gcode" resname="gcode" translate="no">
234249
<source><![CDATA[G-code]]></source>
235250
</trans-unit>
@@ -251,6 +266,9 @@
251266
<trans-unit id="gml" resname="gml" translate="no">
252267
<source><![CDATA[GameMaker Language]]></source>
253268
</trans-unit>
269+
<trans-unit id="gn" resname="gn" translate="no">
270+
<source><![CDATA[GN]]></source>
271+
</trans-unit>
254272
<trans-unit id="go" resname="go" translate="no">
255273
<source><![CDATA[Go]]></source>
256274
</trans-unit>
@@ -281,6 +299,9 @@
281299
<trans-unit id="hpkp" resname="hpkp" translate="no">
282300
<source><![CDATA[HTTP Public-Key-Pins]]></source>
283301
</trans-unit>
302+
<trans-unit id="hoon" resname="hoon" translate="no">
303+
<source><![CDATA[Hoon]]></source>
304+
</trans-unit>
284305
<trans-unit id="hsts" resname="hsts" translate="no">
285306
<source><![CDATA[HTTP Strict-Transport-Security]]></source>
286307
</trans-unit>
@@ -380,6 +401,9 @@
380401
<trans-unit id="kumir" resname="kumir" translate="no">
381402
<source><![CDATA[KuMir (КуМир)]]></source>
382403
</trans-unit>
404+
<trans-unit id="kusto" resname="kusto" translate="no">
405+
<source><![CDATA[Kusto]]></source>
406+
</trans-unit>
383407
<trans-unit id="latex" resname="latex" translate="no">
384408
<source><![CDATA[LaTeX + TeX + ConTeXt]]></source>
385409
</trans-unit>
@@ -413,6 +437,9 @@
413437
<trans-unit id="lua" resname="lua" translate="no">
414438
<source><![CDATA[Lua]]></source>
415439
</trans-unit>
440+
<trans-unit id="magma" resname="magma" translate="no">
441+
<source><![CDATA[Magma (CAS)]]></source>
442+
</trans-unit>
416443
<trans-unit id="makefile" resname="makefile" translate="no">
417444
<source><![CDATA[Makefile]]></source>
418445
</trans-unit>
@@ -431,9 +458,15 @@
431458
<trans-unit id="matlab" resname="matlab" translate="no">
432459
<source><![CDATA[MATLAB]]></source>
433460
</trans-unit>
461+
<trans-unit id="maxscript" resname="maxscript" translate="no">
462+
<source><![CDATA[MAXScript]]></source>
463+
</trans-unit>
434464
<trans-unit id="mel" resname="mel" translate="no">
435465
<source><![CDATA[MEL]]></source>
436466
</trans-unit>
467+
<trans-unit id="mermaid" resname="mermaid" translate="no">
468+
<source><![CDATA[Mermaid]]></source>
469+
</trans-unit>
437470
<trans-unit id="mizar" resname="mizar" translate="no">
438471
<source><![CDATA[Mizar]]></source>
439472
</trans-unit>
@@ -689,6 +722,9 @@
689722
<trans-unit id="swift" resname="swift" translate="no">
690723
<source><![CDATA[Swift]]></source>
691724
</trans-unit>
725+
<trans-unit id="systemd" resname="systemd">
726+
<source><![CDATA[Systemd configuration file]]></source>
727+
</trans-unit>
692728
<trans-unit id="t4-cs" resname="t4-cs">
693729
<source><![CDATA[T4 Text Templates (C#)]]></source>
694730
</trans-unit>
@@ -770,6 +806,9 @@
770806
<trans-unit id="wolfram" resname="wolfram" translate="no">
771807
<source><![CDATA[Wolfram language + Mathematica + Mathematica Notebook]]></source>
772808
</trans-unit>
809+
<trans-unit id="wren" resname="wren" translate="no">
810+
<source><![CDATA[Wren]]></source>
811+
</trans-unit>
773812
<trans-unit id="xeora" resname="xeora" translate="no">
774813
<source><![CDATA[Xeora + XeoraCube]]></source>
775814
</trans-unit>

Resources/Private/PHP/AvailableProgrammingLanguages.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
'aspnet',
2020
'autohotkey',
2121
'autoit',
22+
'avisynth',
23+
'avro-idl',
2224
'bash',
2325
'basic',
2426
'batch',
2527
'bbcode',
28+
'bicep',
2629
'birb',
2730
'bison',
2831
'bnf',
@@ -44,6 +47,7 @@
4447
'cpp',
4548
'crystal',
4649
'csharp',
50+
'cshtml',
4751
'csp',
4852
'css-extras',
4953
'css',
@@ -76,13 +80,15 @@
7680
'fortran',
7781
'fsharp',
7882
'ftl',
83+
'gap',
7984
'gcode',
8085
'gdscript',
8186
'gedcom',
8287
'gherkin',
8388
'git',
8489
'glsl',
8590
'gml',
91+
'gn',
8692
'go',
8793
'graphql',
8894
'groovy',
@@ -92,6 +98,7 @@
9298
'haxe',
9399
'hcl',
94100
'hlsl',
101+
'hoon',
95102
'hpkp',
96103
'hsts',
97104
'http',
@@ -125,6 +132,7 @@
125132
'keyman',
126133
'kotlin',
127134
'kumir',
135+
'kusto',
128136
'latex',
129137
'latte',
130138
'less',
@@ -136,12 +144,15 @@
136144
'log',
137145
'lolcode',
138146
'lua',
147+
'magma',
139148
'makefile',
140149
'markdown',
141150
'markup-templating',
142151
'markup',
143152
'matlab',
153+
'maxscript',
144154
'mel',
155+
'mermaid',
145156
'mizar',
146157
'mongodb',
147158
'monkey',
@@ -224,6 +235,7 @@
224235
'stan',
225236
'stylus',
226237
'swift',
238+
'systemd',
227239
't4-cs',
228240
't4-templating',
229241
't4-vb',
@@ -251,6 +263,7 @@
251263
'wasm',
252264
'wiki',
253265
'wolfram',
266+
'wren',
254267
'xeora',
255268
'xml-doc',
256269
'xojo',

Resources/Public/Prism/components/prism-asciidoc.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)