Skip to content

Commit

Permalink
chore: rename to @hyperse/*
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed May 29, 2024
1 parent ef85f9f commit f028c6d
Show file tree
Hide file tree
Showing 19 changed files with 122 additions and 31 deletions.
6 changes: 6 additions & 0 deletions .changeset/gorgeous-coins-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"paypal-checkout-sdk-samples": major
"@hyperse/paypal-node-sdk": major
---

rename to `@hyperse/*`
64 changes: 64 additions & 0 deletions .github/workflows/ci-integrity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI-unitest

on:
push:
branches:
- main
- major
- minor
# Only consider those paths to trigger the action
paths:
- 'packages/**'
- 'package.json'
- '*.lock'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/**'

pull_request:
branches:
- main
- major
- minor
types:
- opened
- synchronize
- reopened
# Only consider those paths to trigger the action
paths:
- 'packages/**'
- 'package.json'
- '*.lock'
- '.yarnrc.yml'
- 'tsconfig.base.json'
- '.prettier*'
- '.github/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: 📥 Install Dependencies
run: yarn --frozen-lockfile

- name: Linter
run: |
yarn lint
# - name: Unit tests
# run: |
# yarn test

- name: Build
run: |
yarn build
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @hyperse-io/paypal-node-sdk
# @hyperse/paypal-node-sdk

## 1.0.9

Expand Down
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @hyperse-io/paypal-node-sdk

# @hyperse/paypal-node-sdk

<p align="left">
<a aria-label="Build" href="https://github.com/hyperse-io/paypal-node-sdk/actions?query=workflow%3ACI">
<img alt="build" src="https://img.shields.io/github/actions/workflow/status/hyperse-io/paypal-node-sdk/ci-integrity.yml?branch=main&label=ci&logo=github&style=flat-quare&labelColor=000000" />
</a>
<a aria-label="stable version" href="https://www.npmjs.com/package/@hyperse/paypal-node-sdk">
<img alt="stable version" src="https://img.shields.io/npm/v/%40hyperse%2Fpaypal-node-sdk?branch=main&label=version&logo=npm&style=flat-quare&labelColor=000000" />
</a>
<a>
<img alt="LoC" src="https://img.shields.io/bundlephobia/min/%40hyperse%2Fpaypal-node-sdk?style=flat-quare&labelColor=000000" />
</a>
<a aria-label="Top language" href="https://github.com/hyperse-io/paypal-node-sdk/search?l=typescript">
<img alt="GitHub top language" src="https://img.shields.io/github/languages/top/hyperse-io/paypal-node-sdk?style=flat-square&labelColor=000&color=blue">
</a>
<a aria-label="Licence" href="https://github.com/hyperse-io/paypal-node-sdk/blob/main/LICENSE">
<img alt="Licence" src="https://img.shields.io/github/license/hyperse-io/paypal-node-sdk?style=flat-quare&labelColor=000000" />
</a>
</p>
## PayPal Checkout API SDK for NodeJS

![PayPal Developer](/homepage.jpg)
Expand Down Expand Up @@ -27,7 +44,7 @@ For contirbuting or referrring the samples, You can fork/refer this repository.
#### Code to Execute:

```javascript
import { core, orders, payments } from '@hyperse-io/paypal-node-sdk';
import { core, orders, payments } from '@hyperse/paypal-node-sdk';

// Creating an environment
let clientId = '<<PAYPAL-CLIENT-ID>>';
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@hyperse-io/paypal-node-sdk",
"name": "@hyperse/paypal-node-sdk",
"version": "1.0.9",
"description": "NodeJS SDK for PayPal Checkout APIs",
"keywords": [
Expand Down Expand Up @@ -103,4 +103,4 @@
"node": ">=18.0.0"
},
"packageManager": "yarn@4.2.2"
}
}
2 changes: 1 addition & 1 deletion samples/AuthorizeIntentExamples/authorizeOrder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createClient } from 'samples/Common/payPalClient.js';
import { orders } from '@hyperse-io/paypal-node-sdk';
import { orders } from '@hyperse/paypal-node-sdk';

/**
* This function can be used to perform authorization on the approved order.
Expand Down
2 changes: 1 addition & 1 deletion samples/AuthorizeIntentExamples/captureOrder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createClient } from 'samples/Common/payPalClient.js';
import { payments } from '@hyperse-io/paypal-node-sdk';
import { payments } from '@hyperse/paypal-node-sdk';

/**
* This function can be used to capture the payment on an authorized Order.
Expand Down
2 changes: 1 addition & 1 deletion samples/AuthorizeIntentExamples/createOrder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createClient } from 'samples/Common/payPalClient.js';
import { orders } from '@hyperse-io/paypal-node-sdk';
import { orders } from '@hyperse/paypal-node-sdk';

/**
* Setting up the complete JSON request body for creating the Order. The Intent
Expand Down
18 changes: 9 additions & 9 deletions samples/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,56 +5,56 @@
### Patch Changes

- Updated dependencies [[`ba7cfad`](https://github.com/hyperse-io/paypal-node-sdk/commit/ba7cfadb300f71209a796287a20d1bc75e3df201)]:
- @hyperse-io/paypal-node-sdk@1.0.9
- @hyperse/paypal-node-sdk@1.0.9

## 1.0.9

### Patch Changes

- Updated dependencies [[`4fe8f6e`](https://github.com/hyperse-io/paypal-node-sdk/commit/4fe8f6eaa499eef171a8abd3193c0271d5d2f765)]:
- @hyperse-io/paypal-node-sdk@1.0.8
- @hyperse/paypal-node-sdk@1.0.8

## 1.0.8

### Patch Changes

- Updated dependencies [[`50b95f5`](https://github.com/hyperse-io/paypal-node-sdk/commit/50b95f58d2526f7bdfd39e4b104ea7aa17782141)]:
- @hyperse-io/paypal-node-sdk@1.0.7
- @hyperse/paypal-node-sdk@1.0.7

## 1.0.7

### Patch Changes

- Updated dependencies [[`2242686`](https://github.com/hyperse-io/paypal-node-sdk/commit/22426866fe9ed2e193e3f9f5ad96a3d4092b3ab2)]:
- @hyperse-io/paypal-node-sdk@1.0.6
- @hyperse/paypal-node-sdk@1.0.6

## 1.0.6

### Patch Changes

- Updated dependencies [[`6a9d161`](https://github.com/hyperse-io/paypal-node-sdk/commit/6a9d161314a075aff0bcf3d89c9916a7a083c724)]:
- @hyperse-io/paypal-node-sdk@1.0.5
- @hyperse/paypal-node-sdk@1.0.5

## 1.0.5

### Patch Changes

- Updated dependencies [[`e1cbf87`](https://github.com/hyperse-io/paypal-node-sdk/commit/e1cbf87c68698ed54080976ca478833e2f31e84a)]:
- @hyperse-io/paypal-node-sdk@1.0.4
- @hyperse/paypal-node-sdk@1.0.4

## 1.0.4

### Patch Changes

- Updated dependencies [[`d6ceab8`](https://github.com/hyperse-io/paypal-node-sdk/commit/d6ceab80df69e9ca6c96519bf9cff305be07d0b9)]:
- @hyperse-io/paypal-node-sdk@1.0.3
- @hyperse/paypal-node-sdk@1.0.3

## 1.0.3

### Patch Changes

- Updated dependencies [[`f1e4528`](https://github.com/hyperse-io/paypal-node-sdk/commit/f1e45289ebd98fc9c22909173d6a7bf07a9af211)]:
- @hyperse-io/paypal-node-sdk@1.0.2
- @hyperse/paypal-node-sdk@1.0.2

## 1.0.2

Expand All @@ -63,4 +63,4 @@
- [`205f33b`](https://github.com/hyperse-io/paypal-node-sdk/commit/205f33b0ddf636a23e07a7a52da7d40fabb06479) Thanks [@tianyingchun](https://github.com/tianyingchun)! - refactor add request body input typings

- Updated dependencies [[`2c70501`](https://github.com/hyperse-io/paypal-node-sdk/commit/2c705019409831e22521d1ed45f933cd6d4d9d2d), [`af4145f`](https://github.com/hyperse-io/paypal-node-sdk/commit/af4145f1619103b9e1a0a31cbf4a4e06f09a6088), [`1c728da`](https://github.com/hyperse-io/paypal-node-sdk/commit/1c728daca05dddf1c9fb67ee0af2974c5f346e6c), [`205f33b`](https://github.com/hyperse-io/paypal-node-sdk/commit/205f33b0ddf636a23e07a7a52da7d40fabb06479)]:
- @hyperse-io/paypal-node-sdk@1.0.1
- @hyperse/paypal-node-sdk@1.0.1
2 changes: 1 addition & 1 deletion samples/CaptureIntentExamples/captureOrder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createClient } from 'tests/test-utils.js';
import { orders } from '@hyperse-io/paypal-node-sdk';
import { orders } from '@hyperse/paypal-node-sdk';

/**
* This function can be used to capture an order payment by passing the approved
Expand Down
2 changes: 1 addition & 1 deletion samples/CaptureIntentExamples/createOrder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createClient } from 'tests/test-utils.js';
import { orders } from '@hyperse-io/paypal-node-sdk';
import { orders } from '@hyperse/paypal-node-sdk';

/**
* Setting up the JSON request body for creating the Order. The Intent in the
Expand Down
2 changes: 1 addition & 1 deletion samples/Common/errorSample.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { orders } from '@hyperse-io/paypal-node-sdk';
import { orders } from '@hyperse/paypal-node-sdk';
import { createClient, prettyPrint } from './payPalClient.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion samples/Common/getOrder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { orders } from '@hyperse-io/paypal-node-sdk';
import { orders } from '@hyperse/paypal-node-sdk';
import { createClient } from './payPalClient.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion samples/Common/patchOrder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { orders } from '@hyperse-io/paypal-node-sdk';
import { orders } from '@hyperse/paypal-node-sdk';
import { createOrder } from '../CaptureIntentExamples/createOrder.js';
import { getOrder } from './getOrder.js';
import { createClient } from './payPalClient.js';
Expand Down
2 changes: 1 addition & 1 deletion samples/Common/payPalClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { core } from '@hyperse-io/paypal-node-sdk';
import { core } from '@hyperse/paypal-node-sdk';

/**
* Returns PayPal HTTP client instance with environment which has access
Expand Down
2 changes: 1 addition & 1 deletion samples/Common/refundOrder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { payments } from '@hyperse-io/paypal-node-sdk';
import { payments } from '@hyperse/paypal-node-sdk';
import { createClient } from './payPalClient.js';
/**
* This method can be used to refund the capture. This function should be called
Expand Down
4 changes: 2 additions & 2 deletions samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"node": ">=8"
},
"dependencies": {
"@hyperse-io/paypal-node-sdk": "workspace:*"
"@hyperse/paypal-node-sdk": "workspace:*"
},
"license": "MIT",
"scripts": {
"test:integration": "mocha spec --recursive",
"test": "npm run test:integration",
"test:orders": "mocha spec/orders --recursive --timeout 60000"
}
}
}
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"noEmit": false,
"incremental": true,
"paths": {
"@hyperse-io/paypal-node-sdk": [
"@hyperse/paypal-node-sdk": [
"./src/index.js"
]
},
Expand All @@ -16,6 +16,10 @@
"vitest/globals"
]
},
"include": [
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"**/node_modules",
"**/.*/",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,9 @@ __metadata:
languageName: node
linkType: hard

"@hyperse-io/paypal-node-sdk@workspace:*, @hyperse-io/paypal-node-sdk@workspace:.":
"@hyperse/paypal-node-sdk@workspace:*, @hyperse/paypal-node-sdk@workspace:.":
version: 0.0.0-use.local
resolution: "@hyperse-io/paypal-node-sdk@workspace:."
resolution: "@hyperse/paypal-node-sdk@workspace:."
dependencies:
"@changesets/changelog-git": "npm:0.2.0"
"@changesets/changelog-github": "npm:0.5.0"
Expand Down Expand Up @@ -6825,7 +6825,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "paypal-checkout-sdk-samples@workspace:samples"
dependencies:
"@hyperse-io/paypal-node-sdk": "workspace:*"
"@hyperse/paypal-node-sdk": "workspace:*"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit f028c6d

Please sign in to comment.