Skip to content

Commit

Permalink
Various updates needed to rename the fork.
Browse files Browse the repository at this point in the history
Basically just changing the package scope from @creditkarma to @StatesTitle so we can publish to a package service. Had to remove extra parts of the URL from the GitHub URLs in package.json so GitHub would let me publish to their package service.
  • Loading branch information
markdoliner-doma committed Sep 21, 2020
1 parent 169368e commit 0de9637
Show file tree
Hide file tree
Showing 20 changed files with 73 additions and 73 deletions.
24 changes: 12 additions & 12 deletions packages/thrift-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ We're going to go through this step-by-step.
All Thrift Server libraries define inter-dependencies as peer dependencies to avoid type collisions.

```sh
$ npm install --save-dev @creditkarma/thrift-typescript
$ npm install --save @creditkarma/thrift-server-core
$ npm install --save @creditkarma/thrift-client
$ npm install --save-dev @statestitle/thrift-typescript
$ npm install --save @statestitle/thrift-server-core
$ npm install --save @statestitle/thrift-client
$ npm install --save request
$ npm install --save @types/request
```
Expand All @@ -37,7 +37,7 @@ service Calculator {

### Codegen

Requires @creditkarma/thrift-typescript >= v3.0.0
Requires @statestitle/thrift-typescript >= v3.0.0

Add a script to your package.json to codegen. The 'target' option is important to make thrift-typescript generate for this library instead of the Apache libraries.

Expand Down Expand Up @@ -69,7 +69,7 @@ When creating a client using this method Thrift Client uses the [Request library
```typescript
import {
createHttpClient
} from '@creditkarma/thrift-client'
} from '@statestitle/thrift-client'

import { CoreOptions } from 'request'

Expand Down Expand Up @@ -99,7 +99,7 @@ The available options are:
* register (optional): A list of filters to apply to your client. More on this later.
* requestImpl (optional): Provide a request implementation. Defaults to 'request' module.

Currently `@creditkarma/thrift-server-core"` only supports buffered transport and binary or compact protocols.
Currently `@statestitle/thrift-server-core"` only supports buffered transport and binary or compact protocols.

```typescript
type TransportType = 'buffered'
Expand All @@ -120,7 +120,7 @@ import {
RequestInstance,
HttpConnection,
IHttpConnectionOptions,
} from '@creditkarma/thrift-client'
} from '@statestitle/thrift-client'
import * as request from 'request'
import { CoreOptions } from 'request'

Expand Down Expand Up @@ -163,7 +163,7 @@ Using the `createTcpClient` function you pass in two arguments, the first is you
```typescript
import {
createTcpClient
} from '@creditkarma/thrift-client'
} from '@statestitle/thrift-client'

import { Calculator } from './codegen/calculator'

Expand Down Expand Up @@ -193,7 +193,7 @@ The available options are:
```typescript
import {
TcpConnection,
} from '@creditkarma/thrift-client'
} from '@statestitle/thrift-client'

import { Calculator } from './codegen/calculator'

Expand All @@ -220,7 +220,7 @@ Related to context you will notice that our Thrift service client is a generic `
```typescript
import {
createHttpClient
} from '@creditkarma/thrift-client'
} from '@statestitle/thrift-client'

import { CoreOptions } from 'request'
import * as express from 'express'
Expand Down Expand Up @@ -343,7 +343,7 @@ You could do something like this:
import {
createHttpClient,
IThriftRequest,
} from '@creditkarma/thrift-client'
} from '@statestitle/thrift-client'

import { Calculator } from './codegen/calculator'

Expand Down Expand Up @@ -372,7 +372,7 @@ To apply filters to the response you would call `.then` on the `next` function.
import {
createHttpClient,
IThriftRequest
} from '@creditkarma/thrift-client'
} from '@statestitle/thrift-client'

import { Calculator } from './codegen/calculator'

Expand Down
12 changes: 6 additions & 6 deletions packages/thrift-client/package-lock.json

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

10 changes: 5 additions & 5 deletions packages/thrift-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@creditkarma/thrift-client",
"version": "0.16.1",
"name": "@statestitle/thrift-client",
"version": "0.16.1-statestitle1",
"description": "Thrift client library for NodeJS written in TypeScript.",
"main": "dist/main/index.js",
"types": "dist/main/index.d.ts",
Expand Down Expand Up @@ -32,13 +32,13 @@
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-client"
"url": "https://github.com/statestitle/thrift-server"
},
"peerDependencies": {
"@creditkarma/thrift-server-core": "0.16.x"
"@statestitle/thrift-server-core": "0.16.x"
},
"devDependencies": {
"@creditkarma/thrift-server-core": "^0.16.1",
"@statestitle/thrift-server-core": "^0.16.1-statestitle2",
"@types/node": "^8.10.38",
"prettier": "^1.18.2",
"rimraf": "^2.6.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/thrift-client/src/main/connections/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TProtocol,
TTransport,
TType,
} from '@creditkarma/thrift-server-core'
} from '@statestitle/thrift-server-core'

import * as net from 'net'
import * as tls from 'tls'
Expand Down
8 changes: 4 additions & 4 deletions packages/thrift-client/src/main/connections/HttpConnection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Core from '@creditkarma/thrift-server-core'
import * as Core from '@statestitle/thrift-server-core'

import * as request from 'request'
import {
Expand Down Expand Up @@ -178,9 +178,9 @@ export class HttpConnection extends Core.ThriftConnection<RequestOptions> {
this.Protocol,
)

const filters: Array<RequestHandler<
RequestOptions
>> = this.filtersForMethod(requestMethod)
const filters: Array<
RequestHandler<RequestOptions>
> = this.filtersForMethod(requestMethod)

const thriftRequest: IThriftRequest<RequestOptions> = {
data: dataToSend,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Core from '@creditkarma/thrift-server-core'
import * as Core from '@statestitle/thrift-server-core'

export class NullConnection extends Core.ThriftConnection<any> {
public send(dataToSend: Buffer, context: any = {}): Promise<Buffer> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
LogFunction,
readThriftMethod,
ThriftConnection,
} from '@creditkarma/thrift-server-core'
} from '@statestitle/thrift-server-core'

import {
IConnectionOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/thrift-client/src/main/connections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
deepMerge,
IClientConstructor,
ThriftClient,
} from '@creditkarma/thrift-server-core'
} from '@statestitle/thrift-server-core'

import { HttpConnection } from './HttpConnection'
import { NullConnection } from './NullConnection'
Expand Down
2 changes: 1 addition & 1 deletion packages/thrift-client/src/main/connections/pool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LogFunction } from '@creditkarma/thrift-server-core'
import { LogFunction } from '@statestitle/thrift-server-core'
import * as GenericPool from 'generic-pool'
import { Connection, createConnection, IConnectionConfig } from './Connection'

Expand Down
2 changes: 1 addition & 1 deletion packages/thrift-client/src/main/logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { LogFunction, makeLogger } from '@creditkarma/thrift-server-core'
import { LogFunction, makeLogger } from '@statestitle/thrift-server-core'

export const defaultLogger: LogFunction = makeLogger('thrift-client')
2 changes: 1 addition & 1 deletion packages/thrift-client/src/main/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
LogFunction,
ProtocolType,
TransportType,
} from '@creditkarma/thrift-server-core'
} from '@statestitle/thrift-server-core'

import * as GenericPool from 'generic-pool'

Expand Down
30 changes: 15 additions & 15 deletions packages/thrift-server-core/package-lock.json

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

8 changes: 4 additions & 4 deletions packages/thrift-server-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@creditkarma/thrift-server-core",
"version": "0.16.1",
"name": "@statestitle/thrift-server-core",
"version": "0.16.1-statestitle2",
"description": "Thrift core library in TypeScript",
"main": "dist/main/index.js",
"types": "dist/main/index.d.ts",
Expand Down Expand Up @@ -28,10 +28,10 @@
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-core"
"url": "https://github.com/StatesTitle/thrift-server"
},
"devDependencies": {
"@creditkarma/thrift-typescript": "^3.7.6",
"@statestitle/thrift-typescript": "^3.7.6-statestitle3",
"@hapi/code": "^5.3.0",
"@hapi/lab": "^20.3.2",
"@types/hapi__code": "^5.3.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/thrift-server-express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Adding Thrift support to Express is as easy as just including the provided middl

### Codegen

Requires @creditkarma/thrift-typescript >= v3.0.0
Requires @statestitle/thrift-typescript >= v3.0.0

The easiest way to get started is to generate your thrift services using @creditkarma/thrift-typescript.
The easiest way to get started is to generate your thrift services using @statestitle/thrift-typescript.

```sh
npm install --save-dev @creditkarma/thrift-typescript
npm install --save-dev @statestitle/thrift-typescript
```

Add a script to your package.json to codegen. The 'target' option is important to make thrift-typescript generate for this library instead of the Apache libraries.
Expand All @@ -38,7 +38,7 @@ service Calculator {
```sh
npm install --save express
npm install --save thrift
npm install --save @creditkarma/thrift-server-express
npm install --save @statestitle/thrift-server-express
```

### Use the Plugin
Expand Down Expand Up @@ -107,7 +107,7 @@ The factory function takes one additional config options `path`, the path on whi

```typescript
import * as express from 'express'
import { createThriftServer } from '@creditkarma/thrift-server-express'
import { createThriftServer } from '@statestitle/thrift-server-express'
import { Calculator } from './codegen/calculator'

const PORT = 8080
Expand Down
12 changes: 6 additions & 6 deletions packages/thrift-server-express/package-lock.json

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

10 changes: 5 additions & 5 deletions packages/thrift-server-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@creditkarma/thrift-server-express",
"version": "0.16.1",
"name": "@statestitle/thrift-server-express",
"version": "0.16.1-statestitle1",
"description": "Express server middleware for the Apache Thrift protocol",
"main": "dist/main/index.js",
"types": "dist/main/index.d.ts",
Expand Down Expand Up @@ -29,15 +29,15 @@
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-express"
"url": "https://github.com/statestitle/thrift-server"
},
"peerDependencies": {
"@creditkarma/thrift-server-core": "0.16.x",
"@statestitle/thrift-server-core": "0.16.x",
"@types/express": ">=4.0.0 <5.0.0",
"express": ">=4.0.0 <5.0.0"
},
"devDependencies": {
"@creditkarma/thrift-server-core": "^0.16.1",
"@statestitle/thrift-server-core": "^0.16.1-statestitle2",
"@types/body-parser": "^1.16.5",
"@types/express": "^4.16.0",
"@types/node": "^8.10.38",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ITransportConstructor,
process,
readThriftMethod,
} from '@creditkarma/thrift-server-core'
} from '@statestitle/thrift-server-core'

import * as express from 'express'

Expand Down
2 changes: 1 addition & 1 deletion packages/thrift-server-express/src/main/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IThriftProcessor } from '@creditkarma/thrift-server-core'
import { IThriftProcessor } from '@statestitle/thrift-server-core'
import * as bodyParser from 'body-parser'
import * as express from 'express'

Expand Down
2 changes: 1 addition & 1 deletion packages/thrift-server-express/src/main/logger.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { LogFunction, makeLogger } from '@creditkarma/thrift-server-core'
import { LogFunction, makeLogger } from '@statestitle/thrift-server-core'

export const defaultLogger: LogFunction = makeLogger('thrift-server-express')
Loading

0 comments on commit 0de9637

Please sign in to comment.