rate-core 0.5.3 → 0.5.4

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/lib/rate.js CHANGED
@@ -41,6 +41,9 @@ exports.rateModel = {
41
41
  histories: {
42
42
  type: 'array',
43
43
  typeof: exports.rateHistoryModel
44
+ },
45
+ anonymous: {
46
+ type: 'boolean',
44
47
  }
45
48
  };
46
49
  exports.infoModel = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rate-core",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "rate",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/rate.ts CHANGED
@@ -7,6 +7,9 @@ export interface RateId {
7
7
  export interface BaseRate {
8
8
  author: string;
9
9
  authorURL?: string;
10
+ name: string;
11
+ displayName: string;
12
+ anonymous: boolean;
10
13
  rate: number;
11
14
  }
12
15
  export interface Rate extends BaseRate {
@@ -115,6 +118,9 @@ export const rateModel: Attributes = {
115
118
  histories: {
116
119
  type: 'array',
117
120
  typeof: rateHistoryModel
121
+ },
122
+ anonymous: {
123
+ type: 'boolean',
118
124
  }
119
125
  };
120
126