@digital-herd/content-hub-cli 1.2.1 → 1.2.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.
package/lib/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});let commander_1=require("commander"),modules_1=__importDefault(require("./modules")),program=new commander_1.Command;program.name("content-hub-tools").description("ContentHub build & utility CLI").version("1.2.0");for(let o of modules_1.default)for(let e of o.commands)program.addCommand(e);program.parse(process.argv);
2
+ var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});let commander_1=require("commander"),modules_1=__importDefault(require("./modules")),program=new commander_1.Command;program.name("content-hub-tools").description("ContentHub build & utility CLI").version("1.2.1");for(let o of modules_1.default)for(let e of o.commands)program.addCommand(e);program.parse(process.argv);
@@ -1,6 +1,6 @@
1
1
  import ContenthubService from "@/services/ContenthubService";
2
2
  import { ContenthubConfig } from "@/types/ContentHubConfig.interface";
3
- declare class ExternalComponentPortalPublishService {
3
+ declare class ExternalComponentPublishService {
4
4
  contenthubService: ContenthubService;
5
5
  config: ContenthubConfig;
6
6
  constructor(contenthubService: ContenthubService, config: ContenthubConfig);
@@ -8,4 +8,4 @@ declare class ExternalComponentPortalPublishService {
8
8
  private publishViaBlob;
9
9
  private publishPortal;
10
10
  }
11
- export default ExternalComponentPortalPublishService;
11
+ export default ExternalComponentPublishService;
@@ -1 +1 @@
1
- var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});let ExternalComponentBlobPublishService_1=__importDefault(require("./ExternalComponentBlobPublishService"));class ExternalComponentPortalPublishService{contenthubService;config;constructor(e,t){this.contenthubService=e,this.config=t}publish(e){return"blob"===this.config.publish?.type?this.publishViaBlob(e,this.config.publish.blobConfig):this.publishPortal(e)}publishViaBlob(e,t){return new ExternalComponentBlobPublishService_1.default(this.config,t).publishToBlobStorage(e)}publishPortal(e){return new ExternalComponentPortalPublishService(this.contenthubService,this.config).publish(e)}}exports.default=ExternalComponentPortalPublishService;
1
+ var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});let ExternalComponentBlobPublishService_1=__importDefault(require("./ExternalComponentBlobPublishService")),ExternalComponentPortalPublishService_1=__importDefault(require("./ExternalComponentPortalPublishService"));class ExternalComponentPublishService{contenthubService;config;constructor(e,t){this.contenthubService=e,this.config=t}publish(e){return"blob"===this.config.publish?.type?this.publishViaBlob(e,this.config.publish.blobConfig):this.publishPortal(e)}publishViaBlob(e,t){return new ExternalComponentBlobPublishService_1.default(this.config,t).publishToBlobStorage(e)}publishPortal(e){return new ExternalComponentPortalPublishService_1.default(this.contenthubService,this.config).publishToPortalAsset(e)}}exports.default=ExternalComponentPublishService;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digital-herd/content-hub-cli",
3
3
  "description": "CLI tools for managing Sitecore Content Hub external components and scripts",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",