@shushed/helpers 0.0.113 → 0.0.114

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 CHANGED
@@ -127,42 +127,54 @@ declare const schema$r: {
127
127
  readonly type: "string";
128
128
  };
129
129
  readonly name: {
130
- readonly type: "string";
130
+ readonly type: readonly ["string", "null"];
131
131
  };
132
- readonly rgb: {
133
- readonly type: "array";
134
- readonly items: {
135
- readonly type: "number";
136
- };
132
+ readonly "rg,b": {
133
+ readonly anyOf: readonly [{
134
+ readonly type: "null";
135
+ }, {
136
+ readonly type: "array";
137
+ readonly items: {
138
+ readonly type: "number";
139
+ };
140
+ }];
137
141
  };
138
142
  readonly cmyk: {
139
- readonly type: "array";
140
- readonly items: {
141
- readonly type: "number";
142
- };
143
+ readonly anyOf: readonly [{
144
+ readonly type: "null";
145
+ }, {
146
+ readonly type: "array";
147
+ readonly items: {
148
+ readonly type: "number";
149
+ };
150
+ }];
143
151
  };
144
152
  readonly pantone: {
145
- readonly type: "object";
146
- readonly properties: {
147
- readonly name: {
148
- readonly type: "string";
149
- };
150
- readonly system: {
151
- readonly type: "string";
152
- readonly pattern: "^[A-Z0-9-]+$";
153
- };
154
- readonly id: {
155
- readonly type: "string";
156
- readonly pattern: "^[A-Z0-9-]+$";
153
+ readonly anyOf: readonly [{
154
+ readonly type: "null";
155
+ }, {
156
+ readonly type: "object";
157
+ readonly properties: {
158
+ readonly name: {
159
+ readonly type: "string";
160
+ };
161
+ readonly system: {
162
+ readonly type: "string";
163
+ readonly pattern: "^[A-Z0-9-]+$";
164
+ };
165
+ readonly id: {
166
+ readonly type: "string";
167
+ readonly pattern: "^[A-Z0-9-]+$";
168
+ };
157
169
  };
158
- };
170
+ }];
159
171
  };
160
172
  readonly display_name: {
161
- readonly type: "string";
173
+ readonly type: readonly ["string", "null"];
162
174
  readonly pattern: "^[ a-z-]+$";
163
175
  };
164
176
  readonly family_display_name: {
165
- readonly type: "string";
177
+ readonly type: readonly ["string", "null"];
166
178
  readonly pattern: "^[ a-z]+$";
167
179
  };
168
180
  readonly source_asset: {
@@ -30091,17 +30103,17 @@ type __MainSchema$x = ("AFN" | "ALL" | "DZD" | "USD" | "EUR" | "AOA" | "XCD" | "
30091
30103
 
30092
30104
  interface __MainSchema$w {
30093
30105
  colour_id: string;
30094
- name?: string;
30095
- rgb?: number[];
30096
- cmyk?: number[];
30097
- pantone?: {
30106
+ name?: (string | null);
30107
+ "rg,b"?: (null | number[]);
30108
+ cmyk?: (null | number[]);
30109
+ pantone?: (null | {
30098
30110
  name?: string;
30099
30111
  system?: string;
30100
30112
  id?: string;
30101
30113
  [k: string]: unknown;
30102
- };
30103
- display_name?: string;
30104
- family_display_name?: string;
30114
+ });
30115
+ display_name?: (string | null);
30116
+ family_display_name?: (string | null);
30105
30117
  source_asset?: Asset;
30106
30118
  }
30107
30119
  interface Asset {
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ var schema4 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "
72
72
  var currency_default = schema4;
73
73
 
74
74
  // dist-dereferenced/development-colour.ts
75
- var schema5 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Development Colour", "type": "object", "additionalProperties": false, "properties": { "colour_id": { "type": "string" }, "name": { "type": "string" }, "rgb": { "type": "array", "items": { "type": "number" } }, "cmyk": { "type": "array", "items": { "type": "number" } }, "pantone": { "type": "object", "properties": { "name": { "type": "string" }, "system": { "type": "string", "pattern": "^[A-Z0-9-]+$" }, "id": { "type": "string", "pattern": "^[A-Z0-9-]+$" } } }, "display_name": { "type": "string", "pattern": "^[ a-z-]+$" }, "family_display_name": { "type": "string", "pattern": "^[ a-z]+$" }, "source_asset": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "source_url": { "type": "string" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "content_type": { "type": "string", "pattern": "^[a-z0-9-]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-]+$" } }, "required": ["source_url", "content_type", "last_modified_at"] } }, "required": ["colour_id"], "$id": "https://shushed.example.com/development-colour.schema.json" };
75
+ var schema5 = { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Development Colour", "type": "object", "additionalProperties": false, "properties": { "colour_id": { "type": "string" }, "name": { "type": ["string", "null"] }, "rg,b": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "cmyk": { "anyOf": [{ "type": "null" }, { "type": "array", "items": { "type": "number" } }] }, "pantone": { "anyOf": [{ "type": "null" }, { "type": "object", "properties": { "name": { "type": "string" }, "system": { "type": "string", "pattern": "^[A-Z0-9-]+$" }, "id": { "type": "string", "pattern": "^[A-Z0-9-]+$" } } }] }, "display_name": { "type": ["string", "null"], "pattern": "^[ a-z-]+$" }, "family_display_name": { "type": ["string", "null"], "pattern": "^[ a-z]+$" }, "source_asset": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Asset", "type": "object", "additionalProperties": false, "properties": { "source_url": { "type": "string" }, "last_modified_at": { "type": "string", "format": "date-time" }, "width": { "type": "integer", "minimum": 0 }, "height": { "type": "integer", "minimum": 0 }, "content_type": { "type": "string", "pattern": "^[a-z0-9-]+$" }, "file_name": { "type": "string", "pattern": "^[a-z0-9-]+$" } }, "required": ["source_url", "content_type", "last_modified_at"] } }, "required": ["colour_id"], "$id": "https://shushed.example.com/development-colour.schema.json" };
76
76
  var development_colour_default = schema5;
77
77
 
78
78
  // dist-dereferenced/money.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.113",
3
+ "version": "0.0.114",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",