diff --git a/LICENSE.md b/LICENSE.md index 56e7098c..37fc899a 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2018 Schibsted Products & Technology AS +Copyright (c) 2024 Schibsted Products & Technology AS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, diff --git a/NOTICE b/NOTICE index 73ec657f..84b5c5ba 100644 --- a/NOTICE +++ b/NOTICE @@ -1,7 +1,7 @@ ######################################################### # # # Schibsted account SDK for browsers # -# Copyright (c) 2018 Schibsted Products & Technology AS # +# Copyright (c) 2024 Schibsted Products & Technology AS # # # ######################################################### @@ -16,4 +16,3 @@ fetch-jsonp tiny-emitter LICENSE: MIT, https://github.com/scottcorgan/tiny-emitter/blob/master/LICENSE - diff --git a/README.md b/README.md index 620ebba8..ed6290e9 100644 --- a/README.md +++ b/README.md @@ -308,7 +308,7 @@ and push. ## LICENSE -Copyright (c) 2018 Schibsted Products & Technology AS +Copyright (c) 2024 Schibsted Products & Technology AS Licensed under the [MIT License](https://github.com/schibsted/account-sdk-browser/blob/master/LICENSE.md) diff --git a/__tests__/RESTClient.intest.js b/__tests__/RESTClient.intest.js index f268b183..3b8b9776 100644 --- a/__tests__/RESTClient.intest.js +++ b/__tests__/RESTClient.intest.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/RESTClient.utest.js b/__tests__/RESTClient.utest.js index e6ebfe9d..096417a1 100644 --- a/__tests__/RESTClient.utest.js +++ b/__tests__/RESTClient.utest.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/SDKError.js b/__tests__/SDKError.js index c6611141..02977160 100644 --- a/__tests__/SDKError.js +++ b/__tests__/SDKError.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/cache.js b/__tests__/cache.js index 6a9ba886..ee02fac3 100644 --- a/__tests__/cache.js +++ b/__tests__/cache.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/identity.js b/__tests__/identity.js index e23c2279..ed911584 100644 --- a/__tests__/identity.js +++ b/__tests__/identity.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ @@ -462,8 +462,11 @@ describe('Identity', () => { await expect(identity.hasSession()).rejects.toMatchObject({ message: 'HasSession failed' }); - expect(identity._sessionService.fetch.mock.calls.length).toBe(1); - expect(identity._sessionService.fetch.mock.calls[0][0]).toMatch(/^http:\/\/id.foo.com\/session/); + expect(getSessionMock).toHaveBeenCalledTimes(1) + expect(getSessionMock).toHaveBeenCalledWith( + expect.stringMatching(/^http:\/\/id\.foo\.com\/session/), + {"credentials": "include", "headers": {}, "method": "get"} + ) }); test('should fail `hasSession` if session cookie is present but no session is found and site does not have specific logout', async () => { diff --git a/__tests__/monetization.js b/__tests__/monetization.js index 30d06f83..3cc883a7 100644 --- a/__tests__/monetization.js +++ b/__tests__/monetization.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/object.utest.js b/__tests__/object.utest.js index 2e87e03e..56c834ce 100644 --- a/__tests__/object.utest.js +++ b/__tests__/object.utest.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/payment.js b/__tests__/payment.js index c75cfbe1..d3c29408 100644 --- a/__tests__/payment.js +++ b/__tests__/payment.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/spidTalk.js b/__tests__/spidTalk.js index 4539ce26..061fb07b 100644 --- a/__tests__/spidTalk.js +++ b/__tests__/spidTalk.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/testutils.utest.js b/__tests__/testutils.utest.js index 726bb957..eaffbed8 100644 --- a/__tests__/testutils.utest.js +++ b/__tests__/testutils.utest.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/url.utest.js b/__tests__/url.utest.js index 585c9d8a..9f7871e5 100644 --- a/__tests__/url.utest.js +++ b/__tests__/url.utest.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/utils.js b/__tests__/utils.js index 48638834..807942a7 100644 --- a/__tests__/utils.js +++ b/__tests__/utils.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/__tests__/validate.utest.js b/__tests__/validate.utest.js index 14a7738c..18add1ed 100644 --- a/__tests__/validate.utest.js +++ b/__tests__/validate.utest.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/identity.js b/identity.js index 6adbe56a..da0d1417 100644 --- a/identity.js +++ b/identity.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/index.js b/index.js index 36a7af25..a189d7b2 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/monetization.js b/monetization.js index bb61ee9f..7a013cef 100644 --- a/monetization.js +++ b/monetization.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/package-lock.json b/package-lock.json index e517c7ea..8e4e9e48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@schibsted/account-sdk-browser", - "version": "4.8.5", + "version": "4.8.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@schibsted/account-sdk-browser", - "version": "4.8.5", + "version": "4.8.6", "license": "MIT", "dependencies": { "tiny-emitter": "^2.1.0" diff --git a/package.json b/package.json index 0e36ac77..b996d693 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@schibsted/account-sdk-browser", - "version": "4.8.5", + "version": "4.8.6", "description": "Schibsted account SDK for browsers", "main": "index.js", "type": "module", diff --git a/payment.js b/payment.js index 65a8053d..63b28e15 100644 --- a/payment.js +++ b/payment.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/RESTClient.js b/src/RESTClient.js index 90d95702..418620aa 100644 --- a/src/RESTClient.js +++ b/src/RESTClient.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/SDKError.js b/src/SDKError.js index 2ab46c50..1bd70f67 100644 --- a/src/SDKError.js +++ b/src/SDKError.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/cache.js b/src/cache.js index 83abcf2c..e151ef07 100644 --- a/src/cache.js +++ b/src/cache.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/config.js b/src/config.js index a1dcf1b4..cfa0f62d 100644 --- a/src/config.js +++ b/src/config.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/es5/global.js b/src/es5/global.js index 7849f877..862cbc24 100644 --- a/src/es5/global.js +++ b/src/es5/global.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/es5/identity.js b/src/es5/identity.js index ee0b65b8..d4dd8f4f 100644 --- a/src/es5/identity.js +++ b/src/es5/identity.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/es5/index.js b/src/es5/index.js index c5f63e54..4fd3fb8b 100644 --- a/src/es5/index.js +++ b/src/es5/index.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/es5/monetization.js b/src/es5/monetization.js index 9bcc26e6..38668b42 100644 --- a/src/es5/monetization.js +++ b/src/es5/monetization.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/es5/payment.js b/src/es5/payment.js index fe026482..04ebff6d 100644 --- a/src/es5/payment.js +++ b/src/es5/payment.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/identity.js b/src/identity.js index 1041c20f..d642707c 100644 --- a/src/identity.js +++ b/src/identity.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/monetization.js b/src/monetization.js index 3a81d86f..24dbc082 100644 --- a/src/monetization.js +++ b/src/monetization.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/object.js b/src/object.js index c23a95b3..def5b8d5 100644 --- a/src/object.js +++ b/src/object.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/payment.js b/src/payment.js index ed87d04c..5cfed9fc 100644 --- a/src/payment.js +++ b/src/payment.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/popup.js b/src/popup.js index 037f3098..5c81de53 100644 --- a/src/popup.js +++ b/src/popup.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/spidTalk.js b/src/spidTalk.js index 7dc6e3ba..18f140ff 100644 --- a/src/spidTalk.js +++ b/src/spidTalk.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/url.js b/src/url.js index d6ef287e..2778aa07 100644 --- a/src/url.js +++ b/src/url.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/validate.js b/src/validate.js index 3723e4a9..045a0713 100644 --- a/src/validate.js +++ b/src/validate.js @@ -1,4 +1,4 @@ -/* Copyright 2018 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. +/* Copyright 2024 Schibsted Products & Technology AS. Licensed under the terms of the MIT license. * See LICENSE.md in the project root. */ diff --git a/src/version.js b/src/version.js index 70e76b58..dbbf6d4b 100644 --- a/src/version.js +++ b/src/version.js @@ -1,5 +1,5 @@ // Automatically generated in 'npm version' by scripts/genversion.js 'use strict' -const version = '4.8.5'; +const version = '4.8.6'; export default version;