Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@currents/cli

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@currents/cli - npm Package Compare versions

Comparing version 3.0.0-beta.1 to 3.0.0-beta.2

dist/index.d.ts

2

bin/currents-prepare.js
#!/usr/bin/env node
const lib = require("../");
const lib = require("../dist");

@@ -5,0 +5,0 @@ lib.patch().catch((error) => {

{
"name": "@currents/cli",
"version": "3.0.0-beta.1",
"main": "index.js",
"version": "3.0.0-beta.2",
"license": "MIT",
"main": "./dist",
"typings": "./dist",
"author": {

@@ -11,5 +12,10 @@ "name": "Currents",

"scripts": {
"build": "echo \"built!\"",
"build": "run-s tsc swc",
"dev": "run-p watch:*",
"release": "release-it",
"clean": "rimraf dist"
"clean": "rimraf dist",
"tsc": "tsc",
"swc": "swc src -d dist",
"watch:tsc": "run-s \"tsc --watch --preserveWatchOutput\"",
"watch:swc": "run-s \"swc --watch\""
},

@@ -20,2 +26,6 @@ "repository": {

},
"files": [
"bin/*",
"dist/*"
],
"bin": {

@@ -27,3 +37,3 @@ "currents": "bin/currents.js",

"dependencies": {
"cy2": "^3.1.2"
"cy2": "^3.1.3"
},

@@ -59,6 +69,10 @@ "keywords": [

"@release-it/conventional-changelog": "^5.1.0",
"@swc/cli": "^0.1.49",
"@swc/core": "^1.2.85",
"@types/node": "^18.11.3",
"npm-run-all": "^4.1.5",
"release-it": "^15.4.1",
"rimraf": "^3.0.2"
"rimraf": "^3.0.2",
"typescript": "^4.8.4"
}
}

@@ -5,3 +5,3 @@ # @currents/cli

Example:
## Example: Run cypress connected to Currents Dashboard

@@ -13,4 +13,42 @@ ```sh

## Example: Prepare cypress for connecting to Currents Dashboard
```sh
npm install @currents/cli cypress
npx currents-prepare
npx cypress-retry ...
```
## Example: API usage
```ts
import { patch } from "@currents/cli";
import cypress from "cypress";
async function main() {
await patch();
cypress
.run({
spec: "./cypress/e2e/examples/actions.cy.js",
parallel: true,
record: true,
key: "Currents key from https://app.currents.dev",
ciBuildId: "hello-currents",
})
.then((results) => {
console.log(results);
})
.catch((err) => {
console.error(err);
});
}
main().catch((error) => {
console.error(error);
process.exit(1);
});
```
# Changelog
https://github.com/currents-dev/cli/blob/main/CHANGELOG.md
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc