New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/idle

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/idle - npm Package Compare versions

Comparing version 0.0.102 to 0.0.103

6

dist/dev.js

@@ -45,3 +45,3 @@ import { createSignal, onMount, onCleanup, batch } from 'solid-js';

if (isIdle())
onActive == null ? void 0 : onActive(evt);
onActive?.(evt);
if (!isPrompted())

@@ -75,3 +75,3 @@ timerReset(evt);

setIsPrompted(true);
onPrompt == null ? void 0 : onPrompt(evt);
onPrompt?.(evt);
setPromptTimer(evt);

@@ -86,3 +86,3 @@ }, idleTimeout);

});
onIdle == null ? void 0 : onIdle(evt);
onIdle?.(evt);
}, promptTimeout);

@@ -89,0 +89,0 @@ }

import { Accessor } from 'solid-js';
declare type EventTypeName = keyof HTMLElementEventMap | keyof DocumentEventMap;
type EventTypeName = keyof HTMLElementEventMap | keyof DocumentEventMap;
interface IdleTimerOptions {

@@ -5,0 +5,0 @@ events?: EventTypeName[];

@@ -45,3 +45,3 @@ import { createSignal, onMount, onCleanup, batch } from 'solid-js';

if (isIdle())
onActive == null ? void 0 : onActive(evt);
onActive?.(evt);
if (!isPrompted())

@@ -75,3 +75,3 @@ timerReset(evt);

setIsPrompted(true);
onPrompt == null ? void 0 : onPrompt(evt);
onPrompt?.(evt);
setPromptTimer(evt);

@@ -86,3 +86,3 @@ }, idleTimeout);

});
onIdle == null ? void 0 : onIdle(evt);
onIdle?.(evt);
}, promptTimeout);

@@ -89,0 +89,0 @@ }

{
"name": "@solid-primitives/idle",
"version": "0.0.102",
"version": "0.0.103",
"description": "A primitive to observe the user's idle status and react to its changes.",

@@ -33,4 +33,4 @@ "author": "Aylo Srd <aylo.srd@gmail.com>",

"browser": {
"./dist/server.cjs": "./dist/index.cjs",
"./dist/server.js": "./dist/index.js"
"./dist/server.js": "./dist/index.js",
"./dist/server.cjs": "./dist/index.cjs"
},

@@ -40,3 +40,6 @@ "types": "./dist/index.d.ts",

"worker": {
"import": "./dist/server.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"

@@ -46,21 +49,39 @@ },

"development": {
"import": "./dist/dev.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/dev.js"
},
"require": "./dist/dev.cjs"
},
"import": "./dist/index.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": "./dist/index.cjs"
},
"deno": {
"import": "./dist/server.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"node": {
"import": "./dist/server.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/server.js"
},
"require": "./dist/server.cjs"
},
"development": {
"import": "./dist/dev.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/dev.js"
},
"require": "./dist/dev.cjs"
},
"import": "./dist/index.js",
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": "./dist/index.cjs"

@@ -75,19 +96,10 @@ },

],
"devDependencies": {
"jsdom": "^20.0.0",
"prettier": "^2.7.1",
"solid-js": "^1.5.0",
"tslib": "^2.4.0",
"tsup": "^6.2.3",
"unocss": "^0.45.15",
"vite": "^3.0.9",
"vite-plugin-solid": "^2.3.0",
"vitest": "^0.23.0"
},
"peerDependencies": {
"solid-js": "^1.5.0"
"solid-js": "^1.6.0"
},
"typesVersions": {},
"scripts": {
"start": "vite serve dev --host",
"dev": "npm run start",
"dev": "vite serve dev",
"page": "vite build dev",
"build": "jiti ../../scripts/build.ts --ssr --dev",

@@ -94,0 +106,0 @@ "test": "vitest -c ../../configs/vitest.config.ts",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc