Skip to content

Commit

Permalink
2.3.4
Browse files Browse the repository at this point in the history
fix user agent version creation
  • Loading branch information
Idrinth committed Dec 16, 2023
1 parent af1cf0f commit 939dfa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@idrinth/api-bench",
"description": "A library to benchmark apis, no matter if rest or soap",
"license": "MIT",
"version": "2.3.3",
"version": "2.3.4",
"homepage": "https://github.com/Idrinth/api-bench",
"type": "module",
"main": "src/main.js",
Expand Down
2 changes: 1 addition & 1 deletion src/helper/user-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const version = (ob: Versioned,): string => {

const lock: Lock = reqlib.require('/package-lock.json',) as Lock;
const main = `${ lock.name }/${ version(lock,) }`;
const needle = `needle/${ version(lock.packages['node_mopdules/needle'],) }`;
const needle = `needle/${ version(lock.packages['node_modules/needle'],) }`;
const selfName = 'node_modules/@idrinth/api-bench';
const self = lock.packages['node_modules/@idrinth/api-bench'] ?
`@idrinth/api-bench/${ version(lock.packages[selfName],) }` :
Expand Down
2 changes: 1 addition & 1 deletion test/integration/executor-job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import Job from '../../src/job.js';
import NoopStorage from '../../src/storage/noop-storage.js';
import makeConsoleMock from 'consolemock';
import NoProgress from '../../src/progress/no-progress';
import NoProgress from '../../src/progress/no-progress.js';

const NONE = 0;
chaiUse(chaiAsPromised,);
Expand Down

0 comments on commit 939dfa7

Please sign in to comment.