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

voxes-nuxt-sdk

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

voxes-nuxt-sdk - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

README.md

30

index.ts

@@ -1,29 +0,29 @@

import { Module } from '@nuxt/types'
import { MetaInfo } from 'vue-meta/types'
import { Module } from "@nuxt/types";
import { MetaInfo } from "vue-meta/types";
const module: Module = function () {
if (!this.options.voxes) {
console.error('Voxes: Missing Voxes appKey in nuxt config')
return
console.error("Voxes: Missing Voxes appKey in nuxt config");
return;
}
const head = this.options.head as MetaInfo
const SDK_URL = this.nuxt.options.publicRuntimeConfig.sdkUrl
const head = this.options.head as MetaInfo;
const SDK_URL =
this.nuxt.options.publicRuntimeConfig.sdkUrl || "https://voxes.io/sdk.js";
const script = {
id: 'voxessdk',
hid: 'voxessdk',
id: "voxessdk",
hid: "voxessdk",
src: `${SDK_URL}?appKey=${this.options.voxes.appKey}`,
async: true,
}
};
if (head.script) {
head.script.push(script)
return
head.script.push(script);
return;
}
head.script = [script]
}
head.script = [script];
};
export default module
export default module;
{
"name": "voxes-nuxt-sdk",
"version": "1.0.0",
"version": "1.0.1",
"description": "Nuxt module with Voxes SDK",
"keywords": [
"voxes",
"sdk"
],
"main": "index.ts",

@@ -6,0 +10,0 @@ "repository": {

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