Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apideck/vault-js

Package Overview
Dependencies
Maintainers
7
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apideck/vault-js - npm Package Compare versions

Comparing version 0.1.6 to 1.0.0

2

dist/index.d.ts

@@ -10,3 +10,3 @@ export interface ApideckVaultOptions {

export declare const ApideckVault: {
open({ onClose, ...options }: ApideckVaultOptions): void;
open(options: ApideckVaultOptions): void;
};

@@ -18,3 +18,3 @@ 'use strict';

var _excluded = ["onClose"];
var _excluded = ["onClose", "onReady"];
var createApideckVault = function createApideckVault() {

@@ -36,5 +36,6 @@ var vaultIframeUrl = 'https://vaultjs.apideck.com';

return {
open: function open(_ref) {
var onClose = _ref.onClose,
options = _objectWithoutPropertiesLoose(_ref, _excluded);
open: function open(options) {
var onClose = options.onClose,
onReady = options.onReady,
otherOptions = _objectWithoutPropertiesLoose(options, _excluded);
var modal = createModal();

@@ -46,3 +47,4 @@ document.body.appendChild(modal);

modal.style.display = 'block';
(_modal$contentWindow = modal.contentWindow) == null ? void 0 : _modal$contentWindow.postMessage(options, vaultIframeUrl);
(_modal$contentWindow = modal.contentWindow) == null ? void 0 : _modal$contentWindow.postMessage(otherOptions, vaultIframeUrl);
onReady && onReady();
}

@@ -49,0 +51,0 @@ if (event.data === 'on-close') {

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=["onClose"];exports.ApideckVault=function(){return{open:function(t){var n=t.onClose,o=function(e,t){if(null==e)return{};var n,o,s={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(s[n]=e[n]);return s}(t,e),s=function(){var e=document.createElement("iframe");return e.style.display="none",e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.border="none",e.style.zIndex="9999",e.src="https://vaultjs.apideck.com",e}();document.body.appendChild(s),window.addEventListener("message",(function e(t){var i;"on-ready"===t.data&&(s.style.display="block",null==(i=s.contentWindow)||i.postMessage(o,"https://vaultjs.apideck.com")),"on-close"===t.data&&(n&&n(),setTimeout((function(){document.body.removeChild(s),window.removeEventListener("message",e)}),300))}))}}}();
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=["onClose","onReady"];exports.ApideckVault=function(){return{open:function(t){var n=t.onClose,o=t.onReady,s=function(e,t){if(null==e)return{};var n,o,s={},d=Object.keys(e);for(o=0;o<d.length;o++)t.indexOf(n=d[o])>=0||(s[n]=e[n]);return s}(t,e),d=function(){var e=document.createElement("iframe");return e.style.display="none",e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.border="none",e.style.zIndex="9999",e.src="https://vaultjs.apideck.com",e}();document.body.appendChild(d),window.addEventListener("message",(function e(t){var i;"on-ready"===t.data&&(d.style.display="block",null==(i=d.contentWindow)||i.postMessage(s,"https://vaultjs.apideck.com"),o&&o()),"on-close"===t.data&&(n&&n(),setTimeout((function(){document.body.removeChild(d),window.removeEventListener("message",e)}),300))}))}}}();
//# sourceMappingURL=vault-js.cjs.production.min.js.map

@@ -14,3 +14,3 @@ function _objectWithoutPropertiesLoose(source, excluded) {

var _excluded = ["onClose"];
var _excluded = ["onClose", "onReady"];
var createApideckVault = function createApideckVault() {

@@ -32,5 +32,6 @@ var vaultIframeUrl = 'https://vaultjs.apideck.com';

return {
open: function open(_ref) {
var onClose = _ref.onClose,
options = _objectWithoutPropertiesLoose(_ref, _excluded);
open: function open(options) {
var onClose = options.onClose,
onReady = options.onReady,
otherOptions = _objectWithoutPropertiesLoose(options, _excluded);
var modal = createModal();

@@ -42,3 +43,4 @@ document.body.appendChild(modal);

modal.style.display = 'block';
(_modal$contentWindow = modal.contentWindow) == null ? void 0 : _modal$contentWindow.postMessage(options, vaultIframeUrl);
(_modal$contentWindow = modal.contentWindow) == null ? void 0 : _modal$contentWindow.postMessage(otherOptions, vaultIframeUrl);
onReady && onReady();
}

@@ -45,0 +47,0 @@ if (event.data === 'on-close') {

@@ -20,3 +20,3 @@ (function (global, factory) {

var _excluded = ["onClose"];
var _excluded = ["onClose", "onReady"];
var createApideckVault = function createApideckVault() {

@@ -38,5 +38,6 @@ var vaultIframeUrl = 'https://vaultjs.apideck.com';

return {
open: function open(_ref) {
var onClose = _ref.onClose,
options = _objectWithoutPropertiesLoose(_ref, _excluded);
open: function open(options) {
var onClose = options.onClose,
onReady = options.onReady,
otherOptions = _objectWithoutPropertiesLoose(options, _excluded);
var modal = createModal();

@@ -48,3 +49,4 @@ document.body.appendChild(modal);

modal.style.display = 'block';
(_modal$contentWindow = modal.contentWindow) == null ? void 0 : _modal$contentWindow.postMessage(options, vaultIframeUrl);
(_modal$contentWindow = modal.contentWindow) == null ? void 0 : _modal$contentWindow.postMessage(otherOptions, vaultIframeUrl);
onReady && onReady();
}

@@ -51,0 +53,0 @@ if (event.data === 'on-close') {

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).ApideckVault=t()}(this,(function(){"use strict";var e=["onClose"];return function(){return{open:function(t){var n=t.onClose,o=function(e,t){if(null==e)return{};var n,o,s={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(s[n]=e[n]);return s}(t,e),s=function(){var e=document.createElement("iframe");return e.style.display="none",e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.border="none",e.style.zIndex="9999",e.src="https://vaultjs.apideck.com",e}();document.body.appendChild(s),window.addEventListener("message",(function e(t){var i;"on-ready"===t.data&&(s.style.display="block",null==(i=s.contentWindow)||i.postMessage(o,"https://vaultjs.apideck.com")),"on-close"===t.data&&(n&&n(),setTimeout((function(){document.body.removeChild(s),window.removeEventListener("message",e)}),300))}))}}}()}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).ApideckVault=t()}(this,(function(){"use strict";var e=["onClose","onReady"];return function(){return{open:function(t){var n=t.onClose,o=t.onReady,s=function(e,t){if(null==e)return{};var n,o,s={},d=Object.keys(e);for(o=0;o<d.length;o++)t.indexOf(n=d[o])>=0||(s[n]=e[n]);return s}(t,e),d=function(){var e=document.createElement("iframe");return e.style.display="none",e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.border="none",e.style.zIndex="9999",e.src="https://vaultjs.apideck.com",e}();document.body.appendChild(d),window.addEventListener("message",(function e(t){var i;"on-ready"===t.data&&(d.style.display="block",null==(i=d.contentWindow)||i.postMessage(s,"https://vaultjs.apideck.com"),o&&o()),"on-close"===t.data&&(n&&n(),setTimeout((function(){document.body.removeChild(d),window.removeEventListener("message",e)}),300))}))}}}()}));
//# sourceMappingURL=vault-js.umd.production.min.js.map
{
"version": "0.1.6",
"version": "1.0.0",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

@@ -28,3 +28,4 @@ export interface ApideckVaultOptions {

return {
open({ onClose, ...options }: ApideckVaultOptions): void {
open(options: ApideckVaultOptions): void {
const { onClose, onReady, ...otherOptions } = options;
const modal = createModal();

@@ -36,3 +37,4 @@ document.body.appendChild(modal);

modal.style.display = 'block';
modal.contentWindow?.postMessage(options, vaultIframeUrl);
modal.contentWindow?.postMessage(otherOptions, vaultIframeUrl);
onReady && onReady();
}

@@ -39,0 +41,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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