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

@consento/api

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@consento/api - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

index.d.ts
import { IAPI, IAPIOptions } from './types';
export * from '@consento/crypto';
import * as crypto from '@consento/crypto';
export { crypto };
export * from './notifications/types';
export * from './types';
export declare function api({ cryptoCore, notificationTransport }: IAPIOptions): IAPI;
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
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)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const crypto_1 = require("@consento/crypto");
const notifications_1 = require("./notifications");
__export(require("@consento/crypto"));
const crypto = __importStar(require("@consento/crypto"));
exports.crypto = crypto;
function api({ cryptoCore, notificationTransport }) {
const crypto = crypto_1.setup(cryptoCore);
return {

@@ -15,3 +18,3 @@ notifications: new notifications_1.Notifications({

}),
crypto
crypto: crypto.setup(cryptoCore)
};

@@ -18,0 +21,0 @@ }

{
"name": "@consento/api",
"version": "0.0.1",
"version": "0.0.2",
"description": "JavasScript API for building things with consento.",

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

@@ -1,6 +0,9 @@

import { setup } from '@consento/crypto'
import { IAPI, IAPIOptions } from './types'
import { Notifications } from './notifications'
export * from '@consento/crypto'
import * as crypto from '@consento/crypto'
export {
crypto
}
export * from './notifications/types'

@@ -10,3 +13,2 @@ export * from './types'

export function api ({ cryptoCore, notificationTransport }: IAPIOptions): IAPI {
const crypto = setup(cryptoCore)
return {

@@ -16,4 +18,4 @@ notifications: new Notifications({

}),
crypto
crypto: crypto.setup(cryptoCore)
}
}

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