Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
patreon: switcherapi
ko_fi: petruki
github: [petruki]
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
SWITCHER_API_KEY: ${{ secrets.SWITCHER_API_KEY }}

- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@v7.0.0
uses: sonarsource/sonarqube-scan-action@v8.0.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
SWITCHER_API_KEY: ${{ secrets.SWITCHER_API_KEY }}

- name: SonarCloud Scan
uses: sonarsource/sonarqube-scan-action@v7.0.0
uses: sonarsource/sonarqube-scan-action@v8.0.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-scripts=true
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ A JavaScript SDK for Switcher API
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=switcherapi_switcher-client-master&metric=alert_status)](https://sonarcloud.io/dashboard?id=switcherapi_switcher-client-master)
[![npm version](https://badge.fury.io/js/switcher-client.svg)](https://badge.fury.io/js/switcher-client)
[![install size](https://packagephobia.com/badge?p=switcher-client)](https://packagephobia.com/result?p=switcher-client)
[![Known Vulnerabilities](https://snyk.io/test/github/switcherapi/switcher-client-js/badge.svg?targetFile=package.json)](https://snyk.io/test/github/switcherapi/switcher-client-js?targetFile=package.json)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Slack: Switcher-HQ](https://img.shields.io/badge/slack-@switcher/hq-blue.svg?logo=slack)](https://switcher-hq.slack.com/)

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
"src/"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.57.1",
"@typescript-eslint/parser": "^8.57.1",
"@typescript-eslint/eslint-plugin": "^8.59.2",
"@typescript-eslint/parser": "^8.59.2",
"c8": "^11.0.0",
"chai": "^6.2.2",
"env-cmd": "^11.0.0",
"eslint": "^10.1.0",
"eslint": "^10.3.0",
"mocha": "^11.7.5",
"mocha-sonarqube-reporter": "^1.0.2",
"sinon": "^21.0.3"
"sinon": "^22.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/switcherapi/switcher-client-js"
"url": "https://github.com/switcherapi/switcher-client-js.git"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class Client {
/**
* Enable/Disable test mode.
*
* It prevents from watching Snapshots that may hold process
* It prevents subprocess to run during tests such as snapshot watcher
*/
static testMode(testEnabled?: boolean): void;

Expand Down
6 changes: 3 additions & 3 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ export class Client {
logger: util.get(options?.logger, DEFAULT_LOGGER)
});

// Initialize Auth
Auth.init(this.#context);

if (options) {
Client.#buildOptions(options);
}

// Initialize Auth
Auth.init(this.#context);
}

static #buildOptions(options) {
Expand Down
5 changes: 1 addition & 4 deletions src/lib/bypasser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ export default class Bypasser {
* @param key
*/
static assume(key) {
const existentKey = this.searchBypassed(key);
if (existentKey) {
return existentKey;
}
Bypasser.forget(key);

const keyBypassed = new Key(key);
bypassedKeys.push(keyBypassed);
Expand Down
Loading