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-beta.0 to 0.4.3-beta.1

35

dist/sdk.js

@@ -1,2 +0,2 @@

import { firstValueFrom as l, fromEvent as d, map as i, bufferCount as m, filter as g, noop as u } from "rxjs";
import { firstValueFrom as c, fromEvent as d, map as s, bufferCount as m, filter as g, noop as u } from "rxjs";
import D from "auto-bind";

@@ -14,34 +14,35 @@ class E {

}
const a = "DEMOWAY_SDK_INITIALIZED";
function p(t) {
const i = "DEMOWAY_SDK_INITIALIZED";
function I(t) {
return typeof localStorage == "object" ? localStorage.getItem(t) : null;
}
const I = "MIAOLU_SERVICE_ENDPOINT", f = p(I) || "https://s.demoway.co/sdk/sdk-service/index.js";
function s() {
const f = "MIAOLU_SERVICE_ENDPOINT", p = I(f) || "https://s.demoway.co/sdk/sdk-service/index.js";
function a() {
throw new Error("sdk is not initialized");
}
const c = Promise.resolve({
openDemoDialog: s,
enableRecord: s
}), o = new E(c), w = o.openDemoDialog, R = o.enableRecord;
const l = Promise.resolve({
openDemoDialog: a,
enableRecord: a
}), o = new E(l), w = o.openDemoDialog, R = o.enableRecord;
sessionStorage.setItem(i, "false");
function b(t) {
if (!t.accessToken)
throw new Error("Invalid token");
if (o.delegate !== c)
if (o.delegate !== l)
return o.delegate.then(() => o);
if (sessionStorage.getItem(a) === "true")
if (sessionStorage.getItem(i) === "true")
throw new Error("Multiple sdk detected");
const e = import(
/*webpackIgnore: true*/
f
).then((r) => (sessionStorage.setItem(a, "true"), r.initialize(t)));
p
).then((r) => (sessionStorage.setItem(i, "true"), r.initialize(t)));
return o.delegate = e, e.then(() => o);
}
function k(t, e, r) {
return l(
return c(
d(t, "click").pipe(
i(() => Date.now()),
s(() => Date.now()),
m(e),
g((n) => n[n.length - 1] - n[0] < r),
i(u)
s(u)
)

@@ -51,3 +52,3 @@ );

export {
f as SERVICE_ENDPOINT,
p as SERVICE_ENDPOINT,
R as enableRecord,

@@ -54,0 +55,0 @@ b as initialize,

{
"name": "demoway-sdk",
"version": "0.4.3-beta.0",
"version": "0.4.3-beta.1",
"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