Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/nextcloud/text.git
π use path-normalize instead of node:path
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com> Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Π ΠΎΠ΄ΠΈΡΠ΅Π»Ρ
aa9f1f13e6
ΠΠΎΠΌΠΌΠΈΡ
8160c3c21f
|
@ -58,6 +58,7 @@
|
|||
"markdown-it-container": "^3.0.0",
|
||||
"markdown-it-task-lists": "^2.1.1",
|
||||
"mitt": "^3.0.0",
|
||||
"path-normalize": "^6.0.2",
|
||||
"prosemirror-collab": "^1.2.2",
|
||||
"prosemirror-inputrules": "^1.2.0",
|
||||
"prosemirror-markdown": "^1.8.0",
|
||||
|
@ -15160,6 +15161,18 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/path-normalize": {
|
||||
"version": "6.0.5",
|
||||
"resolved": "https://registry.npmjs.org/path-normalize/-/path-normalize-6.0.5.tgz",
|
||||
"integrity": "sha512-Q4llJDh05rai/L6hUImUcJN3uStwnYQX1fQ0+c2mX8287pl23sWalkhiw/BDOl8CrWE+Q2Ce6v4p4ty1gytdtA==",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "ko-fi",
|
||||
"url": "https://ko-fi.com/zacanger"
|
||||
}
|
||||
},
|
||||
"node_modules/path-parse": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
||||
|
@ -31149,6 +31162,11 @@
|
|||
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
|
||||
"dev": true
|
||||
},
|
||||
"path-normalize": {
|
||||
"version": "6.0.5",
|
||||
"resolved": "https://registry.npmjs.org/path-normalize/-/path-normalize-6.0.5.tgz",
|
||||
"integrity": "sha512-Q4llJDh05rai/L6hUImUcJN3uStwnYQX1fQ0+c2mX8287pl23sWalkhiw/BDOl8CrWE+Q2Ce6v4p4ty1gytdtA=="
|
||||
},
|
||||
"path-parse": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
}
|
||||
],
|
||||
"license": "agpl",
|
||||
"files": ["dist"],
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"module": "dist/index.js",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
@ -80,6 +82,7 @@
|
|||
"markdown-it-container": "^3.0.0",
|
||||
"markdown-it-task-lists": "^2.1.1",
|
||||
"mitt": "^3.0.0",
|
||||
"path-normalize": "^6.0.2",
|
||||
"prosemirror-collab": "^1.2.2",
|
||||
"prosemirror-inputrules": "^1.2.0",
|
||||
"prosemirror-markdown": "^1.8.0",
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
*/
|
||||
|
||||
import { generateUrl, generateRemoteUrl } from '@nextcloud/router'
|
||||
import path from 'path'
|
||||
import pathNormalize from 'path-normalize'
|
||||
|
||||
export default class ImageResolver {
|
||||
|
||||
|
@ -158,7 +158,7 @@ export default class ImageResolver {
|
|||
this.#currentDirectory,
|
||||
this.#relativePath(src),
|
||||
].join('/')
|
||||
return path.normalize(f)
|
||||
return pathNormalize(f)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
ΠΠ°Π³ΡΡΠ·ΠΊΠ°β¦
Π‘ΡΡΠ»ΠΊΠ° Π² Π½ΠΎΠ²ΠΎΠΉ Π·Π°Π΄Π°ΡΠ΅