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

@veltdev/client

Package Overview
Dependencies
Maintainers
0
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@veltdev/client - npm Package Compare versions

Comparing version 4.0.0-beta.13 to 4.0.0-beta.14

2

cjs/index.js

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

"use strict";function e(e,t,n,r){return new(n||(n=Promise))((function(o,i){function l(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}c((r=r.apply(e,t||[])).next())}))}function t(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(l=0)),l;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,r=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var n=function(e){return new Promise((function(t,n){var r=document.getElementById("veltScript"),o=!1,i=!1,l="latest",a="";if(e&&(e.staging&&(o=e.staging),e.version&&(l=e.version),e.develop&&(i=e.develop),e.proxyDomain&&(a=e.proxyDomain)),(null==e?void 0:e.version)||(l="4.0.0-beta.13"),r)t();else{var c=document.createElement("script");o?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-staging&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):i?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-dev&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):a?("/"===a[a.length-1]&&(a=a.slice(0,-1)),c.src="".concat(a,"/lib/sdk@").concat(l,"/velt.js")):c.src="https://cdn.velt.dev/lib/sdk@".concat(l,"/velt.js"),c.id="veltScript",c.type="module",document.body.appendChild(c),c.onload=function(){t()},c.onerror=function(){n(new Error("Failed to load Velt script"))}}}))};exports.getVeltClient=function(){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),window.Velt?[3,2]:[4,n()];case 1:t.sent(),t.label=2;case 2:return[2,window.Velt];case 3:return e=t.sent(),console.error(e),[2,null];case 4:return[2]}}))}))},exports.initVelt=function(r,o){return e(void 0,void 0,void 0,(function(){var e,i;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,6,,7]),[4,n(null==o?void 0:o.options)];case 1:return t.sent(),e=window.Velt,o?[4,null==e?void 0:e.init(r,o)]:[3,3];case 2:return t.sent(),[3,5];case 3:return[4,null==e?void 0:e.init(r)];case 4:t.sent(),t.label=5;case 5:return(null==e?void 0:e.st)&&(null==e||e.st("client")),[2,e];case 6:return i=t.sent(),console.error(i),[2,null];case 7:return[2]}}))}))};
"use strict";function e(e,t,n,r){return new(n||(n=Promise))((function(o,i){function l(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,a)}c((r=r.apply(e,t||[])).next())}))}function t(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(l=0)),l;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return l.label++,{value:a[1],done:!1};case 5:l.label++,r=a[1],a=[0];continue;case 7:a=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){l=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){l.label=a[1];break}if(6===a[0]&&l.label<o[1]){l.label=o[1],o=a;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(a);break}o[2]&&l.ops.pop(),l.trys.pop();continue}a=t.call(e,l)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var n=function(e){return new Promise((function(t,n){var r=document.getElementById("veltScript"),o=!1,i=!1,l="latest",a="";if(e&&(e.staging&&(o=e.staging),e.version&&(l=e.version),e.develop&&(i=e.develop),e.proxyDomain&&(a=e.proxyDomain)),(null==e?void 0:e.version)||(l="4.0.0-beta.14"),r)t();else{var c=document.createElement("script");o?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-staging&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):i?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-dev&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):a?("/"===a[a.length-1]&&(a=a.slice(0,-1)),c.src="".concat(a,"/lib/sdk@").concat(l,"/velt.js")):c.src="https://cdn.velt.dev/lib/sdk@".concat(l,"/velt.js"),c.id="veltScript",c.type="module",document.body.appendChild(c),c.onload=function(){t()},c.onerror=function(){n(new Error("Failed to load Velt script"))}}}))};exports.getVeltClient=function(){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),window.Velt?[3,2]:[4,n()];case 1:t.sent(),t.label=2;case 2:return[2,window.Velt];case 3:return e=t.sent(),console.error(e),[2,null];case 4:return[2]}}))}))},exports.initVelt=function(r,o){return e(void 0,void 0,void 0,(function(){var e,i;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,6,,7]),[4,n(null==o?void 0:o.options)];case 1:return t.sent(),e=window.Velt,o?[4,null==e?void 0:e.init(r,o)]:[3,3];case 2:return t.sent(),[3,5];case 3:return[4,null==e?void 0:e.init(r)];case 4:t.sent(),t.label=5;case 5:return(null==e?void 0:e.st)&&(null==e||e.st("client")),[2,e];case 6:return i=t.sent(),console.error(i),[2,null];case 7:return[2]}}))}))};
//# sourceMappingURL=index.js.map

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

function e(e,t,n,r){return new(n||(n=Promise))((function(o,a){function l(e){try{c(r.next(e))}catch(e){a(e)}}function i(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,i)}c((r=r.apply(e,t||[])).next())}))}function t(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(l=0)),l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var n=function(e){return new Promise((function(t,n){var r=document.getElementById("veltScript"),o=!1,a=!1,l="latest",i="";if(e&&(e.staging&&(o=e.staging),e.version&&(l=e.version),e.develop&&(a=e.develop),e.proxyDomain&&(i=e.proxyDomain)),(null==e?void 0:e.version)||(l="4.0.0-beta.13"),r)t();else{var c=document.createElement("script");o?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-staging&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):a?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-dev&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):i?("/"===i[i.length-1]&&(i=i.slice(0,-1)),c.src="".concat(i,"/lib/sdk@").concat(l,"/velt.js")):c.src="https://cdn.velt.dev/lib/sdk@".concat(l,"/velt.js"),c.id="veltScript",c.type="module",document.body.appendChild(c),c.onload=function(){t()},c.onerror=function(){n(new Error("Failed to load Velt script"))}}}))},r=function(r,o){return e(void 0,void 0,void 0,(function(){var e,a;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,6,,7]),[4,n(null==o?void 0:o.options)];case 1:return t.sent(),e=window.Velt,o?[4,null==e?void 0:e.init(r,o)]:[3,3];case 2:return t.sent(),[3,5];case 3:return[4,null==e?void 0:e.init(r)];case 4:t.sent(),t.label=5;case 5:return(null==e?void 0:e.st)&&(null==e||e.st("client")),[2,e];case 6:return a=t.sent(),console.error(a),[2,null];case 7:return[2]}}))}))},o=function(){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),window.Velt?[3,2]:[4,n()];case 1:t.sent(),t.label=2;case 2:return[2,window.Velt];case 3:return e=t.sent(),console.error(e),[2,null];case 4:return[2]}}))}))};export{o as getVeltClient,r as initVelt};
function e(e,t,n,r){return new(n||(n=Promise))((function(o,a){function l(e){try{c(r.next(e))}catch(e){a(e)}}function i(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,i)}c((r=r.apply(e,t||[])).next())}))}function t(e,t){var n,r,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(l=0)),l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var n=function(e){return new Promise((function(t,n){var r=document.getElementById("veltScript"),o=!1,a=!1,l="latest",i="";if(e&&(e.staging&&(o=e.staging),e.version&&(l=e.version),e.develop&&(a=e.develop),e.proxyDomain&&(i=e.proxyDomain)),(null==e?void 0:e.version)||(l="4.0.0-beta.14"),r)t();else{var c=document.createElement("script");o?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-staging&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):a?c.src="https://us-central1-snipply-sdk-staging.cloudfunctions.net/getprivatenpmpackagefile?packageName=sdk-dev&packageVersion=".concat(l&&"latest"!==l?l:"1.0.1","&filePath=velt.js&orgName=@veltdev"):i?("/"===i[i.length-1]&&(i=i.slice(0,-1)),c.src="".concat(i,"/lib/sdk@").concat(l,"/velt.js")):c.src="https://cdn.velt.dev/lib/sdk@".concat(l,"/velt.js"),c.id="veltScript",c.type="module",document.body.appendChild(c),c.onload=function(){t()},c.onerror=function(){n(new Error("Failed to load Velt script"))}}}))},r=function(r,o){return e(void 0,void 0,void 0,(function(){var e,a;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,6,,7]),[4,n(null==o?void 0:o.options)];case 1:return t.sent(),e=window.Velt,o?[4,null==e?void 0:e.init(r,o)]:[3,3];case 2:return t.sent(),[3,5];case 3:return[4,null==e?void 0:e.init(r)];case 4:t.sent(),t.label=5;case 5:return(null==e?void 0:e.st)&&(null==e||e.st("client")),[2,e];case 6:return a=t.sent(),console.error(a),[2,null];case 7:return[2]}}))}))},o=function(){return e(void 0,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),window.Velt?[3,2]:[4,n()];case 1:t.sent(),t.label=2;case 2:return[2,window.Velt];case 3:return e=t.sent(),console.error(e),[2,null];case 4:return[2]}}))}))};export{o as getVeltClient,r as initVelt};
//# sourceMappingURL=index.js.map
{
"name": "@veltdev/client",
"version": "4.0.0-beta.13",
"version": "4.0.0-beta.14",
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",

@@ -5,0 +5,0 @@ "homepage": "https://velt.dev",

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