@esri/solution-file 5.5.1 → 5.6.1
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/cjs/file.js +12 -16
- package/dist/cjs/file.js.map +1 -1
- package/dist/esm/file.js +12 -16
- package/dist/esm/file.js.map +1 -1
- package/package.json +5 -6
package/dist/cjs/file.js
CHANGED
|
@@ -33,17 +33,15 @@ const common = tslib_1.__importStar(require("@esri/solution-common"));
|
|
|
33
33
|
* @returns A promise that will resolve when the template has been created
|
|
34
34
|
*/
|
|
35
35
|
function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication) {
|
|
36
|
-
return new Promise(resolve => {
|
|
36
|
+
return new Promise((resolve) => {
|
|
37
37
|
// Init template
|
|
38
38
|
const itemTemplate = common.createInitializedItemTemplate(itemInfo);
|
|
39
39
|
// Templatize item info property values
|
|
40
40
|
itemTemplate.item.id = common.templatizeTerm(itemTemplate.item.id, itemTemplate.item.id, ".itemId");
|
|
41
41
|
// Request file
|
|
42
|
-
const dataPromise = new Promise(dataResolve => {
|
|
42
|
+
const dataPromise = new Promise((dataResolve) => {
|
|
43
43
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
44
|
-
common
|
|
45
|
-
.getItemDataAsFile(itemTemplate.itemId, itemTemplate.item.name, srcAuthentication)
|
|
46
|
-
.then(response => {
|
|
44
|
+
common.getItemDataAsFile(itemTemplate.itemId, itemTemplate.item.name, srcAuthentication).then((response) => {
|
|
47
45
|
if (!response || response.size === 0) {
|
|
48
46
|
dataResolve(null);
|
|
49
47
|
}
|
|
@@ -56,20 +54,20 @@ function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication)
|
|
|
56
54
|
const relatedPromise = Promise.resolve({});
|
|
57
55
|
// Errors are handled as resolved empty values; this means that there's no `reject` clause to handle, hence:
|
|
58
56
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
59
|
-
Promise.all([dataPromise, relatedPromise]).then(responses => {
|
|
57
|
+
Promise.all([dataPromise, relatedPromise]).then((responses) => {
|
|
60
58
|
const [itemDataResponse] = responses;
|
|
61
59
|
if (itemDataResponse) {
|
|
62
60
|
const resource = common.convertBlobToSupportableResource(itemDataResponse, itemTemplate.item.name);
|
|
63
61
|
itemTemplate.properties[resource.filename] = resource.mimeType;
|
|
64
|
-
const storageName = common.convertItemResourceToStorageResource(itemTemplate.itemId, resource.blob.name, common.SolutionTemplateFormatVersion,
|
|
62
|
+
const storageName = common.convertItemResourceToStorageResource(itemTemplate.itemId, resource.blob.name, common.SolutionTemplateFormatVersion, resource.blob.name === resource.filename
|
|
65
63
|
? common.SolutionResourceType.data
|
|
66
|
-
: common.SolutionResourceType.fakezip)
|
|
64
|
+
: common.SolutionResourceType.fakezip);
|
|
67
65
|
// Add the data file to the template so that it can be uploaded with the other resources in the solution
|
|
68
66
|
const dataFile = {
|
|
69
67
|
itemId: itemTemplate.itemId,
|
|
70
68
|
file: resource.blob,
|
|
71
69
|
folder: storageName.folder,
|
|
72
|
-
filename: storageName.filename
|
|
70
|
+
filename: storageName.filename,
|
|
73
71
|
};
|
|
74
72
|
itemTemplate.dataFile = dataFile;
|
|
75
73
|
// Update the template's resources
|
|
@@ -84,7 +82,7 @@ function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication)
|
|
|
84
82
|
}
|
|
85
83
|
exports.convertItemToTemplate = convertItemToTemplate;
|
|
86
84
|
function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
87
|
-
return new Promise(resolve => {
|
|
85
|
+
return new Promise((resolve) => {
|
|
88
86
|
// Interrupt process if progress callback returns `false`
|
|
89
87
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
|
|
90
88
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
|
|
@@ -101,26 +99,24 @@ function createItemFromTemplate(template, templateDictionary, destinationAuthent
|
|
|
101
99
|
// Create the item, then update its URL with its new id
|
|
102
100
|
common
|
|
103
101
|
.createItemWithData(newItemTemplate.item, newItemTemplate.data, destinationAuthentication, templateDictionary.folderId)
|
|
104
|
-
.then(createResponse => {
|
|
102
|
+
.then((createResponse) => {
|
|
105
103
|
// Interrupt process if progress callback returns `false`
|
|
106
104
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.id)) {
|
|
107
105
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
|
|
108
|
-
common
|
|
109
|
-
.removeItem(createResponse.id, destinationAuthentication)
|
|
110
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
106
|
+
common.removeItem(createResponse.id, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
111
107
|
}
|
|
112
108
|
else {
|
|
113
109
|
// Add the new item to the settings
|
|
114
110
|
newItemTemplate.itemId = createResponse.id;
|
|
115
111
|
templateDictionary[template.itemId] = {
|
|
116
|
-
itemId: createResponse.id
|
|
112
|
+
itemId: createResponse.id,
|
|
117
113
|
};
|
|
118
114
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.id);
|
|
119
115
|
resolve({
|
|
120
116
|
item: newItemTemplate,
|
|
121
117
|
id: createResponse.id,
|
|
122
118
|
type: newItemTemplate.type,
|
|
123
|
-
postProcess: false
|
|
119
|
+
postProcess: false,
|
|
124
120
|
});
|
|
125
121
|
}
|
|
126
122
|
}, () => {
|
package/dist/cjs/file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/file.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;AAEH;;;;GAIG;AAEH,sEAAgD;AAEhD,wHAAwH;AAExH;;;;;;;GAOG;AACH,SAAgB,qBAAq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C,UAAU,CAAC,cAAc,CAAC,EAAE,EAAE,yBAAyB,CAAC,CAAC,IAAI,CAClE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAClE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CACnE,CAAC;aACH;iBAAM;gBACL,mCAAmC;gBACnC,eAAe,CAAC,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC;gBAC3C,kBAAkB,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG;oBACpC,MAAM,EAAE,cAAc,CAAC,EAAE;iBAC1B,CAAC;gBAEF,oBAAoB,CAClB,QAAQ,CAAC,MAAM,EACf,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EACnC,QAAQ,CAAC,6BAA6B,GAAG,CAAC,EAC1C,cAAc,CAAC,EAAE,CAClB,CAAC;gBAEF,OAAO,CAAC;oBACN,IAAI,EAAE,eAAe;oBACrB,EAAE,EAAE,cAAc,CAAC,EAAE;oBACrB,IAAI,EAAE,eAAe,CAAC,IAAI;oBAC1B,WAAW,EAAE,KAAK;iBACnB,CAAC,CAAC;aACJ;QACH,CAAC,EACD,GAAG,EAAE;YACH,oBAAoB,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YAC5E,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAuB;QACvF,CAAC,CACF,CAAC;IACN,CAAC,CAAC,CAAC;AACL,CAAC;AA1ED,wDA0EC"}
|
package/dist/esm/file.js
CHANGED
|
@@ -29,17 +29,15 @@ import * as common from "@esri/solution-common";
|
|
|
29
29
|
* @returns A promise that will resolve when the template has been created
|
|
30
30
|
*/
|
|
31
31
|
export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentication) {
|
|
32
|
-
return new Promise(resolve => {
|
|
32
|
+
return new Promise((resolve) => {
|
|
33
33
|
// Init template
|
|
34
34
|
const itemTemplate = common.createInitializedItemTemplate(itemInfo);
|
|
35
35
|
// Templatize item info property values
|
|
36
36
|
itemTemplate.item.id = common.templatizeTerm(itemTemplate.item.id, itemTemplate.item.id, ".itemId");
|
|
37
37
|
// Request file
|
|
38
|
-
const dataPromise = new Promise(dataResolve => {
|
|
38
|
+
const dataPromise = new Promise((dataResolve) => {
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
40
|
-
common
|
|
41
|
-
.getItemDataAsFile(itemTemplate.itemId, itemTemplate.item.name, srcAuthentication)
|
|
42
|
-
.then(response => {
|
|
40
|
+
common.getItemDataAsFile(itemTemplate.itemId, itemTemplate.item.name, srcAuthentication).then((response) => {
|
|
43
41
|
if (!response || response.size === 0) {
|
|
44
42
|
dataResolve(null);
|
|
45
43
|
}
|
|
@@ -52,20 +50,20 @@ export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentic
|
|
|
52
50
|
const relatedPromise = Promise.resolve({});
|
|
53
51
|
// Errors are handled as resolved empty values; this means that there's no `reject` clause to handle, hence:
|
|
54
52
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
55
|
-
Promise.all([dataPromise, relatedPromise]).then(responses => {
|
|
53
|
+
Promise.all([dataPromise, relatedPromise]).then((responses) => {
|
|
56
54
|
const [itemDataResponse] = responses;
|
|
57
55
|
if (itemDataResponse) {
|
|
58
56
|
const resource = common.convertBlobToSupportableResource(itemDataResponse, itemTemplate.item.name);
|
|
59
57
|
itemTemplate.properties[resource.filename] = resource.mimeType;
|
|
60
|
-
const storageName = common.convertItemResourceToStorageResource(itemTemplate.itemId, resource.blob.name, common.SolutionTemplateFormatVersion,
|
|
58
|
+
const storageName = common.convertItemResourceToStorageResource(itemTemplate.itemId, resource.blob.name, common.SolutionTemplateFormatVersion, resource.blob.name === resource.filename
|
|
61
59
|
? common.SolutionResourceType.data
|
|
62
|
-
: common.SolutionResourceType.fakezip)
|
|
60
|
+
: common.SolutionResourceType.fakezip);
|
|
63
61
|
// Add the data file to the template so that it can be uploaded with the other resources in the solution
|
|
64
62
|
const dataFile = {
|
|
65
63
|
itemId: itemTemplate.itemId,
|
|
66
64
|
file: resource.blob,
|
|
67
65
|
folder: storageName.folder,
|
|
68
|
-
filename: storageName.filename
|
|
66
|
+
filename: storageName.filename,
|
|
69
67
|
};
|
|
70
68
|
itemTemplate.dataFile = dataFile;
|
|
71
69
|
// Update the template's resources
|
|
@@ -79,7 +77,7 @@ export function convertItemToTemplate(itemInfo, destAuthentication, srcAuthentic
|
|
|
79
77
|
});
|
|
80
78
|
}
|
|
81
79
|
export function createItemFromTemplate(template, templateDictionary, destinationAuthentication, itemProgressCallback) {
|
|
82
|
-
return new Promise(resolve => {
|
|
80
|
+
return new Promise((resolve) => {
|
|
83
81
|
// Interrupt process if progress callback returns `false`
|
|
84
82
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Started, 0)) {
|
|
85
83
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Ignored, 0);
|
|
@@ -96,26 +94,24 @@ export function createItemFromTemplate(template, templateDictionary, destination
|
|
|
96
94
|
// Create the item, then update its URL with its new id
|
|
97
95
|
common
|
|
98
96
|
.createItemWithData(newItemTemplate.item, newItemTemplate.data, destinationAuthentication, templateDictionary.folderId)
|
|
99
|
-
.then(createResponse => {
|
|
97
|
+
.then((createResponse) => {
|
|
100
98
|
// Interrupt process if progress callback returns `false`
|
|
101
99
|
if (!itemProgressCallback(template.itemId, common.EItemProgressStatus.Created, template.estimatedDeploymentCostFactor / 2, createResponse.id)) {
|
|
102
100
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Cancelled, 0);
|
|
103
|
-
common
|
|
104
|
-
.removeItem(createResponse.id, destinationAuthentication)
|
|
105
|
-
.then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
101
|
+
common.removeItem(createResponse.id, destinationAuthentication).then(() => resolve(common.generateEmptyCreationResponse(template.type)), () => resolve(common.generateEmptyCreationResponse(template.type)));
|
|
106
102
|
}
|
|
107
103
|
else {
|
|
108
104
|
// Add the new item to the settings
|
|
109
105
|
newItemTemplate.itemId = createResponse.id;
|
|
110
106
|
templateDictionary[template.itemId] = {
|
|
111
|
-
itemId: createResponse.id
|
|
107
|
+
itemId: createResponse.id,
|
|
112
108
|
};
|
|
113
109
|
itemProgressCallback(template.itemId, common.EItemProgressStatus.Finished, template.estimatedDeploymentCostFactor / 2, createResponse.id);
|
|
114
110
|
resolve({
|
|
115
111
|
item: newItemTemplate,
|
|
116
112
|
id: createResponse.id,
|
|
117
113
|
type: newItemTemplate.type,
|
|
118
|
-
postProcess: false
|
|
114
|
+
postProcess: false,
|
|
119
115
|
});
|
|
120
116
|
}
|
|
121
117
|
}, () => {
|
package/dist/esm/file.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/file.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,wHAAwH;AAExH;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,QAAa,EACb,kBAAsC,EACtC,iBAAqC;IAErC,OAAO,IAAI,OAAO,CAAuB,OAAO,
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/file.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC;AAEhD,wHAAwH;AAExH;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,QAAa,EACb,kBAAsC,EACtC,iBAAqC;IAErC,OAAO,IAAI,OAAO,CAAuB,CAAC,OAAO,E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B,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG;oBACpC,MAAM,EAAE,cAAc,CAAC,EAAE;iBAC1B,CAAC;gBAEF,oBAAoB,CAClB,QAAQ,CAAC,MAAM,EACf,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EACnC,QAAQ,CAAC,6BAA6B,GAAG,CAAC,EAC1C,cAAc,CAAC,EAAE,CAClB,CAAC;gBAEF,OAAO,CAAC;oBACN,IAAI,EAAE,eAAe;oBACrB,EAAE,EAAE,cAAc,CAAC,EAAE;oBACrB,IAAI,EAAE,eAAe,CAAC,IAAI;oBAC1B,WAAW,EAAE,KAAK;iBACnB,CAAC,CAAC;aACJ;QACH,CAAC,EACD,GAAG,EAAE;YACH,oBAAoB,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;YAC5E,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAuB;QACvF,CAAC,CACF,CAAC;IACN,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/solution-file",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.1",
|
|
4
4
|
"description": "Manages the creation and deployment of item types that contain files for @esri/solution.js.",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -19,9 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/jasmine": "^5.1.4",
|
|
22
|
-
"
|
|
23
|
-
"jasmine": "^5.
|
|
24
|
-
"jasmine-core": "^5.1.2",
|
|
22
|
+
"jasmine": "^5.2.0",
|
|
23
|
+
"jasmine-core": "^5.2.0",
|
|
25
24
|
"npm-check-updates": "^16.14.20"
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {
|
|
@@ -34,7 +33,7 @@
|
|
|
34
33
|
"@esri/hub-initiatives": "^14.0.0",
|
|
35
34
|
"@esri/hub-sites": "^15.0.0",
|
|
36
35
|
"@esri/hub-teams": "^14.1.1",
|
|
37
|
-
"@esri/solution-common": "^5.
|
|
36
|
+
"@esri/solution-common": "^5.6.1",
|
|
38
37
|
"tslib": "1.14.1"
|
|
39
38
|
},
|
|
40
39
|
"scripts": {
|
|
@@ -88,5 +87,5 @@
|
|
|
88
87
|
"esri",
|
|
89
88
|
"ES6"
|
|
90
89
|
],
|
|
91
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "6b22b65de77dbbc11cfedbc074db3fef568a664b"
|
|
92
91
|
}
|