🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ax2/multisite-module

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ax2/multisite-module - npm Package Compare versions

Comparing version
0.1.1
to
0.2.0
+10
-0
CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="0.2.0"></a>
# [0.2.0](https://github.com/ax2inc/multisite-module/compare/v0.1.1...v0.2.0) (2018-09-27)
### Features
* Add debug to force usage of query string when needed ([eae1309](https://github.com/ax2inc/multisite-module/commit/eae1309))
<a name="0.1.1"></a>

@@ -7,0 +17,0 @@ ## [0.1.1](https://github.com/ax2inc/multisite-module/compare/v0.1.0...v0.1.1) (2018-09-15)

+1
-0
export const DEFAULT_OPTIONS = {
sites: [],
debug: false,
};

@@ -4,0 +5,0 @@

+2
-1

@@ -15,2 +15,3 @@ import Cookies from 'js-cookie';

const sites = <%= JSON.stringify(options.sites) %>;
const debug = <%= options.debug %>;
const QUERY_SITE_ID_KEY = '<%= options.QUERY_SITE_ID_KEY %>';

@@ -29,3 +30,3 @@ const COOKIE_SITE_KEY = '<%= options.COOKIE_SITE_KEY %>';

// In development, get current site from cookies or query string
if (isDev) {
if (debug || isDev) {
currentSiteId = query[QUERY_SITE_ID_KEY];

@@ -32,0 +33,0 @@

{
"name": "@ax2/multisite-module",
"version": "0.1.1",
"version": "0.2.0",
"description": "Multisite features for your Nuxt project",

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

@@ -58,2 +58,9 @@ # multisite-module

### debug
- Type: `Boolean`
- **Default**: `false`
Set this to `true` to force the module to get the current site from the query string.
### sites

@@ -60,0 +67,0 @@