@solana-mobile/dapp-store-publishing-tools 0.13.1 → 0.14.0
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/CoreUtils.js +1 -1
- package/lib/create/ReleaseCore.js +3 -2
- package/lib/schemas/releaseJsonMetadata.json +5 -1
- package/package.json +1 -1
- package/src/CoreUtils.ts +1 -1
- package/src/create/ReleaseCore.ts +1 -0
- package/src/generated/releaseJsonMetadata.d.ts +1 -0
- package/src/schemas/releaseJsonMetadata.json +5 -1
- package/src/types.ts +1 -0
package/lib/CoreUtils.js
CHANGED
|
@@ -180,7 +180,7 @@ export var Constants = function Constants() {
|
|
|
180
180
|
"use strict";
|
|
181
181
|
_class_call_check(this, Constants);
|
|
182
182
|
};
|
|
183
|
-
_define_property(Constants, "PUBLISHING_SCHEMA_VER", "0.
|
|
183
|
+
_define_property(Constants, "PUBLISHING_SCHEMA_VER", "0.4.0");
|
|
184
184
|
export var truncateAddress = function(address) {
|
|
185
185
|
return "".concat(address.slice(0, 4), "...").concat(address.slice(address.length - 4, address.length));
|
|
186
186
|
};
|
|
@@ -362,7 +362,7 @@ var getMediaMetadata = function(item) {
|
|
|
362
362
|
export var createReleaseJson = function(param, publisherAddress) {
|
|
363
363
|
var releaseDetails = param.releaseDetails, appDetails = param.appDetails, publisherDetails = param.publisherDetails;
|
|
364
364
|
return _async_to_generator(function() {
|
|
365
|
-
var media, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, item, _, err, files, _iteratorAbruptCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, _value1, item1, _1, err1, releaseIcon, imgUri, tmpMedia, _2, releaseMetadata, _iteratorNormalCompletion, _didIteratorError2, _iteratorError2, _iterator2, _step2, _step_value, locale, strings, _strings_saga_features;
|
|
365
|
+
var media, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, item, _, err, files, _iteratorAbruptCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, _value1, item1, _1, err1, releaseIcon, imgUri, tmpMedia, _2, _publisherDetails_support_email, releaseMetadata, _iteratorNormalCompletion, _didIteratorError2, _iteratorError2, _iterator2, _step2, _step_value, locale, strings, _strings_saga_features;
|
|
366
366
|
return _ts_generator(this, function(_state) {
|
|
367
367
|
switch(_state.label){
|
|
368
368
|
case 0:
|
|
@@ -602,7 +602,8 @@ export var createReleaseJson = function(param, publisherAddress) {
|
|
|
602
602
|
publisher_details: {
|
|
603
603
|
name: publisherDetails.name,
|
|
604
604
|
website: publisherDetails.website,
|
|
605
|
-
contact: publisherDetails.email
|
|
605
|
+
contact: publisherDetails.email,
|
|
606
|
+
support_email: (_publisherDetails_support_email = publisherDetails.support_email) !== null && _publisherDetails_support_email !== void 0 ? _publisherDetails_support_email : publisherDetails.email
|
|
606
607
|
},
|
|
607
608
|
release_details: {
|
|
608
609
|
updated_on: new Date().toISOString(),
|
|
@@ -53,9 +53,13 @@
|
|
|
53
53
|
"contact": {
|
|
54
54
|
"type": "string",
|
|
55
55
|
"pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
|
|
56
|
+
},
|
|
57
|
+
"support_email": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
|
|
56
60
|
}
|
|
57
61
|
},
|
|
58
|
-
"required": ["name", "website", "contact"]
|
|
62
|
+
"required": ["name", "website", "contact", "support_email"]
|
|
59
63
|
},
|
|
60
64
|
"release_details": {
|
|
61
65
|
"type": "object",
|
package/package.json
CHANGED
package/src/CoreUtils.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
import { ComputeBudgetProgram } from "@solana/web3.js";
|
|
9
9
|
|
|
10
10
|
export class Constants {
|
|
11
|
-
static PUBLISHING_SCHEMA_VER = "0.
|
|
11
|
+
static PUBLISHING_SCHEMA_VER = "0.4.0";
|
|
12
12
|
}
|
|
13
13
|
export const truncateAddress = (address: string) => {
|
|
14
14
|
return `${address.slice(0, 4)}...${address.slice(
|
|
@@ -130,6 +130,7 @@ export const createReleaseJson = async (
|
|
|
130
130
|
name: publisherDetails.name,
|
|
131
131
|
website: publisherDetails.website,
|
|
132
132
|
contact: publisherDetails.email,
|
|
133
|
+
support_email: publisherDetails.support_email ?? publisherDetails.email,
|
|
133
134
|
},
|
|
134
135
|
release_details: {
|
|
135
136
|
updated_on: new Date().toISOString(),
|
|
@@ -53,9 +53,13 @@
|
|
|
53
53
|
"contact": {
|
|
54
54
|
"type": "string",
|
|
55
55
|
"pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
|
|
56
|
+
},
|
|
57
|
+
"support_email": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
|
|
56
60
|
}
|
|
57
61
|
},
|
|
58
|
-
"required": ["name", "website", "contact"]
|
|
62
|
+
"required": ["name", "website", "contact", "support_email"]
|
|
59
63
|
},
|
|
60
64
|
"release_details": {
|
|
61
65
|
"type": "object",
|