Socket
Socket
Sign inDemoInstall

svelte-session-manager

Package Overview
Dependencies
1
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.10 to 2.0.11

77

package.json
{
"name": "svelte-session-manager",
"version": "2.0.10",
"version": "2.0.11",
"publishConfig": {

@@ -12,4 +12,6 @@ "access": "public"

"component",
"log",
"session",
"svelte",
"vite",
"web"

@@ -25,30 +27,33 @@ ],

"scripts": {
"start": "rollup -c tests/app/rollup.config.mjs -w",
"prepare": "vite build",
"start": "vite",
"test": "npm run test:ava && npm run test:cafe",
"test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 9000 --app-init-delay 3000 --app \"rollup -c tests/app/rollup.config.mjs -w\"",
"test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 3000 --app-init-delay 3000 --app \"vite preview\"",
"test:ava": "ava --timeout 2m tests/*.mjs",
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
"docs": "documentation readme --section=API ./src/**/*.mjs",
"lint": "documentation lint ./src/index.mjs && npm run lint:docs",
"lint": "npm run lint:docs",
"lint:docs": "documentation lint ./src/**/*.mjs",
"build": "rollup -c tests/app/rollup.config.mjs"
"preview": "vite preview"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^13.0.5",
"@rollup/plugin-virtual": "^2.0.3",
"ava": "^3.15.0",
"c8": "^7.9.0",
"documentation": "^13.2.5",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/release-notes-generator": "^10.0.3",
"@sveltejs/vite-plugin-svelte": "^1.0.5",
"ava": "^4.3.3",
"c8": "^7.12.0",
"documentation": "^14.0.0",
"jsonwebtoken": "^8.5.1",
"mf-styling": "arlac77/mf-styling",
"postcss": "^8.3.8",
"postcss-import": "^14.0.2",
"rollup": "^2.57.0",
"rollup-plugin-dev": "^1.1.3",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-svelte": "^7.1.0",
"semantic-release": "^18.0.0",
"svelte": "^3.43.1",
"testcafe": "^1.16.0"
"mf-styling": "^1.7.14",
"npm-pkgbuild": "^10.14.8",
"reader-line-iterator": "^1.1.5",
"semantic-release": "^19.0.5",
"svelte": "^3.50.0",
"testcafe": "^2.0.0",
"vite": "^3.1.0"
},
"optionalDependencies": {
"mf-hosting": "^1.7.3"
},
"repository": {

@@ -62,14 +67,30 @@ "type": "git",

"homepage": "https://github.com/arlac77/svelte-session-manager#readme",
"pkgbuild": {
"content": {
"${install.dir}": "build/",
"${nginx.sites.dir}${name}.conf": "pkg/nginx.conf"
},
"groups": "examples",
"description": "example showing ${name} features in action"
},
"release": {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
[
"@semantic-release/exec",
{
"publishCmd": "npx npm-pkgbuild --available --continue --verbose"
}
],
"@semantic-release/github"
]
},
"template": {
"properties": {
"netlifly": {
"site": {
"uuid": "57021a61-08a4-441d-a216-31d0167fff02"
}
}
},
"inheritFrom": [
"arlac77/template-arlac77-github",
"arlac77/template-ava-coverage",
"arlac77/template-netlify",
"arlac77/template-cloudflare",
"arlac77/template-pacman",
"arlac77/template-svelte-component"

@@ -76,0 +97,0 @@ ]

[![Svelte v3](https://img.shields.io/badge/svelte-v3-orange.svg)](https://svelte.dev)
[![npm](https://img.shields.io/npm/v/svelte-session-manager.svg)](https://www.npmjs.com/package/svelte-session-manager)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![minified size](https://badgen.net/bundlephobia/min/svelte-session-manager)](https://bundlephobia.com/result?p=svelte-session-manager)
[![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=svelte-session-manager)
[![downloads](http://img.shields.io/npm/dm/svelte-session-manager.svg?style=flat-square)](https://npmjs.org/package/svelte-session-manager)

@@ -13,3 +13,2 @@ [![GitHub Issues](https://img.shields.io/github/issues/arlac77/svelte-session-manager.svg?style=flat-square)](https://github.com/arlac77/svelte-session-manager/issues)

[![Tested with TestCafe](https://img.shields.io/badge/tested%20with-TestCafe-2fa4cf.svg)](https://github.com/DevExpress/testcafe)
[![Netlify Status](https://api.netlify.com/api/v1/badges/57021a61-08a4-441d-a216-31d0167fff02/deploy-status)](https://app.netlify.com/sites/svelte-session-manager/deploys)

@@ -83,3 +82,3 @@ # svelte-session-manager

[live example](https://svelte-session-manager.netlify.app/tests/app/)
[live example](https://svelte-session-manager.pages.dev/)

@@ -118,3 +117,3 @@ # API

Bring session into the valid state by calling the authorization endpoint
and asking for a access_token.
and asking for a access\_token.
Executes a POST on the endpoint url expecting username, and password as json

@@ -138,5 +137,5 @@

* `response` **FetchResponse**
* `response` **FetchResponse** 
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 

@@ -179,7 +178,7 @@ ## SessionData

* `store` (optional, default `localStorage`)
* `data` **[SessionData](#sessiondata)**
* `data` **[SessionData](#sessiondata)** 
### Properties
* `entitlements` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
* `entitlements` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
* `subscriptions` **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)>** store subscriptions

@@ -192,11 +191,11 @@ * `expirationDate` **[Date](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date)** when the access token expires

Consume data and reflect internal state.
Consume auth response data and reflect internal state.
#### Parameters
* `data` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
* `data` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
### refresh
Refresh with refresh_token.
Refresh with refresh\_token.

@@ -239,3 +238,3 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if refresh was succcessfull false otherwise

* `subscription` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)**
* `subscription` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)**&#x20;

@@ -248,3 +247,3 @@ ## decode

* `token` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
* `token` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;

@@ -251,0 +250,0 @@ Returns **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** payload object

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc