@ind-rcg/modeler-sfdx-cli-plugin 250.1018.0 → 250.1019.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,s,r,a){void 0===a&&(a=r);var t=Object.getOwnPropertyDescriptor(s,r);t&&!("get"in t?!s.__esModule:t.writable||t.configurable)||(t={enumerable:!0,get:function(){return s[r]}}),Object.defineProperty(e,a,t)}:function(e,s,r,a){void 0===a&&(a=r),e[a]=s[r]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,s){Object.defineProperty(e,"default",{enumerable:!0,value:s})}:function(e,s){e.default=s}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var s={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(s,e,r);return __setModuleDefault(s,e),s};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Base64EncodeCommand=void 0;const os=__importStar(require("os")),core_1=require("@salesforce/core"),workspaceCommand_1=require("../../../../model/workspaceCommand"),errors_1=require("../../../../types/errors"),errorHelper=__importStar(require("../../../../utils/errorHelper")),fsHelper=__importStar(require("../../../../utils/fsHelper")),constants_1=require("../../../../constants"),messages_1=require("../../../../types/messages"),sf_plugins_core_1=require("@salesforce/sf-plugins-core");core_1.Messages.importMessagesDirectory(__dirname);const messages=core_1.Messages.loadMessages(constants_1.PACKAGE_NAME,messages_1.MessagesBundle.Workspace_Utils_Base64Encode);class Base64EncodeCommand extends workspaceCommand_1.WorkspaceCommand{async run(){const{flags:e}=await this.parse(Base64EncodeCommand);this.workspace=await this.assignWorkspace(e.path);let s=!0,r="",a=e.input;if(fsHelper.existsFile(a)){const e=
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,s,r,a){void 0===a&&(a=r);var t=Object.getOwnPropertyDescriptor(s,r);t&&!("get"in t?!s.__esModule:t.writable||t.configurable)||(t={enumerable:!0,get:function(){return s[r]}}),Object.defineProperty(e,a,t)}:function(e,s,r,a){void 0===a&&(a=r),e[a]=s[r]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,s){Object.defineProperty(e,"default",{enumerable:!0,value:s})}:function(e,s){e.default=s}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var s={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&__createBinding(s,e,r);return __setModuleDefault(s,e),s};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Base64EncodeCommand=void 0;const os=__importStar(require("os")),core_1=require("@salesforce/core"),workspaceCommand_1=require("../../../../model/workspaceCommand"),errors_1=require("../../../../types/errors"),errorHelper=__importStar(require("../../../../utils/errorHelper")),fsHelper=__importStar(require("../../../../utils/fsHelper")),constants_1=require("../../../../constants"),messages_1=require("../../../../types/messages"),sf_plugins_core_1=require("@salesforce/sf-plugins-core");core_1.Messages.importMessagesDirectory(__dirname);const messages=core_1.Messages.loadMessages(constants_1.PACKAGE_NAME,messages_1.MessagesBundle.Workspace_Utils_Base64Encode);class Base64EncodeCommand extends workspaceCommand_1.WorkspaceCommand{async run(){const{flags:e}=await this.parse(Base64EncodeCommand);this.workspace=await this.assignWorkspace(e.path);let s=!0,r="",a=e.input;if(fsHelper.existsFile(a)){const e=20,t=1048576*e;if(fsHelper.getFileSize(a)<=t)try{r=fsHelper.base64EncodeFile(a),this.log(r)}catch(e){throw s=!1,errorHelper.createSfError(errors_1.ErrorTypes.Base64EncodeError,messages.getMessage(messages_1.MessagesBundle_Workspace_Utils_Base64Encode.Base64EncodeError,[a]),e)}else s=!1,r=messages.getMessage(messages_1.MessagesBundle_Workspace_Utils_Base64Encode.InputFileSizeLimit,[a,e]),this.error(r,{exit:!1})}else s=!1,r=messages.getMessage(messages_1.MessagesBundle_Workspace_Utils_Base64Encode.InputFileNotFound,[a,a]),this.error(r,{exit:!1});return{success:s,message:r}}}exports.Base64EncodeCommand=Base64EncodeCommand,Base64EncodeCommand.description=messages.getMessage(messages_1.MessagesBundle_Workspace_Utils_Base64Encode.CommandDescription),Base64EncodeCommand.examples=messages.getMessage(messages_1.MessagesBundle_Workspace_Utils_Base64Encode.Examples).split(os.EOL),Base64EncodeCommand.flags={...workspaceCommand_1.WorkspaceCommand.flags,input:sf_plugins_core_1.Flags.string({summary:messages.getMessage(messages_1.MessagesBundle_Workspace_Utils_Base64Encode.InputFlagDescription),char:"i",required:!0})};
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ind-rcg/modeler-sfdx-cli-plugin",
|
|
3
3
|
"displayName": "modeler-sfdx-cli-plugin",
|
|
4
|
-
"version": "250.
|
|
4
|
+
"version": "250.1019.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"description": "This plugin is an enhancement of the sfdx cli and provide you features to customize the Consumer Goods Cloud Mobility application. This version will be the replacement for the Consumer Goods Mobile Modeler which was hosted on a Windows Server machine.",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@ind-rcg/backend": "250.1005.0",
|
|
10
|
-
"@ind-rcg/framework": "250.
|
|
11
|
-
"@ind-rcg/generator": "250.
|
|
10
|
+
"@ind-rcg/framework": "250.1039.0",
|
|
11
|
+
"@ind-rcg/generator": "250.1012.0",
|
|
12
12
|
"@oclif/core": "3.19.5",
|
|
13
13
|
"@salesforce/core": "6.5.5",
|
|
14
14
|
"@salesforce/sf-plugins-core": "5.0.13",
|
|
@@ -69,6 +69,27 @@
|
|
|
69
69
|
"/templates",
|
|
70
70
|
"/oclif.manifest.json"
|
|
71
71
|
],
|
|
72
|
+
"nyc": {
|
|
73
|
+
"exclude": [
|
|
74
|
+
"node_modules/**",
|
|
75
|
+
"lib/**",
|
|
76
|
+
"templates/**",
|
|
77
|
+
"test-data",
|
|
78
|
+
".eslintrc.js"
|
|
79
|
+
],
|
|
80
|
+
"check-coverage": true,
|
|
81
|
+
"all": true,
|
|
82
|
+
"report-dir": ".nyc_output/reports",
|
|
83
|
+
"temp-directory": ".nyc_output/",
|
|
84
|
+
"reporter": [
|
|
85
|
+
"lcov",
|
|
86
|
+
"text-summary"
|
|
87
|
+
],
|
|
88
|
+
"statements": 95,
|
|
89
|
+
"branches": 90,
|
|
90
|
+
"functions": 95,
|
|
91
|
+
"lines": 95
|
|
92
|
+
},
|
|
72
93
|
"oclif": {
|
|
73
94
|
"commands": "./lib/commands",
|
|
74
95
|
"hooks": {
|
|
@@ -107,7 +128,7 @@
|
|
|
107
128
|
"uglify": "uglifyjs-folder lib -e -x .js -o lib --log-level error"
|
|
108
129
|
},
|
|
109
130
|
"sfdx": {
|
|
110
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@ind-rcg/modeler-sfdx-cli-plugin/250.
|
|
111
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@ind-rcg/modeler-sfdx-cli-plugin/250.
|
|
131
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@ind-rcg/modeler-sfdx-cli-plugin/250.1019.0.crt",
|
|
132
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@ind-rcg/modeler-sfdx-cli-plugin/250.1019.0.sig"
|
|
112
133
|
}
|
|
113
134
|
}
|