BREAKING CHANGE(core): switch to esm
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartcrypto',
|
||||
version: '2.0.0',
|
||||
description: 'easy crypto methods'
|
||||
}
|
10
ts/index.ts
10
ts/index.ts
@ -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 };
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartcrypto.plugins';
|
||||
import * as plugins from './smartcrypto.plugins.js';
|
||||
|
||||
export class PrivateKey {
|
||||
// STATIC
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartcrypto.plugins';
|
||||
import * as plugins from './smartcrypto.plugins.js';
|
||||
|
||||
export class PublicKey {
|
||||
// STATIC
|
||||
|
@ -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> {
|
||||
|
Reference in New Issue
Block a user