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

@dopplerhq/universal-import-core

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dopplerhq/universal-import-core - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

2

dist/encryption.d.ts

@@ -5,3 +5,3 @@ export interface KeyInfo {

}
export declare function fetchKeyInfo(): Promise<KeyInfo>;
export declare function fetchKeyInfo(keyURL: string): Promise<KeyInfo>;
export declare function encrypt(plainText: string, keyInfo: KeyInfo): Promise<string>;

@@ -5,7 +5,8 @@ import tweetnacl from "tweetnacl-util";

const { seal } = tweetnaclSealedbox;
const DOPPLER_UNIVERSAL_KEY_URL = "https://keys.doppler.com/universal-import/latest.json";
let keyInfoPromise;
export async function fetchKeyInfo() {
export async function fetchKeyInfo(keyURL) {
const url = new URL(keyURL);
url.searchParams.append("cpv", "0.0.12");
if (!keyInfoPromise) {
keyInfoPromise = fetch(DOPPLER_UNIVERSAL_KEY_URL)
keyInfoPromise = fetch(url.toString())
.then((res) => res.json())

@@ -12,0 +13,0 @@ .then((json) => ({

import * as encryption from "./encryption.js";
import * as utils from "./utils.js";
import * as modal from "./modal.js";
const DOPPLER_UNIVERSAL_KEY_URL = "https://keys.doppler.com/universal-import/latest.json";
export async function fetchKeyInfo() {
return await encryption.fetchKeyInfo();
return await encryption.fetchKeyInfo(DOPPLER_UNIVERSAL_KEY_URL);
}

@@ -7,0 +8,0 @@ export async function trigger(props) {

@@ -6,2 +6,3 @@ const DOPPLER_DASHBOARD_URL = "https://dashboard.doppler.com";

url.searchParams.set("keyId", keyId);
url.searchParams.set("cpv", "0.0.12");
openWindow(url.toString(), 800, 800);

@@ -8,0 +9,0 @@ }

{
"name": "@dopplerhq/universal-import-core",
"version": "0.0.11",
"version": "0.0.12",
"type": "module",

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

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