Skip to content

Commit 635ae2f

Browse files
authored
Merge pull request #1421 from nextcloud-libraries/chore/drop-node
refactor: drop dependency on Node modules
2 parents 24b985a + 925eb3d commit 635ae2f

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

lib/node/node.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5-
import { basename, extname, dirname } from 'path'
6-
import { encodePath } from '@nextcloud/paths'
75

6+
import { basename, dirname, encodePath, extname } from '@nextcloud/paths'
87
import { Permission } from '../permissions'
98
import { FileType } from './fileType'
109
import { Attribute, fixDates, fixRegExp, isDavResource, NodeData, validateData } from './nodeData'

lib/node/nodeData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import { join } from 'path'
6+
import { join } from '@nextcloud/paths'
77

88
import { Permission } from '../permissions'
99
import { NodeStatus } from './node'

lib/utils/filename.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* SPDX-FileCopyrightText: Ferdinand Thiessen <[email protected]>
2+
* SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later or LGPL-3.0-or-later
44
*/
55

6-
import { basename, extname } from 'path'
6+
import { basename, extname } from '@nextcloud/paths'
77

88
interface UniqueNameOptions {
99
/**

package-lock.json

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@nextcloud/capabilities": "^1.2.1",
5353
"@nextcloud/l10n": "^3.4.1",
5454
"@nextcloud/logger": "^3.0.3",
55-
"@nextcloud/paths": "^2.4.0",
55+
"@nextcloud/paths": "^3.0.0",
5656
"@nextcloud/router": "^3.1.0",
5757
"@nextcloud/sharing": "^0.3.0",
5858
"cancelable-promise": "^4.3.1",

0 commit comments

Comments
 (0)