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.2.0-beta.1 to 0.2.0-beta.2

64

dist/sdk.js

@@ -1,18 +0,18 @@

const a = (e) => {
const o = /* @__PURE__ */ new Set();
const p = (e) => {
const t = /* @__PURE__ */ new Set();
do
for (const t of Reflect.ownKeys(e))
o.add([e, t]);
for (const o of Reflect.ownKeys(e))
t.add([e, o]);
while ((e = Reflect.getPrototypeOf(e)) && e !== Object.prototype);
return o;
return t;
};
function d(e, { include: o, exclude: t } = {}) {
const s = (i) => {
const r = (n) => typeof n == "string" ? i === n : n.test(i);
return o ? o.some(r) : t ? !t.some(r) : !0;
function d(e, { include: t, exclude: o } = {}) {
const i = (c) => {
const r = (n) => typeof n == "string" ? c === n : n.test(c);
return t ? t.some(r) : o ? !o.some(r) : !0;
};
for (const [i, r] of a(e.constructor.prototype)) {
if (r === "constructor" || !s(r))
for (const [c, r] of p(e.constructor.prototype)) {
if (r === "constructor" || !i(r))
continue;
const n = Reflect.getOwnPropertyDescriptor(i, r);
const n = Reflect.getOwnPropertyDescriptor(c, r);
n && typeof n.value == "function" && (e[r] = e[r].bind(e));

@@ -22,37 +22,37 @@ }

}
class p {
constructor(o) {
this.delegate = o, d(this);
class u {
constructor(t) {
this.delegate = t, d(this);
}
enableRecord() {
return this.delegate.then((o) => o.enableRecord());
return this.delegate.then((t) => t.enableRecord());
}
openDemoDialog(o, t) {
return this.delegate.then((s) => s.openDemoDialog(o, t));
openDemoDialog(t, o) {
return this.delegate.then((i) => i.openDemoDialog(t, o));
}
}
function u(e) {
function f(e) {
return typeof localStorage == "object" ? localStorage.getItem(e) : null;
}
const f = "MIAOLU_SERVICE_ENDPOINT", g = u(f) || "//s.demoway.co/sdk/sdk-service/service.js";
function l() {
const g = "MIAOLU_SERVICE_ENDPOINT", l = f(g) || "//s.demoway.co/sdk/sdk-service/service.js";
function a() {
throw new Error("sdk is not initialized");
}
const c = new p(
const s = new u(
Promise.resolve({
openDemoDialog: l,
enableRecord: l
openDemoDialog: a,
enableRecord: a
})
), D = c.openDemoDialog, m = c.enableRecord;
function h({ accessToken: e }) {
), h = s.openDemoDialog, D = s.enableRecord;
function m({ accessToken: e }) {
if (!e)
throw new Error("Invalid token");
const o = import(g).then((t) => t.initialize(e));
return c.delegate = o, o.then(() => c);
const t = l.startsWith("http") ? l : `${location.protocol}${l}`, o = import(new URL(t).toString()).then((i) => i.initialize(e));
return s.delegate = o, o.then(() => s);
}
export {
g as SERVICE_ENDPOINT,
m as enableRecord,
h as initialize,
D as openDemoDialog
l as SERVICE_ENDPOINT,
D as enableRecord,
m as initialize,
h as openDemoDialog
};
{
"name": "demoway-sdk",
"version": "0.2.0-beta.1",
"version": "0.2.0-beta.2",
"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