@snapshot-labs/snapshot.js 0.7.2 → 0.7.3
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/dist/index.d.ts +12 -0
- package/dist/schemas/index.d.ts +12 -0
- package/dist/snapshot.cjs.js +26 -1
- package/dist/snapshot.esm.js +26 -1
- package/dist/snapshot.min.js +5 -5
- package/package.json +1 -1
- package/src/schemas/alias.json +18 -0
- package/src/schemas/index.ts +3 -1
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/Alias",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Alias": {
|
|
6
|
+
"title": "Alias",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"alias": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "address"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": ["alias"],
|
|
15
|
+
"additionalProperties": false
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
package/src/schemas/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import vote from './vote.json';
|
|
|
5
5
|
import profile from './profile.json';
|
|
6
6
|
import statement from './statement.json';
|
|
7
7
|
import zodiac from './zodiac.json';
|
|
8
|
+
import alias from './alias.json';
|
|
8
9
|
|
|
9
10
|
export default {
|
|
10
11
|
space: space.definitions.Space,
|
|
@@ -13,5 +14,6 @@ export default {
|
|
|
13
14
|
vote: vote.definitions.Vote,
|
|
14
15
|
profile: profile.definitions.Profile,
|
|
15
16
|
statement: statement.definitions.Statement,
|
|
16
|
-
zodiac: zodiac.definitions.Zodiac
|
|
17
|
+
zodiac: zodiac.definitions.Zodiac,
|
|
18
|
+
alias: alias.definitions.Alias
|
|
17
19
|
};
|