@tryghost/url-utils 4.4.4 → 4.4.6
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/LICENSE +1 -1
- package/README.md +1 -1
- package/index.js +1 -1
- package/lib/utils/html-absolute-to-relative.js +1 -1
- package/lib/utils/html-absolute-to-transform-ready.js +1 -1
- package/lib/utils/html-relative-to-absolute.js +1 -1
- package/lib/utils/html-relative-to-transform-ready.js +1 -1
- package/lib/utils/lexical-absolute-to-relative.js +1 -1
- package/lib/utils/lexical-absolute-to-transform-ready.js +1 -1
- package/lib/utils/lexical-relative-to-absolute.js +1 -1
- package/lib/utils/lexical-relative-to-transform-ready.js +1 -1
- package/lib/utils/markdown-absolute-to-relative.js +1 -1
- package/lib/utils/markdown-absolute-to-transform-ready.js +1 -1
- package/lib/utils/markdown-relative-to-absolute.js +1 -1
- package/lib/utils/markdown-relative-to-transform-ready.js +1 -1
- package/lib/utils/mobiledoc-absolute-to-relative.js +1 -1
- package/lib/utils/mobiledoc-absolute-to-transform-ready.js +1 -1
- package/lib/utils/mobiledoc-relative-to-absolute.js +1 -1
- package/lib/utils/mobiledoc-relative-to-transform-ready.js +1 -1
- package/package.json +6 -6
- /package/lib/{url-utils.js → UrlUtils.js} +0 -0
- /package/lib/utils/{_html-transform.js → html-transform.js} +0 -0
- /package/lib/utils/{_lexical-transform.js → lexical-transform.js} +0 -0
- /package/lib/utils/{_markdown-transform.js → markdown-transform.js} +0 -0
- /package/lib/utils/{_mobiledoc-transform.js → mobiledoc-transform.js} +0 -0
package/LICENSE
CHANGED
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./lib/
|
|
1
|
+
module.exports = require('./lib/UrlUtils');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const absoluteToRelative = require('./absolute-to-relative');
|
|
2
|
-
const lexicalTransform = require('./
|
|
2
|
+
const lexicalTransform = require('./lexical-transform');
|
|
3
3
|
|
|
4
4
|
function lexicalAbsoluteToRelative(serializedLexical, siteUrl, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, nodes: [], transformMap: {}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const absoluteToTransformReady = require('./absolute-to-transform-ready');
|
|
2
|
-
const lexicalTransform = require('./
|
|
2
|
+
const lexicalTransform = require('./lexical-transform');
|
|
3
3
|
|
|
4
4
|
function lexicalAbsoluteToRelative(serializedLexical, siteUrl, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, nodes: [], transformMap: {}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const relativeToAbsolute = require('./relative-to-absolute');
|
|
2
|
-
const lexicalTransform = require('./
|
|
2
|
+
const lexicalTransform = require('./lexical-transform');
|
|
3
3
|
|
|
4
4
|
function lexicalRelativeToAbsolute(serializedLexical, siteUrl, itemPath, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, nodes: [], transformMap: {}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const relativeToTransformReady = require('./relative-to-transform-ready');
|
|
2
|
-
const lexicalTransform = require('./
|
|
2
|
+
const lexicalTransform = require('./lexical-transform');
|
|
3
3
|
|
|
4
4
|
function lexicalRelativeToTransformReady(serializedLexical, siteUrl, itemPath, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, nodes: [], transformMap: {}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const markdownTransform = require('./
|
|
1
|
+
const markdownTransform = require('./markdown-transform');
|
|
2
2
|
const absoluteToTransformReady = require('./absolute-to-transform-ready');
|
|
3
3
|
const htmlAbsoluteToTransformReady = require('./html-absolute-to-transform-ready');
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const markdownTransform = require('./
|
|
1
|
+
const markdownTransform = require('./markdown-transform');
|
|
2
2
|
const htmlRelativeToTransformReady = require('./html-relative-to-transform-ready');
|
|
3
3
|
const relativeToTransformReady = require('./relative-to-transform-ready');
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const absoluteToRelative = require('./absolute-to-relative');
|
|
2
|
-
const mobiledocTransform = require('./
|
|
2
|
+
const mobiledocTransform = require('./mobiledoc-transform');
|
|
3
3
|
|
|
4
4
|
function mobiledocAbsoluteToRelative(serializedMobiledoc, siteUrl, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, cardTransformers: []};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const absoluteToTransformReady = require('./absolute-to-transform-ready');
|
|
2
|
-
const mobiledocTransform = require('./
|
|
2
|
+
const mobiledocTransform = require('./mobiledoc-transform');
|
|
3
3
|
|
|
4
4
|
function mobiledocAbsoluteToRelative(serializedMobiledoc, siteUrl, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, cardTransformers: []};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const relativeToAbsolute = require('./relative-to-absolute');
|
|
2
|
-
const mobiledocTransform = require('./
|
|
2
|
+
const mobiledocTransform = require('./mobiledoc-transform');
|
|
3
3
|
|
|
4
4
|
function mobiledocRelativeToAbsolute(serializedMobiledoc, siteUrl, itemPath, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, cardTransformers: []};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const relativeToTransformReady = require('./relative-to-transform-ready');
|
|
2
|
-
const mobiledocTransform = require('./
|
|
2
|
+
const mobiledocTransform = require('./mobiledoc-transform');
|
|
3
3
|
|
|
4
4
|
function mobiledocRelativeToTransformReady(serializedMobiledoc, siteUrl, itemPath, _options = {}) {
|
|
5
5
|
const defaultOptions = {assetsOnly: false, secure: false, cardTransformers: []};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/url-utils",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.6",
|
|
4
4
|
"repository": "https://github.com/TryGhost/SDK/tree/main/packages/url-utils",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@tryghost/config-url-helpers": "^1.0.
|
|
23
|
-
"c8": "
|
|
22
|
+
"@tryghost/config-url-helpers": "^1.0.10",
|
|
23
|
+
"c8": "8.0.1",
|
|
24
24
|
"mocha": "10.2.0",
|
|
25
|
-
"rewire": "
|
|
25
|
+
"rewire": "7.0.0",
|
|
26
26
|
"should": "13.2.3",
|
|
27
|
-
"sinon": "
|
|
27
|
+
"sinon": "17.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"cheerio": "^0.22.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"remark-footnotes": "^1.0.0",
|
|
36
36
|
"unist-util-visit": "^2.0.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "77a1645eadd5ce2c2a747a95405f6d8b15ea4e45"
|
|
39
39
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|