BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-10-23 23:53:34 +02:00
parent cf6d1b2b04
commit 548c8147e6
16 changed files with 4418 additions and 11352 deletions

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartcrypto',
version: '2.0.0',
description: 'easy crypto methods'
}

View File

@ -1,8 +1,8 @@
export * from './smartcrypto.classes.smartcrypto';
export * from './smartcrypto.classes.keypair';
export * from './smartcrypto.classes.privatekey';
export * from './smartcrypto.classes.publickey';
export * from './smartcrypto.classes.smartcrypto.js';
export * from './smartcrypto.classes.keypair.js';
export * from './smartcrypto.classes.privatekey.js';
export * from './smartcrypto.classes.publickey.js';
import { nodeForge } from './smartcrypto.plugins';
import { nodeForge } from './smartcrypto.plugins.js';
export { nodeForge };

View File

@ -1,6 +1,6 @@
import * as plugins from './smartcrypto.plugins';
import { PublicKey } from './smartcrypto.classes.publickey';
import { PrivateKey } from './smartcrypto.classes.privatekey';
import * as plugins from './smartcrypto.plugins.js';
import { PublicKey } from './smartcrypto.classes.publickey.js';
import { PrivateKey } from './smartcrypto.classes.privatekey.js';
export class KeyPair {
// STATIC

View File

@ -1,4 +1,4 @@
import * as plugins from './smartcrypto.plugins';
import * as plugins from './smartcrypto.plugins.js';
export class PrivateKey {
// STATIC

View File

@ -1,4 +1,4 @@
import * as plugins from './smartcrypto.plugins';
import * as plugins from './smartcrypto.plugins.js';
export class PublicKey {
// STATIC

View File

@ -1,5 +1,5 @@
import * as plugins from './smartcrypto.plugins';
import { KeyPair } from './smartcrypto.classes.keypair';
import * as plugins from './smartcrypto.plugins.js';
import { KeyPair } from './smartcrypto.classes.keypair.js';
export class Smartcrypto {
public async createKeyPair(): Promise<KeyPair> {