Skip to content

Commit 946a1ab

Browse files
authored
Merge pull request BitGo#31 from bitgopatmcl/package-rename
Package rename
2 parents 645cbc0 + 790de4e commit 946a1ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+510
-519
lines changed

package-lock.json

Lines changed: 456 additions & 456 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@bitgo/api-ts",
2+
"name": "@api-ts/base",
33
"version": "0.1.0",
44
"description": "Tools for using io-ts to describe and consume APIs",
55
"license": "Apache-2.0",
File renamed without changes.

packages/io-ts-express/README.md renamed to packages/express-wrapper/README.md

Lines changed: 1 addition & 1 deletion

packages/io-ts-express/package.json renamed to packages/express-wrapper/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@bitgo/io-ts-express",
2+
"name": "@api-ts/express-wrapper",
33
"version": "0.1.0",
44
"description": "Implement an HTTP specification with Express",
55
"author": "Eric Crosson <[email protected]>",
@@ -15,14 +15,14 @@
1515
"test": "ava"
1616
},
1717
"dependencies": {
18-
"@bitgo/io-ts-http": "0.1.0",
18+
"@api-ts/io-ts-http": "0.1.0",
1919
"express": "4.17.2",
2020
"fp-ts": "2.11.8",
2121
"io-ts": "2.2.16"
2222
},
2323
"devDependencies": {
24+
"@api-ts/superagent-wrapper": "0.1.0",
2425
"@ava/typescript": "3.0.1",
25-
"@bitgo/superagent-codec-adapter": "0.1.0",
2626
"@types/express": "4.17.13",
2727
"@types/node": "16.11.7",
2828
"ava": "4.0.1",

packages/io-ts-express/src/index.ts renamed to packages/express-wrapper/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* io-ts-express
2+
* express-wrapper
33
* A simple, type-safe web server
44
*/
55

@@ -12,7 +12,7 @@ import {
1212
HttpRoute,
1313
RequestType,
1414
ResponseType,
15-
} from '@bitgo/io-ts-http';
15+
} from '@api-ts/io-ts-http';
1616

1717
export type Function<R extends HttpRoute> = (
1818
input: RequestType<R>,

packages/io-ts-express/test/test-server.ts renamed to packages/express-wrapper/test/test-server.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ import * as t from 'io-ts';
44
import express from 'express';
55
import supertest from 'supertest';
66

7-
import { ApiSpec, apiSpec, httpRequest, httpRoute, optional } from '@bitgo/io-ts-http';
8-
import { Response } from '@bitgo/io-ts-response';
9-
import {
10-
buildApiClient,
11-
supertestRequestFactory,
12-
} from '@bitgo/superagent-codec-adapter';
7+
import { ApiSpec, apiSpec, httpRequest, httpRoute, optional } from '@api-ts/io-ts-http';
8+
import { Response } from '@api-ts/response';
9+
import { buildApiClient, supertestRequestFactory } from '@api-ts/superagent-wrapper';
1310

1411
import { createServer } from '../src';
1512

packages/io-ts-express/tsconfig.json renamed to packages/express-wrapper/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"path": "../io-ts-http"
3030
},
3131
{
32-
"path": "../superagent-codec-adapter"
32+
"path": "../superagent-wrapper"
3333
}
3434
]
3535
}

packages/io-ts-http/README.md

Lines changed: 2 additions & 2 deletions

packages/io-ts-http/docs/apiSpec.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)