Skip to content

Commit

Permalink
Updated to 1.14 to include bundle.js and remove extra src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
krowvin committed Apr 22, 2024
1 parent 09b66e1 commit df62e62
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 20 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ _CWMS Data API (CDA) client library created with OpenAPI generator in TypeScript

## Getting Started
* Install CWMSjs to your react project with:
`npm install cwmsjs --save`
`npm install cwmsjs --save`
(This will grab the latest)

* Import the API endpoint you wish to use:
* Avaiable endpoints are here (Classes ending in API): [Endpoints](https://hydrologicengineeringcenter.github.io/cwms-data-api-client-javascript/modules.html)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cwmsjs",
"version": "1.11.0",
"version": "1.14.0",
"description": "CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator in TypeScript for use with browser webapps",
"author": "USACE,HEC,CWMS,OpenApi Contributors",
"repository": {
Expand Down
12 changes: 11 additions & 1 deletion src/.npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
README.md
README.md
src
node_modules
examples
docs
tests
.openapi-generator
webpack.config.js
typedoc.json
README.md
.openapi-generator-ignore
4 changes: 2 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## cwmsJS@1.12.0
## cwmsJS@1.14.0

This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install cwmsJS@1.12.0 --save
npm install cwmsJS@1.14.0 --save
```

_unPublished (not recommended):_
Expand Down
2 changes: 1 addition & 1 deletion src/dist/esm/runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 1.12.0
* The version of the OpenAPI document: 1.14.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/dist/esm/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 1.12.0
* The version of the OpenAPI document: 1.14.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/dist/runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 1.12.0
* The version of the OpenAPI document: 1.14.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/dist/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 1.12.0
* The version of the OpenAPI document: 1.14.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cwmsjs",
"version": "1.12.0",
"version": "1.14.0",
"description": "CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator in TypeScript for use with browser webapps",
"author": "USACE,HEC,CWMS,OpenApi Contributors",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 1.12.0
* The version of the OpenAPI document: 1.14.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
14 changes: 7 additions & 7 deletions tests/package-lock.json

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

6 changes: 4 additions & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
},
"jest": {
"clearMocks": true,
"testMatch": ["**/endpoints/**/*.test.js"],
"testMatch": [
"**/endpoints/**/*.test.js"
],
"coverageDirectory": "coverage",
"testEnvironment": "node",
"transform": {
Expand All @@ -31,7 +33,7 @@
},
"dependencies": {
"chalk": "^5.3.0",
"cwmsjs": "^1.12.0",
"cwmsjs": "^1.14.0",
"es6-promise": "^4.2.4",
"jest": "^29.7.0",
"node-fetch": "^3.3.2",
Expand Down

0 comments on commit df62e62

Please sign in to comment.