@dintero/checkout-web-sdk 0.0.16 → 0.3.1
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/.github/dependabot.yml +10 -0
- package/.github/workflows/{blank.yml → build.yml} +6 -5
- package/.github/workflows/release.yml +33 -0
- package/.releaserc.json +11 -0
- package/CHANGELOG.md +7 -0
- package/README.md +85 -17
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/base.css +0 -0
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/block-navigation.js +0 -0
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/checkout.ts.html +75 -6
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/createIframeAsync.ts.html +15 -15
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/favicon.png +0 -0
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/index.html +40 -40
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7)/html/checkout-web-sdk.ts.html → Chrome Headless 99.0.4844.0 (Linux x86_64)/html/index.ts.html } +227 -32
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/prettify.css +0 -0
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/prettify.js +0 -0
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/sort-arrow-sprite.png +0 -0
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/sorter.js +0 -0
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/subscribe.ts.html +92 -26
- package/coverage/{Chrome Headless 80.0.3987.0 (Mac OS 10.15.7) → Chrome Headless 99.0.4844.0 (Linux x86_64)}/html/url.ts.html +23 -17
- package/dist/declarations/src/checkout.d.ts +75 -57
- package/dist/declarations/src/createIframeAsync.d.ts +10 -10
- package/dist/declarations/src/index.d.ts +43 -39
- package/dist/declarations/src/subscribe.d.ts +41 -33
- package/dist/declarations/src/url.d.ts +16 -15
- package/dist/dintero-checkout-web-sdk.cjs.dev.js +84 -16
- package/dist/dintero-checkout-web-sdk.cjs.prod.js +84 -16
- package/dist/dintero-checkout-web-sdk.esm.js +84 -16
- package/dist/dintero-checkout-web-sdk.umd.min.js +1 -1
- package/dist/dintero-checkout-web-sdk.umd.min.js.map +1 -1
- package/package.json +49 -46
- package/coverage/Chrome Headless 80.0.3987.0 (Mac OS 10.15.7)/html/dintero-checkout-web-sdk.ts.html +0 -908
- package/coverage/Chrome Headless 80.0.3987.0 (Mac OS 10.15.7)/html/index.ts.html +0 -908
- package/dist/declarations/package.d.ts +0 -49
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
name: CI
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ master ]
|
|
6
|
-
|
|
7
4
|
pull_request:
|
|
8
5
|
branches: [ master ]
|
|
9
6
|
|
|
10
7
|
jobs:
|
|
8
|
+
|
|
11
9
|
build:
|
|
12
10
|
runs-on: ubuntu-latest
|
|
13
11
|
|
|
14
12
|
steps:
|
|
15
13
|
- uses: actions/checkout@v2
|
|
16
|
-
- uses: actions/setup-node@v1
|
|
17
14
|
with:
|
|
18
|
-
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
- uses: actions/setup-node@v2
|
|
17
|
+
with:
|
|
18
|
+
node-version: 'lts/*'
|
|
19
|
+
cache: npm
|
|
19
20
|
|
|
20
21
|
- name: npm install, build and test
|
|
21
22
|
run: |
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
name: Release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout
|
|
15
|
+
uses: actions/checkout@v2
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- name: Setup Node.js
|
|
20
|
+
uses: actions/setup-node@v2
|
|
21
|
+
with:
|
|
22
|
+
node-version: 'lts/*'
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: |
|
|
26
|
+
npm install
|
|
27
|
+
npm run test
|
|
28
|
+
|
|
29
|
+
- name: Release
|
|
30
|
+
env:
|
|
31
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
33
|
+
run: npm run semantic-release
|
package/.releaserc.json
ADDED
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -25,14 +25,6 @@ If no custom handler are added for `onPaymentError`, `onPaymentAuthorized` and `
|
|
|
25
25
|
npm install @dintero/checkout-web-sdk
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
**unpkg**
|
|
29
|
-
|
|
30
|
-
Load the Dintero Checkout SDK in a script tag on your site.
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
<script src="https://unpkg.com/@dintero/checkout-web-sdk@0.0.16/dist/dintero-checkout-web-sdk.umd.min.js" integrity="sha384-wSx8c2gSK0ipbhUEBTagUYLolGfrRERsuoyLDq92oWvrhFqnujApIeJ7+z6nvOfl"></script>
|
|
34
|
-
```
|
|
35
|
-
|
|
36
28
|
## Using the SDK for an embedded checkout
|
|
37
29
|
|
|
38
30
|
The Dintero Checkout will be added to the `<div id="checkout-container"></div>` DOM-node.
|
|
@@ -81,12 +73,23 @@ _The checkout sdk will add a polyfill for promises if the browser does not suppo
|
|
|
81
73
|
console.log("href", event.href);
|
|
82
74
|
checkout.destroy();
|
|
83
75
|
},
|
|
84
|
-
onSessionLocked: function(event, checkout) {
|
|
76
|
+
onSessionLocked: function(event, checkout, callback) {
|
|
85
77
|
console.log("pay_lock_id", event.pay_lock_id);
|
|
78
|
+
callback(); // refresh session
|
|
86
79
|
},
|
|
87
80
|
onSessionLockFailed: function(event, checkout) {
|
|
88
81
|
console.log("session lock failed");
|
|
89
82
|
},
|
|
83
|
+
onActivePaymentType: function(event, checkout) {
|
|
84
|
+
console.log("payment product type selected", event.payment_product_type);
|
|
85
|
+
},
|
|
86
|
+
onValidateSession: function(event, checkout, callback) {
|
|
87
|
+
console.log("validating session", event.session);
|
|
88
|
+
callback({
|
|
89
|
+
success: true,
|
|
90
|
+
clientValidationError: undefined,
|
|
91
|
+
});
|
|
92
|
+
},
|
|
90
93
|
})
|
|
91
94
|
.then(function(checkout) {
|
|
92
95
|
console.log("checkout", checkout);
|
|
@@ -128,15 +131,40 @@ const checkout = await embed({
|
|
|
128
131
|
console.log("href", event.href);
|
|
129
132
|
checkout.destroy();
|
|
130
133
|
},
|
|
131
|
-
onSessionLocked: (event, checkout) => {
|
|
134
|
+
onSessionLocked: (event, checkout, callback) => {
|
|
132
135
|
console.log("pay_lock_id", event.pay_lock_id);
|
|
136
|
+
callback(); // refresh session
|
|
133
137
|
},
|
|
134
138
|
onSessionLockFailed: (event, checkout) => {
|
|
135
139
|
console.log("session lock failed");
|
|
136
140
|
},
|
|
141
|
+
onActivePaymentType: function(event, checkout) {
|
|
142
|
+
console.log("payment product type selected", event.payment_product_type);
|
|
143
|
+
},
|
|
144
|
+
onValidateSession: function(event, checkout, callback) {
|
|
145
|
+
console.log("validating session", event.session);
|
|
146
|
+
callback({
|
|
147
|
+
success: true,
|
|
148
|
+
clientValidationError: undefined,
|
|
149
|
+
});
|
|
150
|
+
},
|
|
137
151
|
});
|
|
138
152
|
```
|
|
139
153
|
|
|
154
|
+
### Setting payment product type
|
|
155
|
+
|
|
156
|
+
The payment product type can be set with the returned `setActivePaymentProductType()`function when embedding the checkout.
|
|
157
|
+
|
|
158
|
+
Select "vipps" payment product type:
|
|
159
|
+
```
|
|
160
|
+
checkout.setActivePaymentProductType("vipps");
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Resetting selection (so no option is selected in the checkout):
|
|
164
|
+
```
|
|
165
|
+
checkout.setActivePaymentProductType();
|
|
166
|
+
```
|
|
167
|
+
|
|
140
168
|
### Updating an Checkout Express-session
|
|
141
169
|
|
|
142
170
|
To update an existing Checkout Express-session, follow these steps:
|
|
@@ -170,8 +198,52 @@ After updating the session, call refreshSession on the checkout object:
|
|
|
170
198
|
checkout.refreshSession();
|
|
171
199
|
```
|
|
172
200
|
|
|
201
|
+
or use the callback in `onSessionLocked`:
|
|
202
|
+
|
|
203
|
+
```js
|
|
204
|
+
onSessionLocked: (event, checkout, callback) => {
|
|
205
|
+
console.log("pay_lock_id", event.pay_lock_id);
|
|
206
|
+
callback(); // refresh session
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
173
210
|
Editing and paying in the checkout is enabled again.
|
|
174
211
|
|
|
212
|
+
### Validating session before payment
|
|
213
|
+
|
|
214
|
+
To validate the session and perform actions before the session is paid, use the `onSessionValidation`-handler.
|
|
215
|
+
|
|
216
|
+
The checkout will be locked and payment will be paused until the provided callback function is called, or `checkout.submitValidationResult` is called with the result.
|
|
217
|
+
|
|
218
|
+
When validated successfully, return a successful result:
|
|
219
|
+
|
|
220
|
+
```js
|
|
221
|
+
{
|
|
222
|
+
success: true
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
If the validation is not successful, return the result with an error message:
|
|
227
|
+
|
|
228
|
+
```js
|
|
229
|
+
{
|
|
230
|
+
success: false,
|
|
231
|
+
clientValidationError: "session is not in sync with cart"
|
|
232
|
+
}
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Example implementation:
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
onValidateSession: function(event, checkout, callback) {
|
|
239
|
+
// Call the ecommerce solution to make sure the session is sync with the cart
|
|
240
|
+
callback({
|
|
241
|
+
success: false,
|
|
242
|
+
clientValidationError: "session is not in sync with cart",
|
|
243
|
+
});
|
|
244
|
+
},
|
|
245
|
+
```
|
|
246
|
+
|
|
175
247
|
## Using the SDK for a redirect checkout
|
|
176
248
|
|
|
177
249
|
The user is redirected to the Dintero Checkout to complete payment.
|
|
@@ -207,11 +279,7 @@ npm run build
|
|
|
207
279
|
|
|
208
280
|
The Dintero Checkout SDK is built with [microbundle](https://github.com/developit/microbundle).
|
|
209
281
|
|
|
210
|
-
## Creating a new release
|
|
282
|
+
## Creating a new release
|
|
211
283
|
|
|
212
|
-
1.
|
|
213
|
-
2.
|
|
214
|
-
3. Update README.md with new version/sha
|
|
215
|
-
4. Publish new version to npm with `npm publish --access=public`.
|
|
216
|
-
5. Tag and create release in Github
|
|
217
|
-
`git tag "v$(jq .version -r < package.json)"`
|
|
284
|
+
1. Enforce all commits to the master branch to be formatted according to the [Angular Commit Message Format](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-format)
|
|
285
|
+
2. When merged to master, it will automatically be released with [semantic-release](https://github.com/semantic-release/semantic-release)
|
|
File without changes
|
|
File without changes
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>15/15</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>15/15</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -135,7 +135,30 @@
|
|
|
135
135
|
<a name='L76'></a><a href='#L76'>76</a>
|
|
136
136
|
<a name='L77'></a><a href='#L77'>77</a>
|
|
137
137
|
<a name='L78'></a><a href='#L78'>78</a>
|
|
138
|
-
<a name='L79'></a><a href='#L79'>79</a
|
|
138
|
+
<a name='L79'></a><a href='#L79'>79</a>
|
|
139
|
+
<a name='L80'></a><a href='#L80'>80</a>
|
|
140
|
+
<a name='L81'></a><a href='#L81'>81</a>
|
|
141
|
+
<a name='L82'></a><a href='#L82'>82</a>
|
|
142
|
+
<a name='L83'></a><a href='#L83'>83</a>
|
|
143
|
+
<a name='L84'></a><a href='#L84'>84</a>
|
|
144
|
+
<a name='L85'></a><a href='#L85'>85</a>
|
|
145
|
+
<a name='L86'></a><a href='#L86'>86</a>
|
|
146
|
+
<a name='L87'></a><a href='#L87'>87</a>
|
|
147
|
+
<a name='L88'></a><a href='#L88'>88</a>
|
|
148
|
+
<a name='L89'></a><a href='#L89'>89</a>
|
|
149
|
+
<a name='L90'></a><a href='#L90'>90</a>
|
|
150
|
+
<a name='L91'></a><a href='#L91'>91</a>
|
|
151
|
+
<a name='L92'></a><a href='#L92'>92</a>
|
|
152
|
+
<a name='L93'></a><a href='#L93'>93</a>
|
|
153
|
+
<a name='L94'></a><a href='#L94'>94</a>
|
|
154
|
+
<a name='L95'></a><a href='#L95'>95</a>
|
|
155
|
+
<a name='L96'></a><a href='#L96'>96</a>
|
|
156
|
+
<a name='L97'></a><a href='#L97'>97</a>
|
|
157
|
+
<a name='L98'></a><a href='#L98'>98</a>
|
|
158
|
+
<a name='L99'></a><a href='#L99'>99</a>
|
|
159
|
+
<a name='L100'></a><a href='#L100'>100</a>
|
|
160
|
+
<a name='L101'></a><a href='#L101'>101</a>
|
|
161
|
+
<a name='L102'></a><a href='#L102'>102</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
139
162
|
<span class="cline-any cline-neutral"> </span>
|
|
140
163
|
<span class="cline-any cline-yes">1x</span>
|
|
141
164
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -147,6 +170,8 @@
|
|
|
147
170
|
<span class="cline-any cline-yes">1x</span>
|
|
148
171
|
<span class="cline-any cline-yes">1x</span>
|
|
149
172
|
<span class="cline-any cline-yes">1x</span>
|
|
173
|
+
<span class="cline-any cline-yes">1x</span>
|
|
174
|
+
<span class="cline-any cline-yes">1x</span>
|
|
150
175
|
<span class="cline-any cline-neutral"> </span>
|
|
151
176
|
<span class="cline-any cline-yes">1x</span>
|
|
152
177
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -213,6 +238,27 @@
|
|
|
213
238
|
<span class="cline-any cline-neutral"> </span>
|
|
214
239
|
<span class="cline-any cline-neutral"> </span>
|
|
215
240
|
<span class="cline-any cline-neutral"> </span>
|
|
241
|
+
<span class="cline-any cline-neutral"> </span>
|
|
242
|
+
<span class="cline-any cline-neutral"> </span>
|
|
243
|
+
<span class="cline-any cline-neutral"> </span>
|
|
244
|
+
<span class="cline-any cline-neutral"> </span>
|
|
245
|
+
<span class="cline-any cline-neutral"> </span>
|
|
246
|
+
<span class="cline-any cline-neutral"> </span>
|
|
247
|
+
<span class="cline-any cline-neutral"> </span>
|
|
248
|
+
<span class="cline-any cline-neutral"> </span>
|
|
249
|
+
<span class="cline-any cline-neutral"> </span>
|
|
250
|
+
<span class="cline-any cline-neutral"> </span>
|
|
251
|
+
<span class="cline-any cline-neutral"> </span>
|
|
252
|
+
<span class="cline-any cline-neutral"> </span>
|
|
253
|
+
<span class="cline-any cline-neutral"> </span>
|
|
254
|
+
<span class="cline-any cline-neutral"> </span>
|
|
255
|
+
<span class="cline-any cline-neutral"> </span>
|
|
256
|
+
<span class="cline-any cline-neutral"> </span>
|
|
257
|
+
<span class="cline-any cline-neutral"> </span>
|
|
258
|
+
<span class="cline-any cline-neutral"> </span>
|
|
259
|
+
<span class="cline-any cline-neutral"> </span>
|
|
260
|
+
<span class="cline-any cline-neutral"> </span>
|
|
261
|
+
<span class="cline-any cline-neutral"> </span>
|
|
216
262
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { Session } from "./session";
|
|
217
263
|
|
|
218
264
|
export enum CheckoutEvents {
|
|
@@ -225,6 +271,8 @@ export enum CheckoutEvents {
|
|
|
225
271
|
SessionPaymentError = "SessionPaymentError",
|
|
226
272
|
SessionLocked = "SessionLocked",
|
|
227
273
|
SessionLockFailed = "SessionLockFailed",
|
|
274
|
+
ActivePaymentProductType = "ActivePaymentProductType",
|
|
275
|
+
ValidateSession = "ValidateSession",
|
|
228
276
|
}
|
|
229
277
|
export enum InternalCheckoutEvents {
|
|
230
278
|
HeightChanged = "HeightChanged",
|
|
@@ -267,11 +315,30 @@ export type SessionPaymentAuthorized = {
|
|
|
267
315
|
export type SessionLocked = {
|
|
268
316
|
type: CheckoutEvents.SessionLocked;
|
|
269
317
|
pay_lock_id: string;
|
|
318
|
+
callback: () => void;
|
|
270
319
|
};
|
|
271
320
|
|
|
272
321
|
export type SessionLockFailed = {
|
|
273
322
|
type: CheckoutEvents.SessionLockFailed;
|
|
274
323
|
};
|
|
324
|
+
export type ActivePaymentProductType = {
|
|
325
|
+
type: CheckoutEvents.ActivePaymentProductType;
|
|
326
|
+
payment_product_type: string | undefined;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
export type ValidateSession = {
|
|
330
|
+
type: CheckoutEvents.ValidateSession;
|
|
331
|
+
session: Session;
|
|
332
|
+
callback: (result: SessionValidationCallback) => void;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
export interface SessionValidationCallback {
|
|
336
|
+
success: boolean;
|
|
337
|
+
clientValidationError?: string;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export type WrappedValidateSession = Pick<ValidateSession, "type" | "session">;
|
|
341
|
+
export type WrappedSessionLocked = Pick<SessionLocked, "type" | "pay_lock_id">;
|
|
275
342
|
|
|
276
343
|
export type SessionPayment = SessionPaymentAuthorized | SessionPaymentOnHold;
|
|
277
344
|
|
|
@@ -289,8 +356,10 @@ export type SessionEvent =
|
|
|
289
356
|
| SessionPaymentOnHold
|
|
290
357
|
| SessionPaymentAuthorized
|
|
291
358
|
| SessionPaymentError
|
|
292
|
-
|
|
|
293
|
-
| SessionLockFailed
|
|
359
|
+
| WrappedSessionLocked
|
|
360
|
+
| SessionLockFailed
|
|
361
|
+
| ActivePaymentProductType
|
|
362
|
+
| WrappedValidateSession;
|
|
294
363
|
</pre></td></tr></table></pre>
|
|
295
364
|
|
|
296
365
|
<div class='push'></div><!-- for sticky footer -->
|
|
@@ -298,7 +367,7 @@ export type SessionEvent =
|
|
|
298
367
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
299
368
|
Code coverage generated by
|
|
300
369
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
301
|
-
at
|
|
370
|
+
at Wed Feb 16 2022 09:14:07 GMT+0000 (Coordinated Universal Time)
|
|
302
371
|
</div>
|
|
303
372
|
</div>
|
|
304
373
|
<script src="prettify.js"></script>
|
|
@@ -126,15 +126,15 @@
|
|
|
126
126
|
<span class="cline-any cline-neutral"> </span>
|
|
127
127
|
<span class="cline-any cline-neutral"> </span>
|
|
128
128
|
<span class="cline-any cline-neutral"> </span>
|
|
129
|
-
<span class="cline-any cline-yes">
|
|
129
|
+
<span class="cline-any cline-yes">26x</span>
|
|
130
130
|
<span class="cline-any cline-no"> </span>
|
|
131
131
|
<span class="cline-any cline-neutral"> </span>
|
|
132
|
-
<span class="cline-any cline-yes">
|
|
132
|
+
<span class="cline-any cline-yes">26x</span>
|
|
133
133
|
<span class="cline-any cline-neutral"> </span>
|
|
134
134
|
<span class="cline-any cline-neutral"> </span>
|
|
135
|
-
<span class="cline-any cline-yes">
|
|
136
|
-
<span class="cline-any cline-yes">
|
|
137
|
-
<span class="cline-any cline-yes">
|
|
135
|
+
<span class="cline-any cline-yes">26x</span>
|
|
136
|
+
<span class="cline-any cline-yes">26x</span>
|
|
137
|
+
<span class="cline-any cline-yes">26x</span>
|
|
138
138
|
<span class="cline-any cline-neutral"> </span>
|
|
139
139
|
<span class="cline-any cline-neutral"> </span>
|
|
140
140
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -147,28 +147,28 @@
|
|
|
147
147
|
<span class="cline-any cline-neutral"> </span>
|
|
148
148
|
<span class="cline-any cline-neutral"> </span>
|
|
149
149
|
<span class="cline-any cline-neutral"> </span>
|
|
150
|
-
<span class="cline-any cline-yes">
|
|
150
|
+
<span class="cline-any cline-yes">26x</span>
|
|
151
151
|
<span class="cline-any cline-neutral"> </span>
|
|
152
152
|
<span class="cline-any cline-neutral"> </span>
|
|
153
153
|
<span class="cline-any cline-neutral"> </span>
|
|
154
154
|
<span class="cline-any cline-neutral"> </span>
|
|
155
155
|
<span class="cline-any cline-neutral"> </span>
|
|
156
|
-
<span class="cline-any cline-yes">
|
|
156
|
+
<span class="cline-any cline-yes">26x</span>
|
|
157
157
|
<span class="cline-any cline-neutral"> </span>
|
|
158
158
|
<span class="cline-any cline-neutral"> </span>
|
|
159
|
-
<span class="cline-any cline-yes">
|
|
159
|
+
<span class="cline-any cline-yes">26x</span>
|
|
160
160
|
<span class="cline-any cline-neutral"> </span>
|
|
161
161
|
<span class="cline-any cline-neutral"> </span>
|
|
162
162
|
<span class="cline-any cline-neutral"> </span>
|
|
163
163
|
<span class="cline-any cline-neutral"> </span>
|
|
164
164
|
<span class="cline-any cline-neutral"> </span>
|
|
165
|
-
<span class="cline-any cline-yes">
|
|
165
|
+
<span class="cline-any cline-yes">26x</span>
|
|
166
166
|
<span class="cline-any cline-neutral"> </span>
|
|
167
|
-
<span class="cline-any cline-yes">
|
|
168
|
-
<span class="cline-any cline-yes">
|
|
169
|
-
<span class="cline-any cline-yes">
|
|
170
|
-
<span class="cline-any cline-yes">
|
|
171
|
-
<span class="cline-any cline-yes">
|
|
167
|
+
<span class="cline-any cline-yes">26x</span>
|
|
168
|
+
<span class="cline-any cline-yes">26x</span>
|
|
169
|
+
<span class="cline-any cline-yes">31x</span>
|
|
170
|
+
<span class="cline-any cline-yes">26x</span>
|
|
171
|
+
<span class="cline-any cline-yes">26x</span>
|
|
172
172
|
<span class="cline-any cline-neutral"> </span>
|
|
173
173
|
<span class="cline-any cline-neutral"> </span>
|
|
174
174
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -238,7 +238,7 @@ export const createIframeAsync = (
|
|
|
238
238
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
239
239
|
Code coverage generated by
|
|
240
240
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
241
|
-
at
|
|
241
|
+
at Wed Feb 16 2022 09:14:07 GMT+0000 (Coordinated Universal Time)
|
|
242
242
|
</div>
|
|
243
243
|
</div>
|
|
244
244
|
<script src="prettify.js"></script>
|
|
File without changes
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">89.74% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>140/156</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">73.75% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>59/80</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">73.68% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>28/38</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">88.97% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>121/136</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
|
|
79
79
|
</td>
|
|
80
80
|
<td data-value="100" class="pct high">100%</td>
|
|
81
|
-
<td data-value="
|
|
81
|
+
<td data-value="15" class="abs high">15/15</td>
|
|
82
82
|
<td data-value="100" class="pct high">100%</td>
|
|
83
83
|
<td data-value="4" class="abs high">4/4</td>
|
|
84
84
|
<td data-value="100" class="pct high">100%</td>
|
|
85
85
|
<td data-value="2" class="abs high">2/2</td>
|
|
86
86
|
<td data-value="100" class="pct high">100%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="15" class="abs high">15/15</td>
|
|
88
88
|
</tr>
|
|
89
89
|
|
|
90
90
|
<tr>
|
|
@@ -104,47 +104,47 @@
|
|
|
104
104
|
|
|
105
105
|
<tr>
|
|
106
106
|
<td class="file high" data-value="index.ts"><a href="index.ts.html">index.ts</a></td>
|
|
107
|
-
<td data-value="
|
|
108
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
107
|
+
<td data-value="94.44" class="pic high">
|
|
108
|
+
<div class="chart"><div class="cover-fill" style="width: 94%"></div><div class="cover-empty" style="width: 6%"></div></div>
|
|
109
109
|
</td>
|
|
110
|
-
<td data-value="
|
|
111
|
-
<td data-value="
|
|
112
|
-
<td data-value="
|
|
113
|
-
<td data-value="
|
|
114
|
-
<td data-value="
|
|
115
|
-
<td data-value="
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="
|
|
110
|
+
<td data-value="94.44" class="pct high">94.44%</td>
|
|
111
|
+
<td data-value="72" class="abs high">68/72</td>
|
|
112
|
+
<td data-value="81.58" class="pct high">81.58%</td>
|
|
113
|
+
<td data-value="38" class="abs high">31/38</td>
|
|
114
|
+
<td data-value="80" class="pct high">80%</td>
|
|
115
|
+
<td data-value="20" class="abs high">16/20</td>
|
|
116
|
+
<td data-value="93.65" class="pct high">93.65%</td>
|
|
117
|
+
<td data-value="63" class="abs high">59/63</td>
|
|
118
118
|
</tr>
|
|
119
119
|
|
|
120
120
|
<tr>
|
|
121
|
-
<td class="file
|
|
122
|
-
<td data-value="
|
|
123
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
121
|
+
<td class="file medium" data-value="subscribe.ts"><a href="subscribe.ts.html">subscribe.ts</a></td>
|
|
122
|
+
<td data-value="76.47" class="pic medium">
|
|
123
|
+
<div class="chart"><div class="cover-fill" style="width: 76%"></div><div class="cover-empty" style="width: 24%"></div></div>
|
|
124
124
|
</td>
|
|
125
|
-
<td data-value="
|
|
126
|
-
<td data-value="
|
|
127
|
-
<td data-value="
|
|
128
|
-
<td data-value="
|
|
129
|
-
<td data-value="
|
|
130
|
-
<td data-value="
|
|
131
|
-
<td data-value="
|
|
132
|
-
<td data-value="
|
|
125
|
+
<td data-value="76.47" class="pct medium">76.47%</td>
|
|
126
|
+
<td data-value="34" class="abs medium">26/34</td>
|
|
127
|
+
<td data-value="62.5" class="pct medium">62.5%</td>
|
|
128
|
+
<td data-value="24" class="abs medium">15/24</td>
|
|
129
|
+
<td data-value="50" class="pct medium">50%</td>
|
|
130
|
+
<td data-value="8" class="abs medium">4/8</td>
|
|
131
|
+
<td data-value="72.41" class="pct medium">72.41%</td>
|
|
132
|
+
<td data-value="29" class="abs medium">21/29</td>
|
|
133
133
|
</tr>
|
|
134
134
|
|
|
135
135
|
<tr>
|
|
136
136
|
<td class="file high" data-value="url.ts"><a href="url.ts.html">url.ts</a></td>
|
|
137
|
-
<td data-value="
|
|
138
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
137
|
+
<td data-value="87.5" class="pic high">
|
|
138
|
+
<div class="chart"><div class="cover-fill" style="width: 87%"></div><div class="cover-empty" style="width: 13%"></div></div>
|
|
139
139
|
</td>
|
|
140
|
-
<td data-value="
|
|
141
|
-
<td data-value="
|
|
142
|
-
<td data-value="
|
|
143
|
-
<td data-value="
|
|
140
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
|
141
|
+
<td data-value="16" class="abs high">14/16</td>
|
|
142
|
+
<td data-value="60" class="pct medium">60%</td>
|
|
143
|
+
<td data-value="10" class="abs medium">6/10</td>
|
|
144
144
|
<td data-value="66.67" class="pct medium">66.67%</td>
|
|
145
145
|
<td data-value="3" class="abs medium">2/3</td>
|
|
146
|
-
<td data-value="
|
|
147
|
-
<td data-value="
|
|
146
|
+
<td data-value="84.62" class="pct high">84.62%</td>
|
|
147
|
+
<td data-value="13" class="abs high">11/13</td>
|
|
148
148
|
</tr>
|
|
149
149
|
|
|
150
150
|
</tbody>
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
156
156
|
Code coverage generated by
|
|
157
157
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
158
|
-
at
|
|
158
|
+
at Wed Feb 16 2022 09:14:07 GMT+0000 (Coordinated Universal Time)
|
|
159
159
|
</div>
|
|
160
160
|
</div>
|
|
161
161
|
<script src="prettify.js"></script>
|