@junobuild/did-tools 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/dist/node/index.mjs +429 -0
- package/dist/node/index.mjs.map +7 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/services/inspector.services.d.ts +6 -0
- package/dist/types/services/parser.services.d.ts +6 -0
- package/dist/types/types/method-signature.d.ts +5 -0
- package/dist/types/types/transformer-options.d.ts +4 -0
- package/package.json +55 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CompilerOptions } from 'typescript';
|
|
2
|
+
import type { TransformerOptions } from './types/transformer-options';
|
|
3
|
+
export type * from './types/transformer-options';
|
|
4
|
+
export declare const generateApi: ({ inputFile, outputFile, compilerOptions, transformerOptions }: {
|
|
5
|
+
inputFile: string;
|
|
6
|
+
outputFile: string;
|
|
7
|
+
compilerOptions?: CompilerOptions;
|
|
8
|
+
transformerOptions: TransformerOptions;
|
|
9
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type CompilerOptions } from 'typescript';
|
|
2
|
+
import type { MethodSignature } from '../types/method-signature';
|
|
3
|
+
export declare const collectMethodSignatures: ({ inputFile, compilerOptions }: {
|
|
4
|
+
inputFile: string;
|
|
5
|
+
compilerOptions?: CompilerOptions;
|
|
6
|
+
}) => MethodSignature[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { MethodSignature } from '../types/method-signature';
|
|
2
|
+
import type { TransformerOptions } from '../types/transformer-options';
|
|
3
|
+
export declare const parseApi: ({ signatures, transformerOptions: { coreLib, outputLanguage } }: {
|
|
4
|
+
signatures: MethodSignature[];
|
|
5
|
+
transformerOptions: TransformerOptions;
|
|
6
|
+
}) => string;
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@junobuild/did-tools",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Tools for generating APIs from DID files.",
|
|
5
|
+
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/node/index.mjs",
|
|
9
|
+
"module": "./dist/node/index.mjs",
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"default": "./dist/node/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"default": "./dist/node/index.mjs"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"rmdir": "node ../../scripts/rmdir.mjs",
|
|
30
|
+
"ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
|
|
31
|
+
"build": "npm run rmdir && mkdir -p dist && node esbuild.mjs && npm run ts-declaration",
|
|
32
|
+
"prepack": "npm run build"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/junobuild/juno-js.git",
|
|
37
|
+
"directory": "packages/did-tools"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/junobuild/juno-js"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"blockchain-as-a-service",
|
|
44
|
+
"baas",
|
|
45
|
+
"dapps",
|
|
46
|
+
"dapps-development",
|
|
47
|
+
"internet computer",
|
|
48
|
+
"smart-contracts",
|
|
49
|
+
"web3",
|
|
50
|
+
"utilities",
|
|
51
|
+
"utils",
|
|
52
|
+
"cli"
|
|
53
|
+
],
|
|
54
|
+
"homepage": "https://juno.build"
|
|
55
|
+
}
|