@rocketspark/domain-checker 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/jsonSchemas.xml +25 -0
- package/README.md +9 -57
- package/build/130.index.js +1 -1
- package/build/145.index.js +1 -1
- package/build/171.index.js +1 -1
- package/build/190.index.js +1 -1
- package/build/228.index.js +1 -1
- package/build/23.index.js +1 -1
- package/build/253.index.js +1 -1
- package/build/269.index.js +1 -1
- package/build/307.index.js +1 -1
- package/build/314.index.js +1 -1
- package/build/330.index.js +1 -1
- package/build/346.index.js +1 -1
- package/build/385.index.js +1 -1
- package/build/431.index.js +1 -1
- package/build/447.index.js +1 -1
- package/build/482.index.js +1 -1
- package/build/525.index.js +1 -1
- package/build/536.index.js +1 -1
- package/build/548.index.js +1 -1
- package/build/565.index.js +1 -1
- package/build/577.index.js +1 -1
- package/build/655.index.js +1 -1
- package/build/66.index.js +1 -1
- package/build/669.index.js +1 -1
- package/build/677.index.js +1 -1
- package/build/678.index.js +1 -1
- package/build/69.index.js +1 -1
- package/build/690.index.js +1 -1
- package/build/694.index.js +1 -1
- package/build/698.index.js +1 -1
- package/build/716.index.js +1 -1
- package/build/717.index.js +1 -1
- package/build/724.index.js +1 -1
- package/build/738.index.js +1 -1
- package/build/799.index.js +1 -1
- package/build/82.index.js +1 -1
- package/build/858.index.js +1 -1
- package/build/882.index.js +1 -1
- package/build/895.index.js +1 -1
- package/build/903.index.js +1 -1
- package/build/911.index.js +1 -1
- package/build/912.index.js +1 -1
- package/build/927.index.js +1 -1
- package/build/953.index.js +1 -1
- package/build/955.index.js +1 -1
- package/build/994.index.js +1 -1
- package/build/css/index.css +1 -1
- package/build/css/index.css.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/types/Components/PopupContainer.d.ts +1 -0
- package/build/types/Components/SearchResultCaption.d.ts +2 -0
- package/build/types/Helpers/Fetch.d.ts +1 -0
- package/build/types/Helpers/templates.d.ts +1 -1
- package/build/types/Helpers/wrap.test.d.ts +4 -0
- package/build/types/{interfaces → Interfaces}/class-names.d.ts +0 -0
- package/build/types/{interfaces → Interfaces}/options.d.ts +0 -0
- package/build/types/index.d.ts +2 -2
- package/build/types/index.test.d.ts +4 -0
- package/package.json +4 -2
- package/tsconfig.json +23 -15
- package/.github-test/FUNDING.yml +0 -1
- package/.github-test/dependabot.yml +0 -10
- package/.github-test/workflows/main.yml +0 -28
- package/.github-test/workflows/publish.yml +0 -49
- package/.github-test/workflows/pull_request.yml +0 -24
- package/.github-test/workflows/pull_request_dependabot.yml +0 -48
|
@@ -21,6 +21,7 @@ export default class PopupContainer {
|
|
|
21
21
|
setStatus(status?: Status): this;
|
|
22
22
|
setHeading(heading: string): this;
|
|
23
23
|
setPrice(price?: string): this;
|
|
24
|
+
setCaptionMessage(message: string): this;
|
|
24
25
|
setCanClaim(state: boolean): this;
|
|
25
26
|
setDomain(domain: string): this;
|
|
26
27
|
private resetLoadingUi;
|
|
File without changes
|
|
File without changes
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import { Options } from './
|
|
2
|
+
import { Options } from './Interfaces/options';
|
|
3
3
|
import '@rocketspark/flint-ui/dist/rocketspark/rocketspark.css';
|
|
4
4
|
import PopupContainer from './Components/PopupContainer';
|
|
5
5
|
import { DomainResponse } from './Helpers/Fetch';
|
|
@@ -13,7 +13,7 @@ declare class DomainChecker {
|
|
|
13
13
|
private domainSearch;
|
|
14
14
|
private popupContainer;
|
|
15
15
|
constructor(element: HTMLElement, options?: Partial<Options>);
|
|
16
|
-
static setPopupStatus(popupContainer: PopupContainer, { success, isAvailable, formattedPrice }: DomainResponse): void;
|
|
16
|
+
static setPopupStatus(popupContainer: PopupContainer, { success, isAvailable, formattedPrice, error }: DomainResponse): void;
|
|
17
17
|
private init;
|
|
18
18
|
private getTemplate;
|
|
19
19
|
private startListening;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocketspark/domain-checker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Embeddable Domain Checker for Rocketspark",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/types/index.d.ts",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"test": "jest --silent",
|
|
13
13
|
"coverage": "npm run test -- --coverage",
|
|
14
14
|
"prepare": "npm run build",
|
|
15
|
-
"publish:patch": "npm version patch -m \"Patch upgrade to %s [skip ci]\" && npm publish || true"
|
|
15
|
+
"publish:patch": "npm version patch -m \"Patch upgrade to %s [skip ci]\" && npm publish || true",
|
|
16
|
+
"publish": "npm publish"
|
|
16
17
|
},
|
|
17
18
|
"browserslist": [
|
|
18
19
|
"defaults",
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
"file-loader": "^6.2.0",
|
|
57
58
|
"html-webpack-plugin": "^5.5.0",
|
|
58
59
|
"jest": "^28.1.0",
|
|
60
|
+
"jest-environment-jsdom": "^28.1.0",
|
|
59
61
|
"mini-css-extract-plugin": "^2.6.0",
|
|
60
62
|
"optimize-css-assets-webpack-plugin": "^6.0.1",
|
|
61
63
|
"postcss-loader": "^3.0.0",
|
package/tsconfig.json
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"noImplicitAny": true,
|
|
4
|
+
"outDir": "build/types",
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"target": "es5",
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"sourceMap": true,
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"emitDeclarationOnly": true,
|
|
11
|
+
"suppressImplicitAnyIndexErrors": true,
|
|
12
|
+
"lib": [
|
|
13
|
+
"es2018",
|
|
14
|
+
"dom"
|
|
15
|
+
],
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
"forceConsistentCasingInFileNames": true
|
|
18
|
+
},
|
|
19
|
+
"include": [
|
|
20
|
+
"src/lib"
|
|
21
|
+
],
|
|
22
|
+
"exclude": [
|
|
23
|
+
"src/lib/**/tests"
|
|
24
|
+
]
|
|
17
25
|
}
|
package/.github-test/FUNDING.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
custom: https://hge.to/thanks
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
name: Build
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
paths-ignore:
|
|
6
|
-
- README.md
|
|
7
|
-
- .gitignore
|
|
8
|
-
- .github/**
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
runs-on: ${{ matrix.os }}
|
|
13
|
-
strategy:
|
|
14
|
-
matrix:
|
|
15
|
-
node-version: [12.x]
|
|
16
|
-
os: [ubuntu-latest]
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v1
|
|
19
|
-
- name: Use Node.js ${{ matrix.node_version }}
|
|
20
|
-
uses: actions/setup-node@v1
|
|
21
|
-
with:
|
|
22
|
-
node-version: ${{ matrix.node_version }}
|
|
23
|
-
- name: npm install, build, and test
|
|
24
|
-
run: |
|
|
25
|
-
npm install
|
|
26
|
-
npm run test
|
|
27
|
-
env:
|
|
28
|
-
CI: true
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
name: Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
paths-ignore:
|
|
8
|
-
- README.md
|
|
9
|
-
- .gitignore
|
|
10
|
-
- .github/**
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
publish:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v1
|
|
17
|
-
- uses: actions/setup-node@v1
|
|
18
|
-
with:
|
|
19
|
-
node-version: 12
|
|
20
|
-
- run: npm install
|
|
21
|
-
- run: npm run test
|
|
22
|
-
|
|
23
|
-
- name: Setup GIT
|
|
24
|
-
run: |
|
|
25
|
-
git reset --hard
|
|
26
|
-
git config --local --list
|
|
27
|
-
git checkout master
|
|
28
|
-
git config user.email "$GH_EMAIL"
|
|
29
|
-
git config user.name "Francisco Hodge"
|
|
30
|
-
env:
|
|
31
|
-
GH_EMAIL: ${{secrets.GH_EMAIL}}
|
|
32
|
-
|
|
33
|
-
- name: Bump version
|
|
34
|
-
run: |
|
|
35
|
-
git reset --hard
|
|
36
|
-
npm version patch
|
|
37
|
-
npm run build
|
|
38
|
-
git add . || true
|
|
39
|
-
git commit -m "Build update" || true
|
|
40
|
-
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
|
|
41
|
-
env:
|
|
42
|
-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
43
|
-
|
|
44
|
-
- name: npm publish
|
|
45
|
-
run: |
|
|
46
|
-
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
|
|
47
|
-
npm run trypublish
|
|
48
|
-
env:
|
|
49
|
-
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: Build PR (Standard)
|
|
2
|
-
|
|
3
|
-
on: pull_request
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ${{ matrix.os }}
|
|
8
|
-
if: ${{ github.actor != 'dependabot[bot]' }}
|
|
9
|
-
strategy:
|
|
10
|
-
matrix:
|
|
11
|
-
node-version: [12.x]
|
|
12
|
-
os: [ubuntu-latest]
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v1
|
|
15
|
-
- name: Use Node.js ${{ matrix.node_version }}
|
|
16
|
-
uses: actions/setup-node@v1
|
|
17
|
-
with:
|
|
18
|
-
node-version: ${{ matrix.node_version }}
|
|
19
|
-
- name: npm install, build, and test
|
|
20
|
-
run: |
|
|
21
|
-
npm install
|
|
22
|
-
npm run test
|
|
23
|
-
env:
|
|
24
|
-
CI: true
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
name: Build PR (Dependabot)
|
|
2
|
-
|
|
3
|
-
on: pull_request_target
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ${{ matrix.os }}
|
|
8
|
-
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
9
|
-
strategy:
|
|
10
|
-
matrix:
|
|
11
|
-
node-version: [12.x]
|
|
12
|
-
os: [ubuntu-latest]
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
with:
|
|
16
|
-
ref: ${{ github.event.pull_request.head.sha }}
|
|
17
|
-
- name: Use Node.js ${{ matrix.node_version }}
|
|
18
|
-
uses: actions/setup-node@v1
|
|
19
|
-
with:
|
|
20
|
-
node-version: ${{ matrix.node_version }}
|
|
21
|
-
- name: npm install, build, and test
|
|
22
|
-
run: |
|
|
23
|
-
npm install
|
|
24
|
-
npm run test
|
|
25
|
-
env:
|
|
26
|
-
CI: true
|
|
27
|
-
- name: Merge PR
|
|
28
|
-
if: success()
|
|
29
|
-
uses: "actions/github-script@v2"
|
|
30
|
-
with:
|
|
31
|
-
github-token: "${{ secrets.GH_KEY }}"
|
|
32
|
-
script: |
|
|
33
|
-
const pullRequest = context.payload.pull_request
|
|
34
|
-
const repository = context.repo
|
|
35
|
-
|
|
36
|
-
await github.pulls.merge({
|
|
37
|
-
merge_method: "merge",
|
|
38
|
-
owner: repository.owner,
|
|
39
|
-
pull_number: pullRequest.number,
|
|
40
|
-
repo: repository.repo,
|
|
41
|
-
})
|
|
42
|
-
- name: Reject PR
|
|
43
|
-
if: failure()
|
|
44
|
-
uses: peter-evans/close-pull@v1
|
|
45
|
-
with:
|
|
46
|
-
pull-request-number: ${{github.event.number}}
|
|
47
|
-
comment: "Closing PR due to failing tests."
|
|
48
|
-
delete-branch: true
|