@esri/solution-common 1.3.1 → 1.3.2

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.
@@ -13,18 +13,20 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import { SolutionResourceType } from "./solution-resource";
16
17
  /**
17
18
  * Generates a folder and filename for storing a copy of an item's resource in a storage item.
18
19
  *
19
20
  * @param prefix Base prefix for resource
20
- * @param storageVersion Version of the Solution template
21
21
  * @param sourceResourceFilename Either filename or folder/filename to resource
22
+ * @param storageVersion Version of the Solution template
23
+ * @param storageFileType Optional argument that when supplied will control the how the prefix is created
22
24
  * @return Folder and filename for storage; folder is the itemID plus ("_" + storageFolder) if storageFolder
23
25
  * exists plus ("_" + part of sourceResourceFilename before "/" if that separator exists);
24
26
  * file is sourceResourceFilename
25
27
  * @see convertStorageResourceToItemResource
26
28
  */
27
- export declare function convertItemResourceToStorageResource(prefix: string, sourceResourceFilename: string, storageVersion?: number): {
29
+ export declare function convertItemResourceToStorageResource(prefix: string, sourceResourceFilename: string, storageVersion?: number, storageFileType?: SolutionResourceType): {
28
30
  folder: string;
29
31
  filename: string;
30
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solution-common",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Provides general helper functions for @esri/solution.js.",
5
5
  "main": "dist/node/index.js",
6
6
  "unpkg": "dist/umd/common.umd.min.js",
@@ -95,5 +95,5 @@
95
95
  "esri",
96
96
  "ES6"
97
97
  ],
98
- "gitHead": "70c45e0eb9c745f7dbc0f8b6ce3654921cca11a0"
98
+ "gitHead": "08334d19a46a19455c798c89c325f50b9305d8b3"
99
99
  }