Skip to content

Commit 48462b0

Browse files
committed
Initial commit
0 parents  commit 48462b0

File tree

514 files changed

+26292
-0
lines changed

Some content is hidden

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

514 files changed

+26292
-0
lines changed

.eslintrc.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
extends: standard-with-typescript
5+
parserOptions:
6+
ecmaVersion: latest
7+
sourceType: module
8+
rules:
9+
'@typescript-eslint/semi': 'off'
10+
'@typescript-eslint/strict-boolean-expressions': 'off'
11+
'@typescript-eslint/ban-types': 'off'
12+
'@typescript-eslint/explicit-function-return-type': 'off'
13+
'@typescript-eslint/restrict-template-expressions': 'off'
14+
'@typescript-eslint/comma-dangle': 'off'
15+
'@typescript-eslint/space-before-function-paren': 'off'
16+
'@typescript-eslint/member-delimiter-style': 'off'
17+
'@typescript-eslint/indent': 'off'
18+
'generator-star-spacing': 'off'
19+
'@typescript-eslint/naming-convention': 'off'
20+
'@typescript-eslint/no-extraneous-class': 'off'
21+
ignorePatterns:
22+
- 'jest.config.js'
23+
- '**/__tests__/**'
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Bug report
2+
description: Report a problem.
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Use this form to report a bug or problem with the Paddle Node.js SDK.
10+
11+
Remember to remove sensitive information from screenshots, videos, or code samples before submitting.
12+
13+
**Do not create issues for potential security vulnerabilities.** Please see the [Paddle Vulnerability Disclosure Policy](https://www.paddle.com/vulnerability-disclosure-policy) and report any vulnerabilities [using our form](https://vdp.paddle.com/p/Report-a-Vulnerability).
14+
15+
Thanks for helping to make the Paddle platform better for everyone!
16+
- type: textarea
17+
id: description
18+
attributes:
19+
label: What happened?
20+
description: Describe the bug in a sentence or two. Feel free to add screenshots or a video to better explain!
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: reproduce
25+
attributes:
26+
label: Steps to reproduce
27+
description: Explain how to reproduce this issue. We prefer a step-by-step walkthrough, where possible.
28+
value: |
29+
1.
30+
2.
31+
3.
32+
...
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: expected-behavior
37+
attributes:
38+
label: What did you expect to happen?
39+
description: Tell us what should happen when you encounter this bug.
40+
- type: textarea
41+
id: logs
42+
attributes:
43+
label: Logs
44+
description: Copy and paste any relevant logs. This is automatically formatted into code, so no need for backticks.
45+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Get help
4+
url: https://developer.paddle.com/
5+
about: For help with the Paddle Node.js SDK or building your integration, contact our support team at [sellers@paddle.com](mailto:sellers@paddle.com).
6+
- name: Report a vulnerability
7+
url: https://vdp.paddle.com/p/Report-a-Vulnerability
8+
about: Please see the [Paddle Vulnerability Disclosure Policy](https://www.paddle.com/vulnerability-disclosure-policy) and report any vulnerabilities using https://vdp.paddle.com/p/Report-a-Vulnerability.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Feature request
2+
description: Suggest an idea.
3+
title: "[Feature]: "
4+
labels: ["feature"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Use this form to send us suggestions for improvements to the Paddle Node.js SDK.
10+
11+
For general feedback about the Paddle API or developer platform, contact our DX team directly
12+
at [team-dx@paddle.com](mailto:team-dx@paddle.com).
13+
14+
Thanks for helping to make the Paddle platform better for everyone!
15+
- type: textarea
16+
id: request
17+
attributes:
18+
label: Tell us about your feature request
19+
description: Describe what you'd like to see added or improved.
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: problem
24+
attributes:
25+
label: What problem are you looking to solve?
26+
description: Tell us how and why would implementing your suggestion would help.
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: additional-information
31+
attributes:
32+
label: Additional context
33+
description: Add any other context, screenshots, or illustrations about your suggestion here.
34+
- type: dropdown
35+
id: priority
36+
attributes:
37+
label: How important is this suggestion to you?
38+
options:
39+
- Nice to have
40+
- Important
41+
- Critical
42+
default: 0
43+
validations:
44+
required: true

.github/workflows/build-test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- v1.X
8+
pull_request:
9+
branches:
10+
- main
11+
- v1.X
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
run-build-test:
19+
name: Run Build & test
20+
runs-on: ubuntu-latest
21+
22+
permissions:
23+
contents: read
24+
actions: write
25+
26+
steps:
27+
- name: Check out git repository
28+
uses: actions/checkout@v3
29+
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: lts/*
34+
cache: "yarn"
35+
36+
- name: Install yarn dependencies
37+
run: yarn install
38+
39+
- name: Build
40+
run: yarn build
41+
42+
- name: Test
43+
run: yarn test

.github/workflows/linting.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- v1.X
8+
pull_request:
9+
branches:
10+
- main
11+
- v1.X
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
run-linters:
19+
name: Run linters
20+
runs-on: ubuntu-latest
21+
22+
permissions:
23+
contents: read
24+
actions: write
25+
26+
steps:
27+
- name: Check out git repository
28+
uses: actions/checkout@v3
29+
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: lts/*
34+
cache: "yarn"
35+
36+
- name: Install yarn dependencies
37+
run: yarn install
38+
39+
- name: Lint
40+
run: |
41+
yarn lint
42+
yarn prettier

.github/workflows/publish-latest.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish to latest Tag
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
run-publish:
10+
name: Run publish
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: read
15+
actions: write
16+
17+
steps:
18+
- name: Check out git repository
19+
uses: actions/checkout@v3
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: lts/*
25+
cache: "yarn"
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
- name: Install yarn dependencies
29+
run: yarn install
30+
31+
- name: Build
32+
run: yarn build
33+
34+
- name: Test
35+
run: yarn test
36+
37+
- name: Publish
38+
run: yarn publish:latest
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/dist
13+
14+
# misc
15+
.DS_Store
16+
*.pem
17+
.idea
18+
19+
# debug
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# local env files
25+
.env
26+
.env.local
27+
.env.development.local
28+
.env.test.local
29+
.env.production.local
30+
src/version.ts
31+
# Sentry
32+
.sentryclirc
33+
34+
*.tsbuildinfo

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true,
4+
"tabWidth": 2,
5+
"printWidth": 120,
6+
"trailingComma": "all",
7+
"bracketSpacing": true,
8+
}

0 commit comments

Comments
 (0)