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

@nuxt/app-edge

Package Overview
Dependencies
Maintainers
3
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/app-edge - npm Package Compare versions

Comparing version 2.3.0-25673151.96bdcab to 2.3.0-25673152.23228db

1

CHANGELOG.md

@@ -11,2 +11,3 @@ # Change Log

* **app:** add deprecation warning on using process.browser ([#4174](https://github.com/nuxt/nuxt.js/issues/4174)) ([23228db](https://github.com/nuxt/nuxt.js/commit/23228db))
* **app:** lint all templates ([#4175](https://github.com/nuxt/nuxt.js/issues/4175)) ([96bdcab](https://github.com/nuxt/nuxt.js/commit/96bdcab))

@@ -13,0 +14,0 @@ * **app:** throw an error when layout property is not string ([#4142](https://github.com/nuxt/nuxt.js/issues/4142)) ([f5530ad](https://github.com/nuxt/nuxt.js/commit/f5530ad))

4

dist/app.js
/*!
* @nuxt/app-edge v2.3.0-25673151.96bdcab (c) 2016-2018
* @nuxt/app-edge v2.3.0-25673152.23228db (c) 2016-2018

@@ -17,3 +17,3 @@ * - All the amazing contributors

var name = "@nuxt/app-edge";
var version = "2.3.0-25673151.96bdcab";
var version = "2.3.0-25673152.23228db";
var repository = "nuxt/nuxt.js";

@@ -20,0 +20,0 @@ var license = "MIT";

{
"name": "@nuxt/app-edge",
"version": "2.3.0-25673151.96bdcab",
"version": "2.3.0-25673152.23228db",
"repository": "nuxt/nuxt.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -159,3 +159,8 @@ import Vue from 'vue'

<% if (store) { %>
if (process.client) {
if (process.client || process.browser) {
<% if (isDev) { %>
if (process.browser) {
console.warn('process.browser is deprecated, use process.client instead.')
}
<% } %>
// Replace store state before plugins execution

@@ -173,3 +178,9 @@ if (window.<%= globals.context %> && window.<%= globals.context %>.state) {

<% if (plugins.filter(p => !p.ssr).length) { %>
if (process.client) { <% plugins.filter((p) => !p.ssr).forEach((plugin) => { %>
if (process.client || process.browser) {
<% if (isDev) { %>
if (process.browser) {
console.warn('process.browser is deprecated, use process.client instead.')
}
<% } %>
<% plugins.filter((p) => !p.ssr).forEach((plugin) => { %>
if (typeof <%= plugin.name %> === 'function') await <%= plugin.name %>(app.context, inject)<% }) %>

@@ -176,0 +187,0 @@ }<% } %>

@@ -54,3 +54,8 @@ import Vue from 'vue'

<% } else { %>
if (process.client) {
if (process.client || process.browser) {
<% if (isDev) { %>
if (process.browser) {
console.warn('process.browser is deprecated, use process.client instead.')
}
<% } %>
window.history.scrollRestoration = 'manual'

@@ -57,0 +62,0 @@ }

@@ -7,3 +7,9 @@ import Vue from 'vue'

// Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading)
if (process.client) {
if (process.client || process.browser) {
<% if (isDev) { %>
if (process.browser) {
console.warn('process.browser is deprecated, use process.client instead.')
}
<% } %>
window.<%= globals.readyCallback %>Cbs = []

@@ -169,3 +175,9 @@ window.<%= globals.readyCallback %> = (cb) => {

}
if (process.client) {
if (process.client || process.browser) {
<% if (isDev) { %>
if (process.browser) {
console.warn('process.browser is deprecated, use process.client instead.')
}
<% } %>
// https://developer.mozilla.org/en-US/docs/Web/API/Location/replace

@@ -182,3 +194,8 @@ window.location.replace(path)

}
if (process.client) {
if (process.client || process.browser) {
<% if (isDev) { %>
if (process.browser) {
console.warn('process.browser is deprecated, use process.client instead.')
}
<% } %>
app.context.nuxtState = window.<%= globals.context %>

@@ -185,0 +202,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