Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3: package import issue fixed #4

Merged
merged 3 commits into from
Aug 24, 2024
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
5 changes: 3 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@

## version - 0.0.2

- build command added in git-action
- version changed to `0.0.2`
- build command added in git-action & updated in `package.json` file
- version changed to `0.0.2`
- import issue fixed
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
"name": "@presswink/firebase-jwt",
"version": "0.0.2",
"description": "this package is going to verify firebase access-token without using firebase admin sdk.",
"main": "/dist/index.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"type": "commonjs",
"scripts": {
"test": "mocha --require ts-node/register src/**/*.spec.ts",
"build": "tsc",
"build": "rm -rf ./dist && tsc",
"lint": "npx eslint . --fix"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Sinon from "sinon";
import { FirebaseJwt } from ".";
import FirebaseJwt from ".";
import jwt, { JwtPayload } from 'jsonwebtoken'
import utils from "./utils";
import { expect } from "chai";
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface IFirebaseJwt {
decode(jwtString: string):jwt.Jwt | null
}

export class FirebaseJwt implements IFirebaseJwt {
export default class FirebaseJwt implements IFirebaseJwt {
private projectId: string

constructor(projectId: string){
Expand Down