Socket
Socket
Sign inDemoInstall

@nuxtjs/color-mode

Package Overview
Dependencies
181
Maintainers
5
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 3.0.0-beta.0

dist/module.cjs

49

package.json
{
"name": "@nuxtjs/color-mode",
"version": "2.1.1",
"description": "Dark and Light mode for NuxtJS with auto detection",
"version": "3.0.0-beta.0",
"description": "Dark and Light mode for Nuxt with auto detection",
"repository": "nuxt-community/color-mode-module",

@@ -9,32 +9,37 @@ "license": "MIT",

{
"name": "NuxtJS Team"
"name": "Nuxt Team"
}
],
"exports": {
".": {
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
}
},
"main": "./dist/module.cjs",
"types": "./dist/types.d.ts",
"files": [
"lib",
"types"
"dist"
],
"main": "lib/module.js",
"types": "types/index.d.ts",
"scripts": {
"dev": "nuxt example",
"build": "rollup -c",
"prepack": "nuxt-module-build && esbuild --minify dist/script.mjs --outfile=dist/script.min.js",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"lint": "eslint --ext .js,.vue .",
"prepublish": "yarn build",
"release": "yarn test && standard-version && git push --follow-tags && npm publish",
"test": "yarn lint && jest"
"test": "yarn lint"
},
"dependencies": {
"@nuxt/kit": "npm:@nuxt/kit-edge@latest",
"defu": "^5.0.0",
"lodash.template": "^4.5.0"
"lodash.template": "^4.5.0",
"pathe": "^0.2.0"
},
"devDependencies": {
"@babel/core": "^7.13.10",
"@babel/preset-env": "^7.13.10",
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@nuxt/test-utils": "^0.2.2",
"@nuxt/types": "^2.15.3",
"@nuxt/module-builder": "^0.1.7",
"@nuxtjs/eslint-config": "^6.0.0",
"@nuxtjs/svg": "^0.1.12",
"@types/lodash.template": "^4.5.0",
"babel-eslint": "latest",

@@ -45,8 +50,10 @@ "babel-jest": "^27.0.2",

"jest": "^27.0.4",
"nuxt": "^2.15.3",
"rollup": "^2.41.0",
"rollup-plugin-babel": "latest",
"rollup-plugin-terser": "^7.0.2",
"nuxt3": "latest",
"standard-version": "^9.1.1"
},
"build": {
"entries": [
"src/script"
]
},
"publishConfig": {

@@ -53,0 +60,0 @@ "access": "public"

@@ -10,3 +10,3 @@ [![@nuxtjs/color-mode](https://color-mode.nuxtjs.org/preview.png)](https://color-mode.nuxtjs.org)

> 🌑 Dark and 🌕 Light mode with auto detection made easy with NuxtJS
> 🌑 Dark and 🌕 Light mode with auto detection made easy with Nuxt

@@ -24,6 +24,7 @@ [![nuxt-color-mode](https://user-images.githubusercontent.com/904724/79349768-f09cf080-7f36-11ea-93bb-20fae8c94811.gif)](https://color-mode.nuxtjs.app/)

- Nuxt 3 and Nuxt Bridge support
- Add `.${color}-mode` class to `<html>` for easy CSS theming
- Force a page to a specific color mode (perfect for incremental development)
- Works with any NuxtJS target (`static` or `server`) and rendering (`universal` and `spa`)
- Auto detect the system [color-mode](https://drafts.csswg.org/mediaqueries-5/#descdef-media-prefers-color-mode)
- Works with client-side and universal rendering
- Auto detect system [color-mode](https://drafts.csswg.org/mediaqueries-5/#descdef-media-prefers-color-mode)
- Sync dark mode across tabs and windows 🔄

@@ -50,3 +51,3 @@ - Supports IE9+ 👴

Copyright (c) NuxtJS Team
Copyright (c) Nuxt Team

@@ -53,0 +54,0 @@ <!-- Badges -->

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