@leverege/build-tools 1.12.5 → 1.12.7

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.
@@ -9,24 +9,18 @@ require("core-js/modules/web.dom.iterable");
9
9
 
10
10
  require("core-js/modules/es6.array.iterator");
11
11
 
12
+ require("core-js/modules/es6.object.to-string");
13
+
12
14
  require("core-js/modules/es6.object.keys");
13
15
 
14
16
  require("regenerator-runtime/runtime");
15
17
 
16
- require("core-js/modules/es6.promise");
17
-
18
- require("core-js/modules/es6.object.to-string");
19
-
20
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
21
19
 
22
20
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
23
21
 
24
22
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
23
 
26
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
27
-
28
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
29
-
30
24
  var commandLineArgs = require('command-line-args');
31
25
 
32
26
  var commandLineUsage = require('command-line-usage');
@@ -89,63 +83,54 @@ var optionDefinitions = [{
89
83
  var args = commandLineArgs(optionDefinitions);
90
84
 
91
85
  function main() {
92
- return _main.apply(this, arguments);
93
- }
94
-
95
- function _main() {
96
- _main = _asyncToGenerator(
97
- /*#__PURE__*/
98
- regeneratorRuntime.mark(function _callee() {
99
- var CF;
100
- return regeneratorRuntime.wrap(function _callee$(_context) {
101
- while (1) {
102
- switch (_context.prev = _context.next) {
103
- case 0:
104
- if (args.help) {
105
- console.log(usage);
106
- }
107
-
108
- if (!(!args.url || !args.ipaddress)) {
109
- _context.next = 10;
110
- break;
111
- }
112
-
113
- console.log('\n*******************************************');
114
- console.log('** **');
115
- console.log('** Need to specify URL and/or IP address **');
116
- console.log('** **');
117
- console.log('*******************************************');
86
+ var CF;
87
+ return regeneratorRuntime.async(function main$(_context) {
88
+ while (1) {
89
+ switch (_context.prev = _context.next) {
90
+ case 0:
91
+ if (args.help) {
118
92
  console.log(usage);
119
- _context.next = 21;
120
- break;
93
+ }
121
94
 
122
- case 10:
123
- CF = new Cloudflare(_objectSpread({}, defaultConfig, {
124
- args: args
125
- }));
126
- _context.prev = 11;
127
- _context.next = 14;
128
- return CF.createDNSRecord();
129
-
130
- case 14:
131
- console.log('Successfully created a new DNS record');
132
- console.log('It may take a few minutes for DNS to propagate');
133
- _context.next = 21;
95
+ if (!(!args.url || !args.ipaddress)) {
96
+ _context.next = 10;
134
97
  break;
135
-
136
- case 18:
137
- _context.prev = 18;
138
- _context.t0 = _context["catch"](11);
139
- console.error(_context.t0.message);
140
-
141
- case 21:
142
- case "end":
143
- return _context.stop();
144
- }
98
+ }
99
+
100
+ console.log('\n*******************************************');
101
+ console.log('** **');
102
+ console.log('** Need to specify URL and/or IP address **');
103
+ console.log('** **');
104
+ console.log('*******************************************');
105
+ console.log(usage);
106
+ _context.next = 21;
107
+ break;
108
+
109
+ case 10:
110
+ CF = new Cloudflare(_objectSpread({}, defaultConfig, {
111
+ args: args
112
+ }));
113
+ _context.prev = 11;
114
+ _context.next = 14;
115
+ return regeneratorRuntime.awrap(CF.createDNSRecord());
116
+
117
+ case 14:
118
+ console.log('Successfully created a new DNS record');
119
+ console.log('It may take a few minutes for DNS to propagate');
120
+ _context.next = 21;
121
+ break;
122
+
123
+ case 18:
124
+ _context.prev = 18;
125
+ _context.t0 = _context["catch"](11);
126
+ console.error(_context.t0.message);
127
+
128
+ case 21:
129
+ case "end":
130
+ return _context.stop();
145
131
  }
146
- }, _callee, null, [[11, 18]]);
147
- }));
148
- return _main.apply(this, arguments);
132
+ }
133
+ }, null, null, [[11, 18]]);
149
134
  }
150
135
 
151
136
  main();