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

@taplytics/nuxtjs

Package Overview
Dependencies
Maintainers
8
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taplytics/nuxtjs - npm Package Compare versions

Comparing version 0.0.0-rc.1 to 0.0.0-rc.2

README.md

30

lib/module.js

@@ -60,3 +60,3 @@ const cheerio = require("cheerio");

async function TaplyticsModule({ token }) {
async function TaplyticsModule({ token, ssr = true }) {
this.addPlugin({

@@ -69,15 +69,17 @@ src: resolve(__dirname, "plugin/plugin.js"),

});
this.nuxt.hook("render:route", (url, result, context) => {
// pull config from vuex state
const {
config: { webElements, webModifications, urlTargetingRules },
} = context.nuxt.state.TaplyticsConfig;
result.html = processServerModifications(
webModifications,
webElements,
urlTargetingRules,
url,
result.html
);
});
if (ssr) {
this.nuxt.hook("render:route", (url, result, context) => {
// pull config from vuex state
const {
config: { webElements, webModifications, urlTargetingRules },
} = context.nuxt.state.TaplyticsConfig;
result.html = processServerModifications(
webModifications,
webElements,
urlTargetingRules,
url,
result.html
);
});
}
}

@@ -84,0 +86,0 @@

{
"name": "@taplytics/nuxtjs",
"version": "0.0.0-rc.1",
"version": "0.0.0-rc.2",
"description": "Simple Nuxt.js integration with Taplytics Experimentation SDK",

@@ -5,0 +5,0 @@ "main": "lib/module.js",

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