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

nuxt-viewport

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-viewport - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

CHANGELOG.md

5

lib/index.d.ts

@@ -85,3 +85,8 @@ import { Module } from '@nuxt/types';

}
declare module '@nuxt/types/config/index' {
interface NuxtOptions {
viewport: ViewportOptions;
}
}
export default nuxtModule;

2

lib/index.js

@@ -27,3 +27,3 @@ 'use strict';

...DEFAULT_OPTIONS,
...customOptions
...customOptions || this.options.viewport || {}
};

@@ -30,0 +30,0 @@ this.addPlugin({

{
"name": "nuxt-viewport",
"version": "0.0.1",
"version": "0.0.2",
"description": "Define custom viewports for your Nuxt project",

@@ -5,0 +5,0 @@ "keywords": [

@@ -137,2 +137,15 @@ # nuxt-viewport

## Typescript
If using typescript or running typescript language server to check the code (for example through Vetur), add types to `types` array in your `tsconfig.json`:
```json
{
"compilerOptions": {
"types": [
"@nuxt/types",
"nuxt-viewport",
]
}
}
```
## API

@@ -154,3 +167,3 @@

[![Edit nuxt-viewport](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mvrlin/nuxt-viewport/tree/master/?fontsize=14&hidenavigation=1&theme=dark)
[![Edit nuxt-viewport](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mvrlin/nuxt-viewport/tree/main/?fontsize=14&hidenavigation=1&theme=dark)

@@ -157,0 +170,0 @@ Or locally:

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