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
2
Versions
301
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 1.0.5 to 1.0.6

2

cjs/index.js

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

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

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

function e(e,n,t,r){return new(t||(t=Promise))((function(o,i){function l(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,c)}u((r=r.apply(e,n||[])).next())}))}function n(e,n){var t,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(l=0)),l;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,r=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){l=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){l.label=c[1];break}if(6===c[0]&&l.label<o[1]){l.label=o[1],o=c;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(c);break}o[2]&&l.ops.pop(),l.trys.pop();continue}c=n.call(e,l)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var t=function(e){return new Promise((function(n,t){var r=document.getElementById("veltScript"),o=!1,i="latest";if(e&&(e.staging&&(o=e.staging),e.version&&(i=e.version)),(null==e?void 0:e.version)||(i="1.0.8"),r)n();else{var l=document.createElement("script");l.src="https://cdn.jsdelivr.net/npm/@veltdev/sdk".concat(o?"-staging":"","@").concat(i,"/velt.js"),l.id="veltScript",l.type="module",document.body.appendChild(l),l.onload=function(){n()},l.onerror=function(){t(new Error("Failed to load Velt script"))}}}))},r=function(r,o){return e(void 0,void 0,void 0,(function(){var e,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),[4,t(null==o?void 0:o.options)];case 1:return n.sent(),e=window.Velt,o?[4,e.init(r,o)]:[3,3];case 2:return n.sent(),[3,5];case 3:return[4,e.init(r)];case 4:n.sent(),n.label=5;case 5:return(null==e?void 0:e.st)&&(null==e||e.st("client")),[2,e];case 6:return i=n.sent(),console.error(i),[2,null];case 7:return[2]}}))}))},o=function(){return e(void 0,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),window.Velt?[3,2]:[4,t()];case 1:n.sent(),n.label=2;case 2:return[2,window.Velt];case 3:return e=n.sent(),console.error(e),[2,null];case 4:return[2]}}))}))};export{o as getVeltClient,r as initVelt};
function e(e,n,t,r){return new(t||(t=Promise))((function(o,i){function l(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(l,c)}u((r=r.apply(e,n||[])).next())}))}function n(e,n){var t,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(l=0)),l;)try{if(t=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,r=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){l=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){l.label=c[1];break}if(6===c[0]&&l.label<o[1]){l.label=o[1],o=c;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(c);break}o[2]&&l.ops.pop(),l.trys.pop();continue}c=n.call(e,l)}catch(e){c=[6,e],r=0}finally{t=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}var t=function(e){return new Promise((function(n,t){var r=document.getElementById("veltScript"),o=!1,i="latest";if(e&&(e.staging&&(o=e.staging),e.version&&(i=e.version)),(null==e?void 0:e.version)||(i="1.0.9"),r)n();else{var l=document.createElement("script");l.src="https://cdn.jsdelivr.net/npm/@veltdev/sdk".concat(o?"-staging":"","@").concat(i,"/velt.js"),l.id="veltScript",l.type="module",document.body.appendChild(l),l.onload=function(){n()},l.onerror=function(){t(new Error("Failed to load Velt script"))}}}))},r=function(r,o){return e(void 0,void 0,void 0,(function(){var e,i;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),[4,t(null==o?void 0:o.options)];case 1:return n.sent(),e=window.Velt,o?[4,e.init(r,o)]:[3,3];case 2:return n.sent(),[3,5];case 3:return[4,e.init(r)];case 4:n.sent(),n.label=5;case 5:return(null==e?void 0:e.st)&&(null==e||e.st("client")),[2,e];case 6:return i=n.sent(),console.error(i),[2,null];case 7:return[2]}}))}))},o=function(){return e(void 0,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),window.Velt?[3,2]:[4,t()];case 1:n.sent(),n.label=2;case 2:return[2,window.Velt];case 3:return e=n.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": "1.0.5",
"version": "1.0.6",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

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