Socket
Socket
Sign inDemoInstall

crisp-sdk-web

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crisp-sdk-web - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

2

dist/crisp.d.ts

@@ -156,2 +156,3 @@ declare type FileMessage = {

declare type Options = {
clientUrl?: string;
autoload?: boolean;

@@ -193,2 +194,3 @@ tokenId?: string;

declare class Crisp {
private clientUrl;
private websiteId;

@@ -195,0 +197,0 @@ private autoload;

@@ -337,2 +337,3 @@ var CrispMessage = /** @class */ (function () {

// Options
this.clientUrl = "https://client.crisp.chat/l.js";
this.websiteId = "";

@@ -358,2 +359,5 @@ this.autoload = true;

this.safeMode = options.safeMode;
if (options.clientUrl !== undefined) {
this.clientUrl = options.clientUrl;
}
if (options.autoload !== undefined) {

@@ -407,3 +411,3 @@ this.autoload = options.autoload;

var _script = document.createElement("script");
_script.src = "https://client.crisp.chat/l.js";
_script.src = this.clientUrl;
_script.async = true;

@@ -410,0 +414,0 @@ _head[0].appendChild(_script);

@@ -343,2 +343,3 @@ (function (global, factory) {

// Options
this.clientUrl = "https://client.crisp.chat/l.js";
this.websiteId = "";

@@ -364,2 +365,5 @@ this.autoload = true;

this.safeMode = options.safeMode;
if (options.clientUrl !== undefined) {
this.clientUrl = options.clientUrl;
}
if (options.autoload !== undefined) {

@@ -413,3 +417,3 @@ this.autoload = options.autoload;

var _script = document.createElement("script");
_script.src = "https://client.crisp.chat/l.js";
_script.src = this.clientUrl;
_script.async = true;

@@ -416,0 +420,0 @@ _head[0].appendChild(_script);

2

package.json
{
"name": "crisp-sdk-web",
"version": "1.0.12",
"version": "1.0.13",
"description": "Include Crisp chat widget inside web frameworks.",

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

@@ -43,2 +43,3 @@ import CrispMessage from "./message";

type Options = {
clientUrl?: string
autoload?: boolean,

@@ -84,2 +85,3 @@ tokenId?: string

// Options
private clientUrl: string = "https://client.crisp.chat/l.js";
private websiteId: string = "";

@@ -124,2 +126,6 @@ private autoload: boolean = true;

if (options.clientUrl !== undefined) {
this.clientUrl = options.clientUrl;
}
if (options.autoload !== undefined) {

@@ -190,3 +196,3 @@ this.autoload = options.autoload;

_script.src="https://client.crisp.chat/l.js";
_script.src = this.clientUrl;
_script.async = true;

@@ -305,2 +311,2 @@

EventsColors
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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