@consento/api
Advanced tools
Comparing version 0.0.1 to 0.0.2
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; |
17
index.js
"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
17462
269