@schibsted/account-sdk-browser 4.8.6-beta → 4.8.7-beta

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/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 Schibsted Products & Technology AS
1
+ Copyright (c) 2024 Schibsted Products & Technology AS
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
4
4
  associated documentation files (the "Software"), to deal in the Software without restriction,
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  [![logo](https://www.schibsted.com/Global/LogoTypes/Logos%202014/SMG_Small_2014_RGB.png)](https://github.com/schibsted/account-sdk-browser)
2
2
 
3
- [![Build Status](https://app.travis-ci.com/schibsted/account-sdk-browser.svg?branch=master)](https://app.travis-ci.com/schibsted/account-sdk-browser)
3
+ ![Build Status](https://github.com/schibsted/account-sdk-browser/actions/workflows/pr.yml/badge.svg)
4
4
  [![Code coverage](https://codecov.io/gh/schibsted/account-sdk-browser/branch/master/graph/badge.svg)](https://codecov.io/gh/schibsted/account-sdk-browser)
5
5
  [![Snyk](https://snyk.io/test/github/schibsted/account-sdk-browser/badge.svg?targetFile=package.json)](https://snyk.io/test/github/schibsted/account-sdk-browser)
6
6
 
@@ -17,22 +17,22 @@ This sdk mainly communicates with a service named Session Service, which is avai
17
17
  domains (i.e. id.vg.no) to avoid Third-Party Cookie request.
18
18
 
19
19
  Since browsers started to block Third-Party Cookies, your top domain from local machine needs to
20
- match your session service top domain. Otherwise session service cookie will be Third-Party Cookie,
21
- and will not be sent with XHR request.
20
+ match your Session Service top domain. Otherwise, the Session Service cookie will be a third-party cookie
21
+ and will not be sent with a XHR request.
22
22
 
23
- The same applies to cross scheme requests. The session service is hosted on https and therefore you need to [run your site with HTTPS locally](https://web.dev/how-to-use-local-https/).
23
+ The same applies to cross scheme requests. The Session Service is hosted on https and therefore you need to [run your site with HTTPS locally](https://web.dev/how-to-use-local-https/).
24
24
 
25
- For example if your `pre` domain is pre.sdk-example.com, and it uses id.pre.sdk-example.com session
26
- service domain, your local domain should be local.sdk-example.com.
25
+ For example if your `pre` domain is pre.sdk-example.com, and it uses id.pre.sdk-example.com Session Service
26
+ domain, your local domain should be local.sdk-example.com.
27
27
 
28
28
  1. Do `npm install --save @schibsted/account-sdk-browser`
29
29
  1. Use this library as you would any other npm module: `import { Identity, Monetization, Payment } from '@schibsted/account-sdk-browser'`
30
30
  With CommonJS it is possible to `require` the modules Identity, Monetization and Payment
31
- by appending `/identity`, `/monetization'` or `/payment'` at the end.
31
+ by appending `/identity`, `/monetization'` or `/payment'`.
32
32
  1. Build your site as you prefer. This library uses modern JavaScript syntax (including async/await
33
33
  and other ES2017 and WHATWG features) by default. We recommend that you do any transpilation
34
34
  yourself for the browser versions you need to cater to. See [this paragraph](#polyfills) for
35
- info about our babelified version and info about polyfills.
35
+ info about our Babel-ified version and info about polyfills.
36
36
  1. Initiate the SDK and provide at least `clientId`, `env` and `sessionDomain`.
37
37
 
38
38
  If this is for a new site and there is no sessionDomain yet, contact
@@ -194,7 +194,7 @@ will remove the Schibsted account brand session. User will still be logged into
194
194
 
195
195
  The preferred method for checking whether a user has access to a product/subscription is
196
196
  [Monetization#hasAccess](https://schibsted.github.io/account-sdk-browser/Monetization.html#hasAccess).
197
- It requires using session-service, and supports both Schibsted account productId's and Zuora
197
+ It requires using Session Service, and supports both Schibsted account productId's and Zuora
198
198
  feature id's.
199
199
 
200
200
  #### Example
@@ -247,7 +247,7 @@ paymentSDK.payWithPaylink(paylink)
247
247
  #### Polyfills
248
248
 
249
249
  This SDK uses modern JavaScript features. If you support older browsers, you should use a tool like
250
- babel to transform the JavaScript as needed. However since certain teams have deployment pipelines
250
+ babel to transform the JavaScript as needed. However, since certain teams have deployment pipelines
251
251
  where it's difficult to do their own transpilation, we do provide some opt-in es5 files as well:
252
252
 
253
253
  1. `@schibsted/account-sdk-browser/es5`: Include both `Identity`, `Monetization` and `Payment`.
@@ -303,12 +303,12 @@ Tags are pushed to NPM via Travis. To release a new version, run in master
303
303
  $ npm version <major|minor|patch>
304
304
  ```
305
305
 
306
- which will run the test, update version in package.json, commi, tag the commit
306
+ which will run the test, update version in package.json, commit, tag the commit
307
307
  and push.
308
308
 
309
309
  ## LICENSE
310
310
 
311
- Copyright (c) 2018 Schibsted Products & Technology AS
311
+ Copyright (c) 2024 Schibsted Products & Technology AS
312
312
 
313
313
  Licensed under the [MIT
314
314
  License](https://github.com/schibsted/account-sdk-browser/blob/master/LICENSE.md)