@twin.org/node-core 0.0.2-next.8 → 0.0.3-next.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/README.md +1 -1
- package/dist/es/bootstrap.js +374 -0
- package/dist/es/bootstrap.js.map +1 -0
- package/dist/es/builders/engineEnvBuilder.js +1051 -0
- package/dist/es/builders/engineEnvBuilder.js.map +1 -0
- package/dist/es/builders/engineServerEnvBuilder.js +197 -0
- package/dist/es/builders/engineServerEnvBuilder.js.map +1 -0
- package/dist/es/builders/extensionsBuilder.js +100 -0
- package/dist/es/builders/extensionsBuilder.js.map +1 -0
- package/dist/es/defaults.js +9 -0
- package/dist/es/defaults.js.map +1 -0
- package/dist/es/identity.js +169 -0
- package/dist/es/identity.js.map +1 -0
- package/dist/es/index.js +23 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/ICacheMetadata.js +4 -0
- package/dist/es/models/ICacheMetadata.js.map +1 -0
- package/dist/es/models/IEngineEnvironmentVariables.js +4 -0
- package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -0
- package/dist/es/models/IEngineServerEnvironmentVariables.js +2 -0
- package/dist/es/models/IEngineServerEnvironmentVariables.js.map +1 -0
- package/dist/es/models/IModuleProtocol.js +2 -0
- package/dist/es/models/IModuleProtocol.js.map +1 -0
- package/dist/es/models/INodeEngineConfig.js +2 -0
- package/dist/es/models/INodeEngineConfig.js.map +1 -0
- package/dist/es/models/INodeEngineState.js +2 -0
- package/dist/es/models/INodeEngineState.js.map +1 -0
- package/dist/es/models/INodeEnvironmentVariables.js +2 -0
- package/dist/es/models/INodeEnvironmentVariables.js.map +1 -0
- package/dist/es/models/INodeOptions.js +2 -0
- package/dist/es/models/INodeOptions.js.map +1 -0
- package/dist/es/models/IProtocolHandlerResult.js +4 -0
- package/dist/es/models/IProtocolHandlerResult.js.map +1 -0
- package/dist/es/models/moduleProtocol.js +29 -0
- package/dist/es/models/moduleProtocol.js.map +1 -0
- package/dist/es/models/nodeExtensionMethods.js +2 -0
- package/dist/es/models/nodeExtensionMethods.js.map +1 -0
- package/dist/es/models/nodeFeatures.js +21 -0
- package/dist/es/models/nodeFeatures.js.map +1 -0
- package/dist/es/node.js +265 -0
- package/dist/es/node.js.map +1 -0
- package/dist/es/server.js +74 -0
- package/dist/es/server.js.map +1 -0
- package/dist/es/utils.js +418 -0
- package/dist/es/utils.js.map +1 -0
- package/dist/types/bootstrap.d.ts +27 -10
- package/dist/types/builders/engineEnvBuilder.d.ts +3 -2
- package/dist/types/builders/engineServerEnvBuilder.d.ts +4 -3
- package/dist/types/builders/extensionsBuilder.d.ts +32 -0
- package/dist/types/defaults.d.ts +6 -0
- package/dist/types/identity.d.ts +14 -0
- package/dist/types/index.d.ts +20 -11
- package/dist/types/models/ICacheMetadata.d.ts +17 -0
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +132 -24
- package/dist/types/models/IEngineServerEnvironmentVariables.d.ts +12 -3
- package/dist/types/models/IModuleProtocol.d.ts +18 -0
- package/dist/types/models/INodeEngineConfig.d.ts +6 -0
- package/dist/types/models/INodeEngineState.d.ts +22 -0
- package/dist/types/models/INodeEnvironmentVariables.d.ts +50 -10
- package/dist/types/models/INodeOptions.d.ts +14 -3
- package/dist/types/models/IProtocolHandlerResult.d.ts +13 -0
- package/dist/types/models/moduleProtocol.d.ts +29 -0
- package/dist/types/models/nodeExtensionMethods.d.ts +27 -0
- package/dist/types/models/nodeFeatures.d.ts +5 -5
- package/dist/types/node.d.ts +17 -7
- package/dist/types/server.d.ts +9 -6
- package/dist/types/utils.d.ts +87 -2
- package/docs/changelog.md +185 -0
- package/docs/detailed-guide.md +129 -0
- package/docs/reference/functions/bootstrap.md +1 -1
- package/docs/reference/functions/bootstrapAuth.md +1 -1
- package/docs/reference/functions/bootstrapBlobEncryption.md +1 -1
- package/docs/reference/functions/bootstrapContextIdHandlers.md +35 -0
- package/docs/reference/functions/bootstrapImmutableProofMethod.md +1 -1
- package/docs/reference/functions/{bootstrapNodeUser.md → bootstrapNodeAdminUser.md} +3 -3
- package/docs/reference/functions/{bootstrapNodeIdentity.md → bootstrapNodeId.md} +3 -3
- package/docs/reference/functions/bootstrapSynchronisedStorage.md +1 -1
- package/docs/reference/functions/bootstrapTenantId.md +35 -0
- package/docs/reference/functions/buildConfiguration.md +2 -2
- package/docs/reference/functions/buildEngineConfiguration.md +8 -2
- package/docs/reference/functions/buildEngineServerConfiguration.md +9 -3
- package/docs/reference/functions/createModuleImportUrl.md +21 -0
- package/docs/reference/functions/directoryExists.md +19 -0
- package/docs/reference/functions/extensionsConfiguration.md +25 -0
- package/docs/reference/functions/extensionsInitialiseEngine.md +25 -0
- package/docs/reference/functions/extensionsInitialiseEngineServer.md +31 -0
- package/docs/reference/functions/getExtensionsCacheDir.md +31 -0
- package/docs/reference/functions/getFiles.md +19 -0
- package/docs/reference/functions/getSubFolders.md +19 -0
- package/docs/reference/functions/handleHttpsProtocol.md +49 -0
- package/docs/reference/functions/handleNpmProtocol.md +31 -0
- package/docs/reference/functions/hashUrl.md +19 -0
- package/docs/reference/functions/isCacheExpired.md +31 -0
- package/docs/reference/functions/overrideModuleImport.md +8 -2
- package/docs/reference/functions/parseModuleProtocol.md +19 -0
- package/docs/reference/functions/resolvePackageEntryPoint.md +32 -0
- package/docs/reference/functions/run.md +3 -3
- package/docs/reference/functions/shutdownExtensions.md +25 -0
- package/docs/reference/functions/start.md +11 -5
- package/docs/reference/index.md +36 -2
- package/docs/reference/interfaces/ICacheMetadata.md +27 -0
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +255 -37
- package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +1696 -5
- package/docs/reference/interfaces/IModuleProtocol.md +27 -0
- package/docs/reference/interfaces/INodeEngineConfig.md +7 -0
- package/docs/reference/interfaces/INodeEngineState.md +39 -0
- package/docs/reference/interfaces/INodeEnvironmentVariables.md +609 -165
- package/docs/reference/interfaces/INodeOptions.md +27 -3
- package/docs/reference/interfaces/IProtocolHandlerResult.md +19 -0
- package/docs/reference/type-aliases/ModuleProtocol.md +5 -0
- package/docs/reference/type-aliases/NodeExtensionInitialiseEngineMethod.md +18 -0
- package/docs/reference/type-aliases/NodeExtensionInitialiseEngineServerMethod.md +24 -0
- package/docs/reference/type-aliases/NodeExtensionInitialiseMethod.md +23 -0
- package/docs/reference/type-aliases/NodeExtensionShutdownMethod.md +10 -0
- package/docs/reference/variables/ATTESTATION_VERIFICATION_METHOD_ID.md +3 -0
- package/docs/reference/variables/AUTH_SIGNING_KEY_ID.md +3 -0
- package/docs/reference/variables/BLOB_STORAGE_ENCRYPTION_KEY_ID.md +3 -0
- package/docs/reference/variables/IMMUTABLE_PROOF_VERIFICATION_METHOD_ID.md +3 -0
- package/docs/reference/variables/ModuleProtocol.md +37 -0
- package/docs/reference/variables/NodeFeatures.md +8 -8
- package/docs/reference/variables/SYNCHRONISED_STORAGE_BLOB_STORAGE_ENCRYPTION_KEY_ID.md +3 -0
- package/docs/reference/variables/VC_AUTHENTICATION_VERIFICATION_METHOD_ID.md +3 -0
- package/locales/en.json +27 -9
- package/package.json +27 -9
- package/dist/cjs/index.cjs +0 -1910
- package/dist/esm/index.mjs +0 -1870
|
@@ -26,6 +26,18 @@ The version of the server, defaults to the current version.
|
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
+
### envVars?
|
|
30
|
+
|
|
31
|
+
> `optional` **envVars**: `object`
|
|
32
|
+
|
|
33
|
+
Additional environment variables to set.
|
|
34
|
+
|
|
35
|
+
#### Index Signature
|
|
36
|
+
|
|
37
|
+
\[`key`: `string`\]: `string`
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
29
41
|
### envFilenames?
|
|
30
42
|
|
|
31
43
|
> `optional` **envFilenames**: `string`[]
|
|
@@ -38,7 +50,7 @@ Additional environment variable filenames to load, defaults to .env.
|
|
|
38
50
|
|
|
39
51
|
> `optional` **envPrefix**: `string`
|
|
40
52
|
|
|
41
|
-
The prefix for environment variables, defaults to "
|
|
53
|
+
The prefix for environment variables, defaults to "TWIN_".
|
|
42
54
|
|
|
43
55
|
***
|
|
44
56
|
|
|
@@ -113,15 +125,19 @@ Method to extend the engine environment variables with any additional custom con
|
|
|
113
125
|
|
|
114
126
|
### extendConfig()?
|
|
115
127
|
|
|
116
|
-
> `optional` **extendConfig**: (`config`) => `Promise`\<`void`\>
|
|
128
|
+
> `optional` **extendConfig**: (`envVars`, `config`) => `Promise`\<`void`\>
|
|
117
129
|
|
|
118
130
|
Method to extend the engine configuration with any additional custom configuration.
|
|
119
131
|
|
|
120
132
|
#### Parameters
|
|
121
133
|
|
|
134
|
+
##### envVars
|
|
135
|
+
|
|
136
|
+
[`INodeEnvironmentVariables`](INodeEnvironmentVariables.md)
|
|
137
|
+
|
|
122
138
|
##### config
|
|
123
139
|
|
|
124
|
-
`
|
|
140
|
+
[`INodeEngineConfig`](INodeEngineConfig.md)
|
|
125
141
|
|
|
126
142
|
#### Returns
|
|
127
143
|
|
|
@@ -171,3 +187,11 @@ Method to extend the engine server with any additional options.
|
|
|
171
187
|
|
|
172
188
|
The state storage to use for the engine.
|
|
173
189
|
If not provided, a default file-based state storage will be used.
|
|
190
|
+
|
|
191
|
+
***
|
|
192
|
+
|
|
193
|
+
### disableProcessExitOnFailure?
|
|
194
|
+
|
|
195
|
+
> `optional` **disableProcessExitOnFailure**: `boolean`
|
|
196
|
+
|
|
197
|
+
Disables process.exit calls on fatal errors and throws instead.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: IProtocolHandlerResult
|
|
2
|
+
|
|
3
|
+
The result from a protocol handler.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### resolvedPath
|
|
8
|
+
|
|
9
|
+
> **resolvedPath**: `string`
|
|
10
|
+
|
|
11
|
+
The resolved path to the module file.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### cached
|
|
16
|
+
|
|
17
|
+
> **cached**: `boolean`
|
|
18
|
+
|
|
19
|
+
Whether the module was cached.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Type Alias: NodeExtensionInitialiseEngineMethod()
|
|
2
|
+
|
|
3
|
+
> **NodeExtensionInitialiseEngineMethod** = (`engineCore`) => `Promise`\<`void`\>
|
|
4
|
+
|
|
5
|
+
The type for the initialise engine method of an extension module.
|
|
6
|
+
This is called when the engine has been constructed but not yet started.
|
|
7
|
+
|
|
8
|
+
## Parameters
|
|
9
|
+
|
|
10
|
+
### engineCore
|
|
11
|
+
|
|
12
|
+
`IEngineCore`
|
|
13
|
+
|
|
14
|
+
The engine core instance.
|
|
15
|
+
|
|
16
|
+
## Returns
|
|
17
|
+
|
|
18
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Type Alias: NodeExtensionInitialiseEngineServerMethod()
|
|
2
|
+
|
|
3
|
+
> **NodeExtensionInitialiseEngineServerMethod** = (`engineCore`, `engineServer`) => `Promise`\<`void`\>
|
|
4
|
+
|
|
5
|
+
The type for the initialise engine server method of an extension module.
|
|
6
|
+
This is called when the engine server has been constructed but not yet started.
|
|
7
|
+
|
|
8
|
+
## Parameters
|
|
9
|
+
|
|
10
|
+
### engineCore
|
|
11
|
+
|
|
12
|
+
`IEngineCore`
|
|
13
|
+
|
|
14
|
+
The engine core instance.
|
|
15
|
+
|
|
16
|
+
### engineServer
|
|
17
|
+
|
|
18
|
+
`IEngineServer`
|
|
19
|
+
|
|
20
|
+
The engine server instance.
|
|
21
|
+
|
|
22
|
+
## Returns
|
|
23
|
+
|
|
24
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Type Alias: NodeExtensionInitialiseMethod()
|
|
2
|
+
|
|
3
|
+
> **NodeExtensionInitialiseMethod** = (`envVars`, `nodeEngineConfig`) => `Promise`\<`void`\>
|
|
4
|
+
|
|
5
|
+
The type for the initialise method of an extension module.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### envVars
|
|
10
|
+
|
|
11
|
+
[`INodeEnvironmentVariables`](../interfaces/INodeEnvironmentVariables.md)
|
|
12
|
+
|
|
13
|
+
The environment variables for the node.
|
|
14
|
+
|
|
15
|
+
### nodeEngineConfig
|
|
16
|
+
|
|
17
|
+
[`INodeEngineConfig`](../interfaces/INodeEngineConfig.md)
|
|
18
|
+
|
|
19
|
+
The node engine config.
|
|
20
|
+
|
|
21
|
+
## Returns
|
|
22
|
+
|
|
23
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Type Alias: NodeExtensionShutdownMethod()
|
|
2
|
+
|
|
3
|
+
> **NodeExtensionShutdownMethod** = () => `Promise`\<`void`\>
|
|
4
|
+
|
|
5
|
+
The type for the shutdown method of an extension module.
|
|
6
|
+
This is called when the engine is shutting down.
|
|
7
|
+
|
|
8
|
+
## Returns
|
|
9
|
+
|
|
10
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Variable: ModuleProtocol
|
|
2
|
+
|
|
3
|
+
> `const` **ModuleProtocol**: `object`
|
|
4
|
+
|
|
5
|
+
The protocol types for modules.
|
|
6
|
+
|
|
7
|
+
## Type Declaration
|
|
8
|
+
|
|
9
|
+
### Local
|
|
10
|
+
|
|
11
|
+
> `readonly` **Local**: `"local"` = `"local"`
|
|
12
|
+
|
|
13
|
+
Local module (starts with . or / or file://).
|
|
14
|
+
|
|
15
|
+
### Npm
|
|
16
|
+
|
|
17
|
+
> `readonly` **Npm**: `"npm"` = `"npm"`
|
|
18
|
+
|
|
19
|
+
NPM package (starts with npm:).
|
|
20
|
+
|
|
21
|
+
### Https
|
|
22
|
+
|
|
23
|
+
> `readonly` **Https**: `"https"` = `"https"`
|
|
24
|
+
|
|
25
|
+
HTTPS URL (starts with https://).
|
|
26
|
+
|
|
27
|
+
### Http
|
|
28
|
+
|
|
29
|
+
> `readonly` **Http**: `"http"` = `"http"`
|
|
30
|
+
|
|
31
|
+
HTTP URL (starts with http://).
|
|
32
|
+
|
|
33
|
+
### Default
|
|
34
|
+
|
|
35
|
+
> `readonly` **Default**: `"default"` = `"default"`
|
|
36
|
+
|
|
37
|
+
Default/standard module resolution.
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
The features that can be enabled on the node.
|
|
6
6
|
|
|
7
|
-
## Type
|
|
7
|
+
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### NodeId
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **NodeId**: `"node-identity"` = `"node-identity"`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
NodeId - generates an identity for the node if not provided in config.
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### NodeAdminUser
|
|
16
16
|
|
|
17
|
-
> `readonly` **
|
|
17
|
+
> `readonly` **NodeAdminUser**: `"node-admin-user"` = `"node-admin-user"`
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
NodeAdminUser - generates an admin user for the node if not provided in config.
|
|
20
20
|
|
|
21
21
|
### NodeWallet
|
|
22
22
|
|
|
23
23
|
> `readonly` **NodeWallet**: `"node-wallet"` = `"node-wallet"`
|
|
24
24
|
|
|
25
|
-
NodeWallet - generates
|
|
25
|
+
NodeWallet - generates wallets for any identities that need them.
|
package/locales/en.json
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"error": {
|
|
3
3
|
"node": {
|
|
4
|
-
"storageFileRootNotSet": "{storageFileRoot} is not set, the server will not start without it, please set it in the shell or create a .env file"
|
|
4
|
+
"storageFileRootNotSet": "{storageFileRoot} is not set, the server will not start without it, please set it in the shell or create a .env file",
|
|
5
|
+
"extensionLoadingError": "Failed to load extension \"{extension}\"",
|
|
6
|
+
"insecureProtocol": "Cannot load extension from insecure protocol: {protocol}. Only HTTPS is allowed for remote extensions.",
|
|
7
|
+
"extensionDownloadFailed": "Failed to download extension from {url}",
|
|
8
|
+
"extensionNpmInstallFailed": "Failed to install npm extension: {package}",
|
|
9
|
+
"extensionSizeLimitExceeded": "Extension download size exceeds limit: {size} bytes > {limit} bytes"
|
|
5
10
|
}
|
|
6
11
|
},
|
|
7
12
|
"node": {
|
|
8
|
-
"terminateSignal": "Server terminating",
|
|
9
13
|
"generatingMnemonic": "Generating mnemonic \"{mnemonic}\"",
|
|
10
14
|
"storingMnemonic": "Storing mnemonic",
|
|
11
15
|
"existingMnemonic": "Mnemonic already exists",
|
|
12
16
|
"fundingWallet": "Funding wallet \"{address}\"",
|
|
13
17
|
"fundedWallet": "Wallet already funded",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
18
|
+
"processingIdentity": "Processing identity of type \"{identityType}\"",
|
|
19
|
+
"generatingIdentity": "Generating identity of type \"{identityType}\"",
|
|
20
|
+
"existingIdentity": "Identity already exists \"{identity}\"",
|
|
21
|
+
"createdIdentity": "Identity created \"{identity}\"",
|
|
17
22
|
"identityExplorer": "Identity explorer \"{url}\"",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
23
|
+
"creatingUser": "Creating user \"{email}\"",
|
|
24
|
+
"existingUser": "User already exists \"{email}\"",
|
|
20
25
|
"creatingAuthKey": "Creating authentication key \"{keyName}\"",
|
|
21
26
|
"existingAuthKey": "Authentication key already exists \"{keyName}\"",
|
|
22
27
|
"addingVerificationMethod": "Adding {title} verification method \"{methodId}\"",
|
|
@@ -29,8 +34,21 @@
|
|
|
29
34
|
"existingSynchronisedStorageBlobEncryptionKey": "Synchronised storage blob encryption key already exists \"{keyName}\"",
|
|
30
35
|
"creatingUserProfile": "Creating user profile \"{identity}\"",
|
|
31
36
|
"existingUserProfile": "User profile already exists \"{identity}\"",
|
|
32
|
-
"
|
|
37
|
+
"nodeId": "Node identity \"{identity}\"",
|
|
33
38
|
"nodeAdminUserEmail": "Node Admin User Email \"{email}\"",
|
|
34
|
-
"nodeAdminUserPassword": "Node Admin User Password \"{password}\""
|
|
39
|
+
"nodeAdminUserPassword": "Node Admin User Password \"{password}\"",
|
|
40
|
+
"extensionLoading": "Loading Extension",
|
|
41
|
+
"extensionInitialisingEngine": "Initialising engine for extension \"{extension}\"",
|
|
42
|
+
"extensionInitialisingEngineServer": "Initialising engine server for extension \"{extension}\"",
|
|
43
|
+
"extensionShutdown": "Shutdown extension \"{extension}\"",
|
|
44
|
+
"extendingEngine": "Extending Engine",
|
|
45
|
+
"extendingEngineServer": "Extending Engine Server",
|
|
46
|
+
"extensionSecurityWarning": "SECURITY WARNING: Loading extension from external URL: {url}",
|
|
47
|
+
"extensionNpmInstalling": "Installing npm extension",
|
|
48
|
+
"extensionHttpsDownloading": "Downloading HTTPS extension",
|
|
49
|
+
"extensionCacheExpired": "Cache expired for extension: {url}",
|
|
50
|
+
"extensionForceRefresh": "Force refresh enabled for extension: {url}",
|
|
51
|
+
"createdTenantId": "Created tenant id \"{identity}\" with api key \"{apiKey}\"",
|
|
52
|
+
"existingTenantId": "Existing tenant id \"{identity}\""
|
|
35
53
|
}
|
|
36
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/node-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-next.1",
|
|
4
4
|
"description": "TWIN Node Core for serving APIs using the specified configuration",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/api-auth-entity-storage-service": "next",
|
|
18
|
+
"@twin.org/api-tenant-processor": "next",
|
|
19
|
+
"@twin.org/cli-core": "next",
|
|
20
|
+
"@twin.org/context": "next",
|
|
18
21
|
"@twin.org/core": "next",
|
|
19
22
|
"@twin.org/crypto": "next",
|
|
20
23
|
"@twin.org/data-space-connector-models": "next",
|
|
@@ -28,27 +31,42 @@
|
|
|
28
31
|
"@twin.org/entity-storage-models": "next",
|
|
29
32
|
"@twin.org/identity-models": "next",
|
|
30
33
|
"@twin.org/modules": "next",
|
|
34
|
+
"@twin.org/rights-management-rest-client": "next",
|
|
35
|
+
"@twin.org/standards-w3c-odrl": "next",
|
|
31
36
|
"@twin.org/vault-models": "next",
|
|
32
37
|
"@twin.org/wallet-models": "next",
|
|
33
|
-
"dotenv": "17.2.
|
|
38
|
+
"dotenv": "17.2.3",
|
|
34
39
|
"schema-dts": "1.1.5"
|
|
35
40
|
},
|
|
36
|
-
"main": "./dist/
|
|
37
|
-
"module": "./dist/esm/index.mjs",
|
|
41
|
+
"main": "./dist/es/index.js",
|
|
38
42
|
"types": "./dist/types/index.d.ts",
|
|
39
43
|
"exports": {
|
|
40
44
|
".": {
|
|
41
45
|
"types": "./dist/types/index.d.ts",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
46
|
+
"import": "./dist/es/index.js",
|
|
47
|
+
"default": "./dist/es/index.js"
|
|
44
48
|
},
|
|
45
49
|
"./locales/*.json": "./locales/*.json"
|
|
46
50
|
},
|
|
47
51
|
"files": [
|
|
48
|
-
"dist/
|
|
49
|
-
"dist/esm",
|
|
52
|
+
"dist/es",
|
|
50
53
|
"dist/types",
|
|
51
54
|
"locales",
|
|
52
55
|
"docs"
|
|
53
|
-
]
|
|
56
|
+
],
|
|
57
|
+
"keywords": [
|
|
58
|
+
"twin",
|
|
59
|
+
"trade",
|
|
60
|
+
"iota",
|
|
61
|
+
"framework",
|
|
62
|
+
"blockchain",
|
|
63
|
+
"node",
|
|
64
|
+
"core",
|
|
65
|
+
"foundation",
|
|
66
|
+
"utilities"
|
|
67
|
+
],
|
|
68
|
+
"bugs": {
|
|
69
|
+
"url": "git+https://github.com/twinfoundation/node/issues"
|
|
70
|
+
},
|
|
71
|
+
"homepage": "https://twindev.org"
|
|
54
72
|
}
|