@taqueria/protocol 0.0.0-pr-659-420a2bbd → 0.0.0-pr-730-406498f7
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 +3 -21
- package/package.json +1 -8
- package/taqueria-protocol-types.ts +592 -63
- package/url-join.ts +73 -0
- package/url-parse.ts +150 -0
- package/Alias.ts +0 -34
- package/Command.ts +0 -33
- package/Config.ts +0 -181
- package/Crypto.ts +0 -3
- package/EconomicalProtocolHash.ts +0 -32
- package/Environment.ts +0 -44
- package/EphermalState.ts +0 -209
- package/Faucet.ts +0 -57
- package/HumanReadableIdentifier.ts +0 -30
- package/InstalledPlugin.ts +0 -37
- package/LoadedConfig.ts +0 -54
- package/NetworkConfig.ts +0 -50
- package/Operation.ts +0 -82
- package/Option.ts +0 -65
- package/ParsedOperation.ts +0 -43
- package/ParsedPluginInfo.ts +0 -56
- package/PersistentState.ts +0 -41
- package/PluginInfo.ts +0 -82
- package/PositionalArg.ts +0 -62
- package/Provisioner.ts +0 -74
- package/ProvisionerID.ts +0 -34
- package/Provisions.ts +0 -80
- package/PublicKeyHash.ts +0 -32
- package/RequestArgs.ts +0 -73
- package/SHA256.ts +0 -45
- package/SandboxAccountConfig.ts +0 -45
- package/SandboxConfig.ts +0 -74
- package/SanitizedAbsPath.ts +0 -33
- package/SanitizedArgs.ts +0 -215
- package/SanitizedPath.ts +0 -31
- package/SingleChar.ts +0 -29
- package/TaqError.ts +0 -66
- package/Task.ts +0 -80
- package/Tz.ts +0 -29
- package/Url.ts +0 -37
- package/Verb.ts +0 -31
- package/VersionNumber.ts +0 -34
- package/i18n.ts +0 -61
package/README.md
CHANGED
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
# Taqueria Protocol
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Provides a shared collection of TypeScript types used in Taqueria
|
|
4
4
|
|
|
5
|
-
This package is
|
|
6
|
-
be taken to assure that any changes made to the types do not depend
|
|
7
|
-
solely on a Node or Deno API.
|
|
5
|
+
This package is consumed by `taqueria` itself, as well as `taqueria-sdk`
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
- An internal schema, which parses a typed structure from other typed structures
|
|
11
|
-
- A raw schema, which parses a structure composed of primitive type
|
|
12
|
-
|
|
13
|
-
Each type is represented as its own module, with the rawSchema and type exported, along with two factory methods: make() and create().
|
|
14
|
-
|
|
15
|
-
To validate against the internal schema, use make(). To validate against the raw schema, use create().
|
|
16
|
-
|
|
17
|
-
## Tips
|
|
18
|
-
|
|
19
|
-
Zod schemas expose a default() method. This doesn't work well when the optional() method is used as well. As such, please use the transform() method to set default values.
|
|
20
|
-
|
|
21
|
-
E.g.
|
|
22
|
-
|
|
23
|
-
Instead of this: `z.string().default('contracts').optional()`
|
|
24
|
-
|
|
25
|
-
Use this: `z.string().optional().transform(val => val ?? 'contracts')`
|
|
7
|
+
This package can be consumed as an NPM package or included as a Deno module
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taqueria/protocol",
|
|
3
|
-
"version": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-730-406498f7",
|
|
4
4
|
"description": "A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,12 +30,5 @@
|
|
|
30
30
|
"homepage": "https://github.com/ecadlabs/taqueria#readme",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"typescript": "4.5.4"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@peculiar/webcrypto": "^1.4.0",
|
|
36
|
-
"batching-toposort": "^1.2.0",
|
|
37
|
-
"fluture": "^14.0.0",
|
|
38
|
-
"remeda": "^0.0.32",
|
|
39
|
-
"zod": "^3.16.0"
|
|
40
33
|
}
|
|
41
34
|
}
|