Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trap-focus-svelte

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trap-focus-svelte - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

138

package.json
{
"name": "trap-focus-svelte",
"version": "0.2.0",
"license": "MIT",
"description": "Small 0.4kB focus trap that supports stacking, toggling, and dynamic content. Compatible with any framework.",
"keywords": [
"focus",
"focus trap",
"focus lock",
"svelte"
],
"author": "Hank Dollman <hank@henrygd.me> (https://henrygd.me)",
"repository": {
"type": "git",
"url": "https://github.com/henrygd/trap-focus-svelte.git"
},
"bugs": {
"url": "https://github.com/henrygd/trap-focus-svelte/issues"
},
"homepage": "https://trap-focus-svelte.henrygd.me",
"type": "module",
"source": "index.ts",
"exports": {
".": {
"import": "./dist/trap-focus-svelte.svelte.js",
"require": "./dist/trap-focus-svelte.cjs",
"default": "./dist/trap-focus-svelte.svelte.js"
},
"./svelte": "./dist/trap-focus-svelte.svelte.js",
"./vanilla": "./dist/trap-focus-svelte.mjs"
},
"svelte": "./dist/trap-focus-svelte.svelte.js",
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"vanilla": [
"dist/index.d.ts"
],
"svelte": [
"dist/index.d.ts"
]
}
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.0.0",
"@sveltejs/vite-plugin-svelte": "^2.0.2",
"@tsconfig/svelte": "^3.0.0",
"hide-show-scroll": "^2.0.0",
"npm-run-all": "^4.1.5",
"rollup": "^3.14.0",
"rollup-plugin-modify": "^3.0.0",
"rollup-plugin-size": "^0.3.1",
"svelte": "^3.55.1",
"svelte-check": "^2.10.3",
"tslib": "^2.5.0",
"typescript": "^4.9.3",
"vite": "^4.1.0"
},
"scripts": {
"build": "run-p rollup-build generate-types",
"rollup-build": "rollup -c",
"generate-types": "tsc -p . --declaration --emitDeclarationOnly --outDir dist",
"dev": "vite demo",
"demo-build": "vite build demo",
"preview": "vite demo preview",
"check": "svelte-check --tsconfig ./tsconfig.json"
}
}
"name": "trap-focus-svelte",
"version": "1.0.0",
"license": "MIT",
"description": "Small 0.4kB focus trap that supports stacking, toggling, and dynamic content. Compatible with any framework.",
"keywords": [
"focus",
"focus trap",
"focus lock",
"svelte"
],
"author": "Hank Dollman <hank@henrygd.me> (https://henrygd.me)",
"repository": {
"type": "git",
"url": "https://github.com/henrygd/trap-focus-svelte.git"
},
"bugs": {
"url": "https://github.com/henrygd/trap-focus-svelte/issues"
},
"homepage": "https://trap-focus-svelte.henrygd.me",
"type": "module",
"source": "index.ts",
"exports": {
".": {
"import": "./dist/trap-focus-svelte.svelte.js",
"require": "./dist/trap-focus-svelte.cjs",
"default": "./dist/trap-focus-svelte.svelte.js"
},
"./svelte": "./dist/trap-focus-svelte.svelte.js",
"./vanilla": "./dist/trap-focus-svelte.mjs"
},
"svelte": "./dist/trap-focus-svelte.svelte.js",
"types": "dist/index.d.ts",
"typesVersions": {
"*": {
"vanilla": [
"dist/index.d.ts"
],
"svelte": [
"dist/index.d.ts"
]
}
},
"scripts": {
"build": "run-p rollup-build generate-types",
"rollup-build": "rollup -c",
"generate-types": "tsc -p . --declaration --emitDeclarationOnly --outDir dist",
"dev": "vite demo",
"demo-build": "vite build demo",
"preview": "vite demo preview",
"check": "svelte-check --tsconfig ./tsconfig.json"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.0.0",
"@sveltejs/vite-plugin-svelte": "^2.0.2",
"@tsconfig/svelte": "^3.0.0",
"hide-show-scroll": "^2.0.0",
"npm-run-all": "^4.1.5",
"rollup": "^3.14.0",
"rollup-plugin-modify": "^3.0.0",
"rollup-plugin-size": "^0.3.1",
"svelte": "^3.55.1",
"svelte-check": "^2.10.3",
"tslib": "^2.5.0",
"typescript": "^4.9.3",
"vite": "^4.1.0"
}
}
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