Skip to content

Commit 7355ed3

Browse files
authored
Merge pull request #765 from nextcloud-libraries/artonge/fix/usageimport
fix: Do not depend on the 'path' package for basename
2 parents b87b6a7 + 7937921 commit 7355ed3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/commands/docker.ts

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

6-
import { basename } from 'path'
6+
function basename(path: string): string {
7+
return path.split('/').pop() as string
8+
}
9+
710

811
function getContainerName(): Cypress.Chainable<string> {
912
return cy.exec('pwd').then(({ stdout }) => {

package-lock.json

Lines changed: 2 additions & 2 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
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextcloud/cypress",
3-
"version": "1.0.0-beta.13",
3+
"version": "1.0.0-beta.14",
44
"description": "Nextcloud cypress commands, utils and selectors library",
55
"main": "dist/index.cjs",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)