Skip to content

Commit

Permalink
Reverted the version.ts changes and creating a new release (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
kathirsvn authored Sep 29, 2023
1 parent 1ecedc5 commit 1598b78
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stargate-mongoose",
"version": "0.2.0-ALPHA-7",
"version": "0.2.0-ALPHA-8",
"description": "Stargate's NodeJS Mongoose compatability client",
"contributors": [
"CRW (http://barnyrubble.tumblr.com/)",
Expand Down Expand Up @@ -54,8 +54,10 @@
"test": "env TEST_DOC_DB=jsonapi ts-mocha --paths -p tsconfig.json tests/**/*.test.ts",
"test-astra": "env TEST_DOC_DB=astra nyc ts-mocha --paths -p tsconfig.json tests/**/*.test.ts",
"test-jsonapi": "env TEST_DOC_DB=jsonapi nyc ts-mocha --paths -p tsconfig.json tests/**/*.test.ts",
"build": "tsc --project tsconfig.build.json && tscpaths -p tsconfig.build.json -s ./src -o ./dist",
"build:docs": "jsdoc2md -t APIReference.hbs --files src/**/*.ts --configure ./jsdoc2md.json > APIReference.md"
"preinstall": "npm run update-version-file",
"build": "npm run update-version-file && tsc --project tsconfig.build.json && tscpaths -p tsconfig.build.json -s ./src -o ./dist",
"build:docs": "jsdoc2md -t APIReference.hbs --files src/**/*.ts --configure ./jsdoc2md.json > APIReference.md",
"update-version-file": "node -p \"'export const LIB_NAME = ' + JSON.stringify(require('./package.json').name) + ';'\" > src/version.ts && node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" >> src/version.ts"
},
"bugs": {
"url": "https://github.com/stargate/stargate-mongoose/issues"
Expand Down
4 changes: 2 additions & 2 deletions src/client/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import http from 'http';
import axios, { AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
import { logger, setLevel } from '@/src/logger';
import { inspect } from 'util';
import { name, version } from '../../package.json';
import { LIB_NAME, LIB_VERSION } from '../version';
import { getStargateAccessToken } from '../collections/utils';
import { EJSON } from 'bson';

const REQUESTED_WITH = name + '/' + version;
const REQUESTED_WITH = LIB_NAME + '/' + LIB_VERSION;
const DEFAULT_AUTH_HEADER = 'X-Cassandra-Token';
const DEFAULT_METHOD = 'get';
const DEFAULT_TIMEOUT = 30000;
Expand Down
2 changes: 2 additions & 0 deletions src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const LIB_NAME = "stargate-mongoose";

Check warning on line 1 in src/version.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
export const LIB_VERSION = "0.2.0-ALPHA-8";

Check warning on line 2 in src/version.ts

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"paths": {
"@/src/*": ["./src/*"],
"@/tests/*": ["./tests/*"]
Expand Down

0 comments on commit 1598b78

Please sign in to comment.