@airgap/beacon-transport-postmessage
Advanced tools
Comparing version 0.0.1-beta.4 to 0.0.1-beta.5
@@ -26,21 +26,2 @@ "use strict"; | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -82,5 +63,8 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PostMessageClient = void 0; | ||
var sodium = __importStar(require("libsodium-wrappers")); | ||
var libsodium_wrappers_1 = __importDefault(require("libsodium-wrappers")); | ||
var beacon_core_1 = require("@airgap/beacon-core"); | ||
@@ -190,3 +174,3 @@ var beacon_utils_1 = require("@airgap/beacon-utils"); | ||
if (!(payload.length >= | ||
sodium.crypto_secretbox_NONCEBYTES + sodium.crypto_secretbox_MACBYTES)) return [3 /*break*/, 7]; | ||
libsodium_wrappers_1.default.crypto_secretbox_NONCEBYTES + libsodium_wrappers_1.default.crypto_secretbox_MACBYTES)) return [3 /*break*/, 7]; | ||
_j.label = 3; | ||
@@ -193,0 +177,0 @@ case 3: |
@@ -1,2 +0,2 @@ | ||
import * as sodium from 'libsodium-wrappers'; | ||
import sodium from 'libsodium-wrappers'; | ||
import { PostMessagePairingRequest, ExtendedPostMessagePairingResponse, Extension, StorageKey, TransportType } from '@airgap/beacon-types'; | ||
@@ -3,0 +3,0 @@ import { Storage } from '@airgap/beacon-types'; |
@@ -10,3 +10,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import * as sodium from 'libsodium-wrappers'; | ||
import sodium from 'libsodium-wrappers'; | ||
import { windowRef, Serializer, getSenderId, MessageBasedClient } from '@airgap/beacon-core'; | ||
@@ -13,0 +13,0 @@ import { openCryptobox } from '@airgap/beacon-utils'; |
@@ -1,2 +0,2 @@ | ||
import * as sodium from 'libsodium-wrappers'; | ||
import sodium from 'libsodium-wrappers'; | ||
import { PostMessagePairingRequest, ExtendedPostMessagePairingResponse, Extension, StorageKey, TransportType } from '@airgap/beacon-types'; | ||
@@ -3,0 +3,0 @@ import { Storage } from '@airgap/beacon-types'; |
{ | ||
"name": "@airgap/beacon-transport-postmessage", | ||
"version": "0.0.1-beta.4", | ||
"version": "0.0.1-beta.5", | ||
"description": "> TODO: description", | ||
@@ -32,9 +32,9 @@ "author": "Andreas Gassmann <andreas@andreasgassmann.ch>", | ||
"dependencies": { | ||
"@airgap/beacon-core": "^0.0.1-beta.4", | ||
"@airgap/beacon-types": "^0.0.1-beta.4", | ||
"@airgap/beacon-utils": "^0.0.1-beta.4", | ||
"@airgap/beacon-core": "^0.0.1-beta.5", | ||
"@airgap/beacon-types": "^0.0.1-beta.5", | ||
"@airgap/beacon-utils": "^0.0.1-beta.5", | ||
"@types/libsodium-wrappers": "0.7.9", | ||
"libsodium-wrappers": "0.7.9" | ||
}, | ||
"gitHead": "e1fa737a1879c772fa882f9d2d997f5ac439f37f" | ||
"gitHead": "85337526d2d7599e17b89c202a3aa82b63782785" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
58690
829