@atlaskit/adf-schema 56.6.3 → 56.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/utils/url.js +1 -1
- package/dist/es2019/utils/url.js +1 -1
- package/dist/esm/utils/url.js +1 -1
- package/dist/types/utils/url.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 56.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bafd7711a515b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bafd7711a515b) -
|
|
8
|
+
Upgrade linkify-it to 5.0.2 and markdown-it to 14.1.1 to resolve a quadratic-complexity
|
|
9
|
+
denial-of-service vulnerability in link parsing.
|
|
10
|
+
|
|
11
|
+
## 56.6.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 56.6.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/utils/url.js
CHANGED
|
@@ -38,7 +38,7 @@ var isSafeUrl = exports.isSafeUrl = function isSafeUrl(url) {
|
|
|
38
38
|
return p.test(urlTrimmed);
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
|
-
var linkify = exports.linkify =
|
|
41
|
+
var linkify = exports.linkify = new _linkifyIt.default();
|
|
42
42
|
linkify.add('sourcetree:', 'http:');
|
|
43
43
|
linkify.add('jamfselfservice:', 'http:');
|
|
44
44
|
var urlWithoutSpacesValidator = {
|
package/dist/es2019/utils/url.js
CHANGED
|
@@ -24,7 +24,7 @@ export const isSafeUrl = url => {
|
|
|
24
24
|
}
|
|
25
25
|
return whitelistedURLPatterns.some(p => p.test(urlTrimmed));
|
|
26
26
|
};
|
|
27
|
-
export const linkify = LinkifyIt();
|
|
27
|
+
export const linkify = new LinkifyIt();
|
|
28
28
|
linkify.add('sourcetree:', 'http:');
|
|
29
29
|
linkify.add('jamfselfservice:', 'http:');
|
|
30
30
|
const urlWithoutSpacesValidator = {
|
package/dist/esm/utils/url.js
CHANGED
|
@@ -26,7 +26,7 @@ export var isSafeUrl = function isSafeUrl(url) {
|
|
|
26
26
|
return p.test(urlTrimmed);
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
export var linkify = LinkifyIt();
|
|
29
|
+
export var linkify = new LinkifyIt();
|
|
30
30
|
linkify.add('sourcetree:', 'http:');
|
|
31
31
|
linkify.add('jamfselfservice:', 'http:');
|
|
32
32
|
var urlWithoutSpacesValidator = {
|
|
@@ -19,7 +19,7 @@ export interface Match {
|
|
|
19
19
|
text: string;
|
|
20
20
|
url: string;
|
|
21
21
|
}
|
|
22
|
-
export declare const linkify: LinkifyIt
|
|
22
|
+
export declare const linkify: LinkifyIt;
|
|
23
23
|
export declare const LINK_REGEXP: RegExp;
|
|
24
24
|
/** Attempt to find a link match using a regex string defining a URL */
|
|
25
25
|
export declare const linkifyMatch: (text: string) => Match[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "56.
|
|
3
|
+
"version": "56.7.0",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@atlaskit/adf-schema-generator": "^3.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^145.0.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"css-color-names": "0.0.4",
|
|
46
|
-
"linkify-it": "^
|
|
46
|
+
"linkify-it": "^5.0.2",
|
|
47
47
|
"memoize-one": "^6.0.0"
|
|
48
48
|
},
|
|
49
49
|
"platform-feature-flags": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@manypkg/find-root": "^1.1.0",
|
|
71
71
|
"@types/jest": "^29.5.12",
|
|
72
72
|
"@types/json-schema": "^7.0.15",
|
|
73
|
-
"@types/linkify-it": "^
|
|
73
|
+
"@types/linkify-it": "^5.0.0",
|
|
74
74
|
"@types/node": "^24.0.0",
|
|
75
75
|
"@typescript-eslint/parser": "^7.1.0",
|
|
76
76
|
"babel-plugin-transform-define": "^2.0.0",
|