Skip to content

Releases: leismore/Token

Dependency upgrades

Choose a tag to compare

@kyle-chinn-leismore kyle-chinn-leismore released this 02 Mar 01:56
"dependencies": {
    "uid-generator": "^2.0.0"
  },
  "devDependencies": {
    "@types/chai": "^4.3.0",
    "@types/mocha": "^9.1.0",
    "@types/node": "~16.11.26",
    "@types/uid-generator": "^2.0.3",
    "chai": "^4.3.6",
    "mocha": "^9.2.1",
    "ts-node": "^10.6.0",
    "typescript": "~4.5.5"
  }

Security Vulnerability Fixed

Choose a tag to compare

@kyle-chinn-leismore kyle-chinn-leismore released this 27 Feb 08:16

Bumps glob-parent from 5.1.1 to 5.1.2 #1

Dependency Updates:

  "dependencies": {
    "uid-generator": "^2.0.0"
  },
  "devDependencies": {
    "@types/chai": "^4.3.0",
    "@types/mocha": "^9.1.0",
    "@types/node": "^16.11.7",
    "@types/uid-generator": "^2.0.3",
    "chai": "^4.3.6",
    "mocha": "^9.2.1",
    "ts-node": "^10.5.0",
    "typescript": "^4.5.5"
  }

v6

v6

Choose a tag to compare

@kyle-chinn-leismore kyle-chinn-leismore released this 27 Mar 04:37
public static async create
  (
    bitSize:      number           = TOKEN_DEFAULT_BITSIZE,
    baseEncoding: string           = UIDGenerator.BASE58,
    expiry:       number|undefined = ( Date.now() + TOKEN_DEFAULT_EXPIRY * 60 * 1000 )
  ):Promise<Token>

The parameter expiry should accept null instead of undefined.

Improving the naming for exported objects

Choose a tag to compare

@kyle-chinn-leismore kyle-chinn-leismore released this 13 Mar 22:51
  • Improving exporting naming
  • Adding the credit to the NPM package uid-generator
export { Token, TokenData }

Unit test added, GNU Affero General Public License v3.0

Choose a tag to compare

@kyle-chinn-leismore kyle-chinn-leismore released this 24 Feb 02:05
  1. Switch to GNU Affero General Public License v3.0
  2. Add unit test
  3. Upgrade to Node.js 14 & TypeScript 4
  4. Export public types

Bug fixed

Choose a tag to compare

@kylechine kylechine released this 06 Nov 07:49
v3.0.3

fix bugs

Rewritten with TypeScript

Choose a tag to compare

@kylechine kylechine released this 26 Oct 05:30
v3.0.0

typescript

Allow negative unix-timestamp

Choose a tag to compare

@kylechine kylechine released this 23 Jul 13:40

Allow generated timestamp and expiry timestamp to be negative number.

Add a token generator

Choose a tag to compare

@kylechine kylechine released this 20 Jul 22:01
  • Add toString method
  • Add a instance factory method to generate Token instance

v1.0.0

Choose a tag to compare

@kylechine kylechine released this 20 Jul 06:42
code update: set class property details