New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

demoway-sdk

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demoway-sdk - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

1

dist/index.d.ts

@@ -5,2 +5,3 @@ import type { ISDKService } from './lib/service-host';

export interface ISDKInitializeOptions {
appId: string;
accessToken: string;

@@ -7,0 +8,0 @@ zIndex?: number;

22

dist/sdk.js

@@ -1,6 +0,6 @@

import { firstValueFrom as l, fromEvent as d, map as s, bufferCount as E, filter as m, noop as g } from "rxjs";
import I from "auto-bind";
class u {
import { firstValueFrom as l, fromEvent as d, map as s, bufferCount as E, filter as m, noop as I } from "rxjs";
import g from "auto-bind";
class p {
constructor(e) {
this.delegate = e, I(this);
this.delegate = e, g(this);
}

@@ -14,7 +14,7 @@ enableRecord() {

}
const i = "DEMOWAY_SDK_INITIALIZED", f = "demoway-sdk-initialize";
function p(t) {
const i = "DEMOWAY_SDK_INITIALIZED", u = "demoway-sdk-initialize";
function f(t) {
return typeof localStorage == "object" ? localStorage.getItem(t) : null;
}
const D = "MIAOLU_SERVICE_ENDPOINT", S = p(D) || "https://s.demoway.co/sdk/sdk-service/index.js";
const D = "MIAOLU_SERVICE_ENDPOINT", S = f(D) || "https://s.demoway.co/sdk/sdk-service/index.js";
function a() {

@@ -26,3 +26,3 @@ throw new Error("sdk is not initialized");

enableRecord: a
}), o = new u(c), N = o.openDemoDialog, _ = o.enableRecord;
}), o = new p(c), N = o.openDemoDialog, _ = o.enableRecord;
typeof sessionStorage == "object" && sessionStorage.setItem(i, "false");

@@ -32,2 +32,4 @@ function b(t) {

throw new Error("Invalid token");
if (!t.appId)
throw new Error("Missing appId");
if (o.delegate !== c)

@@ -40,3 +42,3 @@ return o.delegate.then(() => o);

S
).then((n) => (sessionStorage.setItem(i, "true"), window.dispatchEvent(new CustomEvent(f)), n.initialize(t)));
).then((n) => (sessionStorage.setItem(i, "true"), window.dispatchEvent(new CustomEvent(u)), n.initialize(t)));
return o.delegate = e, e.then(() => o);

@@ -50,3 +52,3 @@ }

m((r) => r[r.length - 1] - r[0] < n),
s(g)
s(I)
)

@@ -53,0 +55,0 @@ );

{
"name": "demoway-sdk",
"version": "0.4.3",
"version": "0.4.4",
"type": "module",

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

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