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

Update Node.js & dependencies & docs #29

Merged
merged 6 commits into from
Apr 12, 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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/dist
/tmp
/out-tsc
*.d.cts

# dependencies
node_modules
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.19.1
18.20.2
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# fulfillmenttools TypeScript SDK

<p align="center">
<a href="https://fulfillmenttools.com/">
<img alt="fulfillmenttools logo" src="./.github/images/fft-mach-alliance.svg">
</a><br />
<b>fulfillmenttools TypeScript SDK</b>
</p>

[![npm version](https://img.shields.io/npm/v/@fulfillmenttools/fulfillmenttools-sdk-typescript.svg?style=flat)](https://www.npmjs.com/package/@fulfillmenttools/fulfillmenttools-sdk-typescript)
![CI](https://github.com/fulfillmenttools/fulfillmenttools-sdk-typescript/actions/workflows/ci.yml/badge.svg)
[![npm version](https://img.shields.io/npm/v/@fulfillmenttools/fulfillmenttools-sdk-typescript.svg?style=flat)](https://www.npmjs.com/package/@fulfillmenttools/fulfillmenttools-sdk-typescript)
[![Release](https://img.shields.io/github/v/release/fulfillmenttools/fulfillmenttools-sdk-typescript)](https://github.com/fulfillmenttools/fulfillmenttools-sdk-typescript/releases)
[![CI](https://github.com/fulfillmenttools/fulfillmenttools-sdk-typescript/actions/workflows/ci.yml/badge.svg)](https://github.com/fulfillmenttools/fulfillmenttools-sdk-typescript/actions/workflows/ci.yml)
[![License](https://img.shields.io/github/license/fulfillmenttools/fulfillmenttools-sdk-typescript)](./LICENSE)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](./CODE_OF_CONDUCT.md)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](./CONTRIBUTING.md)
[![TypeScript](https://img.shields.io/badge/Made%20with-TypeScript-1f425f.svg?color=3178c6)](https://www.typescriptlang.org/)

# 🤖 Introduction

Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
"license": "MIT",
"scripts": {
"ci": "npm run build",
"build": "rimraf ./dist && npm run build:cjs && npm run build:mjs",
"build": "rimraf ./dist ./coverage && npm run build:cjs && npm run build:mjs",
"build:cjs": "tsc --project tsconfig.cjs.json && cp res/package.cjs.json dist/cjs/package.json",
"build:mjs": "tsc --project tsconfig.mjs.json && cp res/package.mjs.json dist/mjs/package.json",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"prettier": "prettier --write 'src/**/*.{js,ts}'",
"test": "jest --config jest.config.cjs",
"test:coverage": "jest --config jest.config.cjs --coverage --collectCoverageFrom='src/**/*.{ts,jxs}'",
"test:watch": "jest --watch",
"release": "release-it",
"version": "auto-changelog -p && git add CHANGELOG.md"
Expand Down Expand Up @@ -48,7 +49,7 @@
"@types/express": "4.17.21",
"@types/jest": "29.5.12",
"@types/jest-when": "3.5.5",
"@types/node": "18.19.21",
"@types/node": "18.19.26",
"@types/superagent": "4.1.20",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
Expand All @@ -71,7 +72,7 @@
"dependencies": {
"date-fns": "2.30.0",
"dotenv": "16.4.5",
"express": "4.18.3",
"express": "4.19.2",
"http-status-enum": "1.0.2",
"superagent": "8.1.2",
"timers": "0.1.1",
Expand Down
6 changes: 3 additions & 3 deletions src/common/httpClient/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export * from './constants';
export * from './httpClient';
export { HttpResult } from './models';
export { HttpRequestConfiguration } from './models';
export { QueryParams } from './models';
export type { HttpResult } from './models';
export type { HttpRequestConfiguration } from './models';
export type { QueryParams } from './models';
export { HttpMethod } from './models';

export * from './testHttpClient';
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"lib": ["ESNext"],
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
// "noUncheckedIndexedAccess": true,
"resolveJsonModule": true,
"rootDir": "./src",
"skipLibCheck": false,
Expand Down