antelope-cli 1.0.6 → 1.0.8

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/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- require('dotenv').config({ path: path.resolve(process.cwd(), '.env') });
3
2
 
4
3
  const args = process.argv.slice(2);
5
4
 
@@ -4,6 +4,7 @@ const chalk = require('chalk');
4
4
  const path = require('path');
5
5
  const fetch = require('node-fetch');
6
6
  const unzipper = require('unzipper');
7
+ const configs = require('../config');
7
8
 
8
9
  async function start(rl) {
9
10
  try {
@@ -60,7 +61,7 @@ function getFaviconRequest(brand, imagePath) {
60
61
  console.log(process.env);
61
62
  return {
62
63
  favicon_generation: {
63
- api_key: process.env.FAVICON_API_KEY,
64
+ api_key: configs.FAVICON_API_KEY,
64
65
  master_picture: {
65
66
  type: 'url',
66
67
  url: imagePath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antelope-cli",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "CLI-Tool for automating processes for Antelope-Systems ",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -21,7 +21,6 @@
21
21
  "homepage": "https://bitbucket.org/xsitesinc/antelope-cli#readme",
22
22
  "dependencies": {
23
23
  "chalk": "^2.0.0",
24
- "dotenv": "^16.4.5",
25
24
  "node-fetch": "^2.6.1",
26
25
  "unzipper": "^0.12.1"
27
26
  }