Skip to content

Commit

Permalink
upgrade pacakge version and support for deno using cdn provider
Browse files Browse the repository at this point in the history
  • Loading branch information
restuwahyu13 committed May 19, 2021
1 parent 45e4190 commit a53c4bc
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/lib/httpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class HttpClient {
this.headers = {
'content-type': 'application/json',
'accept': 'application/json',
'user-agent': 'midtransclient-nodejs/1.2.1'
'user-agent': 'midtransclient-nodejs/1.2.3'
};
this.requestBody = {};
this.requestParam = {};
Expand Down
2 changes: 1 addition & 1 deletion dist/types/snap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ export interface TransactionRequestType {
readonly snapIndomaret?: SnapIndomaret;
readonly snapAlfamart?: SnapAlfamart;
readonly snapAkuLaku?: SnapAkuLaku;
readonly snapShopePay?: SnapShopeePay;
readonly snapShopeePay?: SnapShopeePay;
}
export {};
2 changes: 1 addition & 1 deletion dist/utils/matchSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const matchSnap = (type) => {
'snapIndomaret',
'snapAlfamart',
'snapAkuLaku',
'snapShopePay'
'snapShopeePay'
].includes(type);
};
exports.matchSnap = matchSnap;
2 changes: 1 addition & 1 deletion esm/lib/httpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class HttpClient {
this.headers = {
'content-type': 'application/json',
'accept': 'application/json',
'user-agent': 'midtransclient-nodejs/1.2.1'
'user-agent': 'midtransclient-nodejs/1.2.3'
};
this.requestBody = {};
this.requestParam = {};
Expand Down
2 changes: 1 addition & 1 deletion esm/types/snap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ export interface TransactionRequestType {
readonly snapIndomaret?: SnapIndomaret;
readonly snapAlfamart?: SnapAlfamart;
readonly snapAkuLaku?: SnapAkuLaku;
readonly snapShopePay?: SnapShopeePay;
readonly snapShopeePay?: SnapShopeePay;
}
export {};
2 changes: 1 addition & 1 deletion esm/utils/matchSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const matchSnap = (type) => {
'snapIndomaret',
'snapAlfamart',
'snapAkuLaku',
'snapShopePay'
'snapShopeePay'
].includes(type);
};
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const config: Config.InitialOptions = {
moduleFileExtensions: ['ts', 'js'],
testMatch: ['<rootDir>/test/**/*.{test.ts, spec.ts}', '<rootDir>/__test__/**/*.{test.ts, spec.ts}'],
collectCoverageFrom: ['src/lib/**/*'],
testPathIgnorePatterns: ['node_modules/', 'dist/', 'esm', 'tsconfig.json', 'coverage/'],
coveragePathIgnorePatterns: ['node_modules/', 'dist/', 'esm/', 'tsconfig.json', 'coverage/']
testPathIgnorePatterns: ['node_modules/', 'dist/', 'esm', 'tsconfig.json', 'coverage/', ".github"],
coveragePathIgnorePatterns: ['node_modules/', 'dist/', 'esm/', 'tsconfig.json', 'coverage/'. ".github"]
}

export default config
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "midtrans-node-client",
"version": "0.0.5",
"version": "0.0.6",
"description": "Unoffficial Midtrans Payment API Client for Node JS | Alternative for Midtrans Official Module",
"main": "./dist/index.js",
"module": "./esm/index.js",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"esm",
"__test__/**/*.{test.ts,spec.ts}",
"coverage",
".github"
]
}

0 comments on commit a53c4bc

Please sign in to comment.