-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4a083a
commit 7d8c569
Showing
40 changed files
with
104 additions
and
168 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,25 +42,25 @@ If you’d like to use the repository from source, you can either install from g | |
To install via git: | ||
|
||
```bash | ||
npm install git+ssh://[email protected]:meorphis/meorphis-test.git | ||
npm install git+ssh://[email protected]:meorphis/test-repo-1.git | ||
``` | ||
|
||
Alternatively, to link a local copy of the repo: | ||
|
||
```bash | ||
# Clone | ||
git clone https://www.github.com/meorphis/meorphis-test | ||
cd meorphis-test | ||
git clone https://www.github.com/meorphis/test-repo-1 | ||
cd test-repo-1 | ||
|
||
# With yarn | ||
yarn link | ||
cd ../my-package | ||
yarn link test-repo-1 | ||
yarn link meorphis-test-40 | ||
|
||
# With pnpm | ||
pnpm link --global | ||
cd ../my-package | ||
pnpm link -—global test-repo-1 | ||
pnpm link -—global meorphis-test-40 | ||
``` | ||
|
||
## Running tests | ||
|
@@ -99,7 +99,7 @@ the changes aren't made through the automated pipeline, you may want to make rel | |
|
||
### Publish with a GitHub workflow | ||
|
||
You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/meorphis/meorphis-test/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up. | ||
You can release to package managers by using [the `Publish NPM` GitHub action](https://www.github.com/meorphis/test-repo-1/actions/workflows/publish-npm.yml). This requires a setup organization or repository secret to be set up. | ||
|
||
### Publish manually | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Meorphis Test 40 Node API Library | ||
|
||
[![NPM version](https://img.shields.io/npm/v/test-repo-1.svg)](https://npmjs.org/package/test-repo-1) | ||
[![NPM version](https://img.shields.io/npm/v/meorphis-test-40.svg)](https://npmjs.org/package/meorphis-test-40) | ||
|
||
This library provides convenient access to the Meorphis Test 40 REST API from server-side TypeScript or JavaScript. | ||
|
||
|
@@ -11,16 +11,19 @@ It is generated with [Stainless](https://www.stainlessapi.com/). | |
## Installation | ||
|
||
```sh | ||
npm install test-repo-1 | ||
npm install git+ssh://[email protected]:meorphis/test-repo-1.git | ||
``` | ||
|
||
> [!NOTE] | ||
> Once this package is [published to npm](https://app.stainlessapi.com/docs/guides/publish), this will become: `npm install meorphis-test-40` | ||
## Usage | ||
|
||
The full API of this library can be found in [api.md](api.md). | ||
|
||
<!-- prettier-ignore --> | ||
```js | ||
import MeorphisTest40 from 'test-repo-1'; | ||
import MeorphisTest40 from 'meorphis-test-40'; | ||
|
||
const meorphisTest40 = new MeorphisTest40({ | ||
environment: 'environment_1', // defaults to 'production' | ||
|
@@ -44,7 +47,7 @@ This library includes TypeScript definitions for all request params and response | |
|
||
<!-- prettier-ignore --> | ||
```ts | ||
import MeorphisTest40 from 'test-repo-1'; | ||
import MeorphisTest40 from 'meorphis-test-40'; | ||
|
||
const meorphisTest40 = new MeorphisTest40({ | ||
environment: 'environment_1', // defaults to 'production' | ||
|
@@ -222,12 +225,12 @@ add the following import before your first import `from "MeorphisTest40"`: | |
```ts | ||
// Tell TypeScript and the package to use the global web fetch instead of node-fetch. | ||
// Note, despite the name, this does not add any polyfills, but expects them to be provided if needed. | ||
import 'test-repo-1/shims/web'; | ||
import MeorphisTest40 from 'test-repo-1'; | ||
import 'meorphis-test-40/shims/web'; | ||
import MeorphisTest40 from 'meorphis-test-40'; | ||
``` | ||
|
||
To do the inverse, add `import "test-repo-1/shims/node"` (which does import polyfills). | ||
This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/meorphis/meorphis-test/tree/main/src/_shims#readme)). | ||
To do the inverse, add `import "meorphis-test-40/shims/node"` (which does import polyfills). | ||
This can also be useful if you are getting the wrong TypeScript types for `Response` ([more details](https://github.com/meorphis/test-repo-1/tree/main/src/_shims#readme)). | ||
|
||
### Logging and middleware | ||
|
||
|
@@ -236,7 +239,7 @@ which can be used to inspect or alter the `Request` or `Response` before/after e | |
|
||
```ts | ||
import { fetch } from 'undici'; // as one example | ||
import MeorphisTest40 from 'test-repo-1'; | ||
import MeorphisTest40 from 'meorphis-test-40'; | ||
|
||
const client = new MeorphisTest40({ | ||
fetch: async (url: RequestInfo, init?: RequestInit): Promise<Response> => { | ||
|
@@ -287,7 +290,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con | |
|
||
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. | ||
|
||
We are keen for your feedback; please open an [issue](https://www.github.com/meorphis/meorphis-test/issues) with questions, bugs, or suggestions. | ||
We are keen for your feedback; please open an [issue](https://www.github.com/meorphis/test-repo-1/issues) with questions, bugs, or suggestions. | ||
|
||
## Requirements | ||
|
||
|
@@ -296,7 +299,7 @@ TypeScript >= 4.5 is supported. | |
The following runtimes are supported: | ||
|
||
- Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions. | ||
- Deno v1.28.0 or higher, using `import MeorphisTest40 from "npm:test-repo-1"`. | ||
- Deno v1.28.0 or higher, using `import MeorphisTest40 from "npm:meorphis-test-40"`. | ||
- Bun 1.0 or later. | ||
- Cloudflare Workers. | ||
- Vercel Edge Runtime. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"name": "test-repo-1", | ||
"name": "meorphis-test-40", | ||
"version": "0.0.1-alpha.0", | ||
"description": "The official TypeScript library for the Meorphis Test 40 API", | ||
"author": "Meorphis Test 40 <[email protected]>", | ||
"types": "dist/index.d.ts", | ||
"main": "dist/index.js", | ||
"type": "commonjs", | ||
"repository": "github:meorphis/meorphis-test", | ||
"repository": "github:meorphis/test-repo-1", | ||
"license": "Apache-2.0", | ||
"packageManager": "[email protected]", | ||
"files": [ | ||
|
@@ -63,8 +63,8 @@ | |
"./shims/web.mjs" | ||
], | ||
"imports": { | ||
"test-repo-1": ".", | ||
"test-repo-1/*": "./src/*" | ||
"meorphis-test-40": ".", | ||
"meorphis-test-40/*": "./src/*" | ||
}, | ||
"exports": { | ||
"./_shims/auto/*": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.