Skip to content

Commit

Permalink
Merge pull request #765 from nextcloud-libraries/artonge/fix/usageimport
Browse files Browse the repository at this point in the history
fix: Do not depend on the 'path' package for basename
  • Loading branch information
artonge authored Feb 20, 2025
2 parents b87b6a7 + 7937921 commit 7355ed3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion lib/commands/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { basename } from 'path'
function basename(path: string): string {
return path.split('/').pop() as string
}


function getContainerName(): Cypress.Chainable<string> {
return cy.exec('pwd').then(({ stdout }) => {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nextcloud/cypress",
"version": "1.0.0-beta.13",
"version": "1.0.0-beta.14",
"description": "Nextcloud cypress commands, utils and selectors library",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down

0 comments on commit 7355ed3

Please sign in to comment.