cdk8s-operator 0.1.407 → 0.1.408
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/.jsii +3 -3
- package/lib/operator.js +1 -1
- package/lib/server.js +1 -1
- package/node_modules/yaml/browser/dist/PlainValue-183afbad.js +751 -0
- package/node_modules/yaml/browser/dist/Schema-9530c078.js +467 -0
- package/node_modules/yaml/browser/dist/index.js +436 -746
- package/node_modules/yaml/browser/dist/legacy-exports.js +3 -3
- package/node_modules/yaml/browser/dist/parse-cst.js +1290 -1689
- package/node_modules/yaml/browser/dist/resolveSeq-67caf78a.js +1835 -0
- package/node_modules/yaml/browser/dist/types.js +4 -4
- package/node_modules/yaml/browser/dist/util.js +2 -2
- package/node_modules/yaml/browser/dist/warnings-5e4358fe.js +348 -0
- package/node_modules/yaml/dist/{Document-9b4560a1.js → Document-a8d0fbf9.js} +11 -131
- package/node_modules/yaml/dist/{PlainValue-ec8e588e.js → PlainValue-516d5bc2.js} +35 -146
- package/node_modules/yaml/dist/{Schema-88e323a7.js → Schema-bcc6c2d7.js} +10 -66
- package/node_modules/yaml/dist/index.js +5 -17
- package/node_modules/yaml/dist/legacy-exports.js +3 -3
- package/node_modules/yaml/dist/parse-cst.js +45 -291
- package/node_modules/yaml/dist/{resolveSeq-d03cb037.js → resolveSeq-95613e94.js} +44 -346
- package/node_modules/yaml/dist/test-events.js +28 -44
- package/node_modules/yaml/dist/types.js +4 -4
- package/node_modules/yaml/dist/util.js +2 -2
- package/node_modules/yaml/dist/{warnings-1000a372.js → warnings-793925ce.js} +16 -73
- package/node_modules/yaml/package.json +2 -3
- package/package.json +2 -2
- package/node_modules/yaml/browser/dist/PlainValue-b8036b75.js +0 -1275
- package/node_modules/yaml/browser/dist/Schema-e94716c8.js +0 -682
- package/node_modules/yaml/browser/dist/resolveSeq-492ab440.js +0 -2419
- package/node_modules/yaml/browser/dist/warnings-df54cb69.js +0 -499
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Alias, C as Collection, M as Merge, N as Node, P as Pair, S as Scalar, d as YAMLMap, Y as YAMLSeq, b as binaryOptions, a as boolOptions, i as intOptions, n as nullOptions, s as strOptions } from './resolveSeq-
|
|
2
|
-
export { S as Schema } from './Schema-
|
|
3
|
-
import './PlainValue-
|
|
4
|
-
import './warnings-
|
|
1
|
+
export { A as Alias, C as Collection, M as Merge, N as Node, P as Pair, S as Scalar, d as YAMLMap, Y as YAMLSeq, b as binaryOptions, a as boolOptions, i as intOptions, n as nullOptions, s as strOptions } from './resolveSeq-67caf78a.js';
|
|
2
|
+
export { S as Schema } from './Schema-9530c078.js';
|
|
3
|
+
import './PlainValue-183afbad.js';
|
|
4
|
+
import './warnings-5e4358fe.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { l as findPair, g as parseMap, h as parseSeq, k as stringifyNumber, c as stringifyString, t as toJSON } from './resolveSeq-
|
|
2
|
-
export { T as Type,
|
|
1
|
+
export { l as findPair, g as parseMap, h as parseSeq, k as stringifyNumber, c as stringifyString, t as toJSON } from './resolveSeq-67caf78a.js';
|
|
2
|
+
export { T as Type, c as YAMLError, f as YAMLReferenceError, b as YAMLSemanticError, Y as YAMLSyntaxError, a as YAMLWarning } from './PlainValue-183afbad.js';
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { f as YAMLReferenceError, T as Type, b as YAMLSemanticError, _ as _defineProperty } from './PlainValue-183afbad.js';
|
|
2
|
+
import { j as resolveString, b as binaryOptions, c as stringifyString, h as resolveSeq, P as Pair, d as YAMLMap, Y as YAMLSeq, t as toJSON, S as Scalar, l as findPair, g as resolveMap, k as stringifyNumber } from './resolveSeq-67caf78a.js';
|
|
3
|
+
|
|
4
|
+
/* global atob, btoa, Buffer */
|
|
5
|
+
const binary = {
|
|
6
|
+
identify: value => value instanceof Uint8Array,
|
|
7
|
+
// Buffer inherits from Uint8Array
|
|
8
|
+
default: false,
|
|
9
|
+
tag: 'tag:yaml.org,2002:binary',
|
|
10
|
+
/**
|
|
11
|
+
* Returns a Buffer in node and an Uint8Array in browsers
|
|
12
|
+
*
|
|
13
|
+
* To use the resulting buffer as an image, you'll want to do something like:
|
|
14
|
+
*
|
|
15
|
+
* const blob = new Blob([buffer], { type: 'image/jpeg' })
|
|
16
|
+
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
17
|
+
*/
|
|
18
|
+
resolve: (doc, node) => {
|
|
19
|
+
const src = resolveString(doc, node);
|
|
20
|
+
if (typeof Buffer === 'function') {
|
|
21
|
+
return Buffer.from(src, 'base64');
|
|
22
|
+
} else if (typeof atob === 'function') {
|
|
23
|
+
// On IE 11, atob() can't handle newlines
|
|
24
|
+
const str = atob(src.replace(/[\n\r]/g, ''));
|
|
25
|
+
const buffer = new Uint8Array(str.length);
|
|
26
|
+
for (let i = 0; i < str.length; ++i) buffer[i] = str.charCodeAt(i);
|
|
27
|
+
return buffer;
|
|
28
|
+
} else {
|
|
29
|
+
const msg = 'This environment does not support reading binary tags; either Buffer or atob is required';
|
|
30
|
+
doc.errors.push(new YAMLReferenceError(node, msg));
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
options: binaryOptions,
|
|
35
|
+
stringify: ({
|
|
36
|
+
comment,
|
|
37
|
+
type,
|
|
38
|
+
value
|
|
39
|
+
}, ctx, onComment, onChompKeep) => {
|
|
40
|
+
let src;
|
|
41
|
+
if (typeof Buffer === 'function') {
|
|
42
|
+
src = value instanceof Buffer ? value.toString('base64') : Buffer.from(value.buffer).toString('base64');
|
|
43
|
+
} else if (typeof btoa === 'function') {
|
|
44
|
+
let s = '';
|
|
45
|
+
for (let i = 0; i < value.length; ++i) s += String.fromCharCode(value[i]);
|
|
46
|
+
src = btoa(s);
|
|
47
|
+
} else {
|
|
48
|
+
throw new Error('This environment does not support writing binary tags; either Buffer or btoa is required');
|
|
49
|
+
}
|
|
50
|
+
if (!type) type = binaryOptions.defaultType;
|
|
51
|
+
if (type === Type.QUOTE_DOUBLE) {
|
|
52
|
+
value = src;
|
|
53
|
+
} else {
|
|
54
|
+
const {
|
|
55
|
+
lineWidth
|
|
56
|
+
} = binaryOptions;
|
|
57
|
+
const n = Math.ceil(src.length / lineWidth);
|
|
58
|
+
const lines = new Array(n);
|
|
59
|
+
for (let i = 0, o = 0; i < n; ++i, o += lineWidth) {
|
|
60
|
+
lines[i] = src.substr(o, lineWidth);
|
|
61
|
+
}
|
|
62
|
+
value = lines.join(type === Type.BLOCK_LITERAL ? '\n' : ' ');
|
|
63
|
+
}
|
|
64
|
+
return stringifyString({
|
|
65
|
+
comment,
|
|
66
|
+
type,
|
|
67
|
+
value
|
|
68
|
+
}, ctx, onComment, onChompKeep);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
function parsePairs(doc, cst) {
|
|
73
|
+
const seq = resolveSeq(doc, cst);
|
|
74
|
+
for (let i = 0; i < seq.items.length; ++i) {
|
|
75
|
+
let item = seq.items[i];
|
|
76
|
+
if (item instanceof Pair) continue;else if (item instanceof YAMLMap) {
|
|
77
|
+
if (item.items.length > 1) {
|
|
78
|
+
const msg = 'Each pair must have its own sequence indicator';
|
|
79
|
+
throw new YAMLSemanticError(cst, msg);
|
|
80
|
+
}
|
|
81
|
+
const pair = item.items[0] || new Pair();
|
|
82
|
+
if (item.commentBefore) pair.commentBefore = pair.commentBefore ? `${item.commentBefore}\n${pair.commentBefore}` : item.commentBefore;
|
|
83
|
+
if (item.comment) pair.comment = pair.comment ? `${item.comment}\n${pair.comment}` : item.comment;
|
|
84
|
+
item = pair;
|
|
85
|
+
}
|
|
86
|
+
seq.items[i] = item instanceof Pair ? item : new Pair(item);
|
|
87
|
+
}
|
|
88
|
+
return seq;
|
|
89
|
+
}
|
|
90
|
+
function createPairs(schema, iterable, ctx) {
|
|
91
|
+
const pairs = new YAMLSeq(schema);
|
|
92
|
+
pairs.tag = 'tag:yaml.org,2002:pairs';
|
|
93
|
+
for (const it of iterable) {
|
|
94
|
+
let key, value;
|
|
95
|
+
if (Array.isArray(it)) {
|
|
96
|
+
if (it.length === 2) {
|
|
97
|
+
key = it[0];
|
|
98
|
+
value = it[1];
|
|
99
|
+
} else throw new TypeError(`Expected [key, value] tuple: ${it}`);
|
|
100
|
+
} else if (it && it instanceof Object) {
|
|
101
|
+
const keys = Object.keys(it);
|
|
102
|
+
if (keys.length === 1) {
|
|
103
|
+
key = keys[0];
|
|
104
|
+
value = it[key];
|
|
105
|
+
} else throw new TypeError(`Expected { key: value } tuple: ${it}`);
|
|
106
|
+
} else {
|
|
107
|
+
key = it;
|
|
108
|
+
}
|
|
109
|
+
const pair = schema.createPair(key, value, ctx);
|
|
110
|
+
pairs.items.push(pair);
|
|
111
|
+
}
|
|
112
|
+
return pairs;
|
|
113
|
+
}
|
|
114
|
+
const pairs = {
|
|
115
|
+
default: false,
|
|
116
|
+
tag: 'tag:yaml.org,2002:pairs',
|
|
117
|
+
resolve: parsePairs,
|
|
118
|
+
createNode: createPairs
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
class YAMLOMap extends YAMLSeq {
|
|
122
|
+
constructor() {
|
|
123
|
+
super();
|
|
124
|
+
_defineProperty(this, "add", YAMLMap.prototype.add.bind(this));
|
|
125
|
+
_defineProperty(this, "delete", YAMLMap.prototype.delete.bind(this));
|
|
126
|
+
_defineProperty(this, "get", YAMLMap.prototype.get.bind(this));
|
|
127
|
+
_defineProperty(this, "has", YAMLMap.prototype.has.bind(this));
|
|
128
|
+
_defineProperty(this, "set", YAMLMap.prototype.set.bind(this));
|
|
129
|
+
this.tag = YAMLOMap.tag;
|
|
130
|
+
}
|
|
131
|
+
toJSON(_, ctx) {
|
|
132
|
+
const map = new Map();
|
|
133
|
+
if (ctx && ctx.onCreate) ctx.onCreate(map);
|
|
134
|
+
for (const pair of this.items) {
|
|
135
|
+
let key, value;
|
|
136
|
+
if (pair instanceof Pair) {
|
|
137
|
+
key = toJSON(pair.key, '', ctx);
|
|
138
|
+
value = toJSON(pair.value, key, ctx);
|
|
139
|
+
} else {
|
|
140
|
+
key = toJSON(pair, '', ctx);
|
|
141
|
+
}
|
|
142
|
+
if (map.has(key)) throw new Error('Ordered maps must not include duplicate keys');
|
|
143
|
+
map.set(key, value);
|
|
144
|
+
}
|
|
145
|
+
return map;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
_defineProperty(YAMLOMap, "tag", 'tag:yaml.org,2002:omap');
|
|
149
|
+
function parseOMap(doc, cst) {
|
|
150
|
+
const pairs = parsePairs(doc, cst);
|
|
151
|
+
const seenKeys = [];
|
|
152
|
+
for (const {
|
|
153
|
+
key
|
|
154
|
+
} of pairs.items) {
|
|
155
|
+
if (key instanceof Scalar) {
|
|
156
|
+
if (seenKeys.includes(key.value)) {
|
|
157
|
+
const msg = 'Ordered maps must not include duplicate keys';
|
|
158
|
+
throw new YAMLSemanticError(cst, msg);
|
|
159
|
+
} else {
|
|
160
|
+
seenKeys.push(key.value);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return Object.assign(new YAMLOMap(), pairs);
|
|
165
|
+
}
|
|
166
|
+
function createOMap(schema, iterable, ctx) {
|
|
167
|
+
const pairs = createPairs(schema, iterable, ctx);
|
|
168
|
+
const omap = new YAMLOMap();
|
|
169
|
+
omap.items = pairs.items;
|
|
170
|
+
return omap;
|
|
171
|
+
}
|
|
172
|
+
const omap = {
|
|
173
|
+
identify: value => value instanceof Map,
|
|
174
|
+
nodeClass: YAMLOMap,
|
|
175
|
+
default: false,
|
|
176
|
+
tag: 'tag:yaml.org,2002:omap',
|
|
177
|
+
resolve: parseOMap,
|
|
178
|
+
createNode: createOMap
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
class YAMLSet extends YAMLMap {
|
|
182
|
+
constructor() {
|
|
183
|
+
super();
|
|
184
|
+
this.tag = YAMLSet.tag;
|
|
185
|
+
}
|
|
186
|
+
add(key) {
|
|
187
|
+
const pair = key instanceof Pair ? key : new Pair(key);
|
|
188
|
+
const prev = findPair(this.items, pair.key);
|
|
189
|
+
if (!prev) this.items.push(pair);
|
|
190
|
+
}
|
|
191
|
+
get(key, keepPair) {
|
|
192
|
+
const pair = findPair(this.items, key);
|
|
193
|
+
return !keepPair && pair instanceof Pair ? pair.key instanceof Scalar ? pair.key.value : pair.key : pair;
|
|
194
|
+
}
|
|
195
|
+
set(key, value) {
|
|
196
|
+
if (typeof value !== 'boolean') throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value}`);
|
|
197
|
+
const prev = findPair(this.items, key);
|
|
198
|
+
if (prev && !value) {
|
|
199
|
+
this.items.splice(this.items.indexOf(prev), 1);
|
|
200
|
+
} else if (!prev && value) {
|
|
201
|
+
this.items.push(new Pair(key));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
toJSON(_, ctx) {
|
|
205
|
+
return super.toJSON(_, ctx, Set);
|
|
206
|
+
}
|
|
207
|
+
toString(ctx, onComment, onChompKeep) {
|
|
208
|
+
if (!ctx) return JSON.stringify(this);
|
|
209
|
+
if (this.hasAllNullValues()) return super.toString(ctx, onComment, onChompKeep);else throw new Error('Set items must all have null values');
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
_defineProperty(YAMLSet, "tag", 'tag:yaml.org,2002:set');
|
|
213
|
+
function parseSet(doc, cst) {
|
|
214
|
+
const map = resolveMap(doc, cst);
|
|
215
|
+
if (!map.hasAllNullValues()) throw new YAMLSemanticError(cst, 'Set items must all have null values');
|
|
216
|
+
return Object.assign(new YAMLSet(), map);
|
|
217
|
+
}
|
|
218
|
+
function createSet(schema, iterable, ctx) {
|
|
219
|
+
const set = new YAMLSet();
|
|
220
|
+
for (const value of iterable) set.items.push(schema.createPair(value, null, ctx));
|
|
221
|
+
return set;
|
|
222
|
+
}
|
|
223
|
+
const set = {
|
|
224
|
+
identify: value => value instanceof Set,
|
|
225
|
+
nodeClass: YAMLSet,
|
|
226
|
+
default: false,
|
|
227
|
+
tag: 'tag:yaml.org,2002:set',
|
|
228
|
+
resolve: parseSet,
|
|
229
|
+
createNode: createSet
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const parseSexagesimal = (sign, parts) => {
|
|
233
|
+
const n = parts.split(':').reduce((n, p) => n * 60 + Number(p), 0);
|
|
234
|
+
return sign === '-' ? -n : n;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
// hhhh:mm:ss.sss
|
|
238
|
+
const stringifySexagesimal = ({
|
|
239
|
+
value
|
|
240
|
+
}) => {
|
|
241
|
+
if (isNaN(value) || !isFinite(value)) return stringifyNumber(value);
|
|
242
|
+
let sign = '';
|
|
243
|
+
if (value < 0) {
|
|
244
|
+
sign = '-';
|
|
245
|
+
value = Math.abs(value);
|
|
246
|
+
}
|
|
247
|
+
const parts = [value % 60]; // seconds, including ms
|
|
248
|
+
if (value < 60) {
|
|
249
|
+
parts.unshift(0); // at least one : is required
|
|
250
|
+
} else {
|
|
251
|
+
value = Math.round((value - parts[0]) / 60);
|
|
252
|
+
parts.unshift(value % 60); // minutes
|
|
253
|
+
if (value >= 60) {
|
|
254
|
+
value = Math.round((value - parts[0]) / 60);
|
|
255
|
+
parts.unshift(value); // hours
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
return sign + parts.map(n => n < 10 ? '0' + String(n) : String(n)).join(':').replace(/000000\d*$/, '') // % 60 may introduce error
|
|
259
|
+
;
|
|
260
|
+
};
|
|
261
|
+
const intTime = {
|
|
262
|
+
identify: value => typeof value === 'number',
|
|
263
|
+
default: true,
|
|
264
|
+
tag: 'tag:yaml.org,2002:int',
|
|
265
|
+
format: 'TIME',
|
|
266
|
+
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,
|
|
267
|
+
resolve: (str, sign, parts) => parseSexagesimal(sign, parts.replace(/_/g, '')),
|
|
268
|
+
stringify: stringifySexagesimal
|
|
269
|
+
};
|
|
270
|
+
const floatTime = {
|
|
271
|
+
identify: value => typeof value === 'number',
|
|
272
|
+
default: true,
|
|
273
|
+
tag: 'tag:yaml.org,2002:float',
|
|
274
|
+
format: 'TIME',
|
|
275
|
+
test: /^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,
|
|
276
|
+
resolve: (str, sign, parts) => parseSexagesimal(sign, parts.replace(/_/g, '')),
|
|
277
|
+
stringify: stringifySexagesimal
|
|
278
|
+
};
|
|
279
|
+
const timestamp = {
|
|
280
|
+
identify: value => value instanceof Date,
|
|
281
|
+
default: true,
|
|
282
|
+
tag: 'tag:yaml.org,2002:timestamp',
|
|
283
|
+
// If the time zone is omitted, the timestamp is assumed to be specified in UTC. The time part
|
|
284
|
+
// may be omitted altogether, resulting in a date format. In such a case, the time part is
|
|
285
|
+
// assumed to be 00:00:00Z (start of day, UTC).
|
|
286
|
+
test: RegExp('^(?:' + '([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})' +
|
|
287
|
+
// YYYY-Mm-Dd
|
|
288
|
+
'(?:(?:t|T|[ \\t]+)' +
|
|
289
|
+
// t | T | whitespace
|
|
290
|
+
'([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)' +
|
|
291
|
+
// Hh:Mm:Ss(.ss)?
|
|
292
|
+
'(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?' +
|
|
293
|
+
// Z | +5 | -03:30
|
|
294
|
+
')?' + ')$'),
|
|
295
|
+
resolve: (str, year, month, day, hour, minute, second, millisec, tz) => {
|
|
296
|
+
if (millisec) millisec = (millisec + '00').substr(1, 3);
|
|
297
|
+
let date = Date.UTC(year, month - 1, day, hour || 0, minute || 0, second || 0, millisec || 0);
|
|
298
|
+
if (tz && tz !== 'Z') {
|
|
299
|
+
let d = parseSexagesimal(tz[0], tz.slice(1));
|
|
300
|
+
if (Math.abs(d) < 30) d *= 60;
|
|
301
|
+
date -= 60000 * d;
|
|
302
|
+
}
|
|
303
|
+
return new Date(date);
|
|
304
|
+
},
|
|
305
|
+
stringify: ({
|
|
306
|
+
value
|
|
307
|
+
}) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '')
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
/* global console, process, YAML_SILENCE_DEPRECATION_WARNINGS, YAML_SILENCE_WARNINGS */
|
|
311
|
+
|
|
312
|
+
function shouldWarn(deprecation) {
|
|
313
|
+
const env = typeof process !== 'undefined' && process.env || {};
|
|
314
|
+
if (deprecation) {
|
|
315
|
+
if (typeof YAML_SILENCE_DEPRECATION_WARNINGS !== 'undefined') return !YAML_SILENCE_DEPRECATION_WARNINGS;
|
|
316
|
+
return !env.YAML_SILENCE_DEPRECATION_WARNINGS;
|
|
317
|
+
}
|
|
318
|
+
if (typeof YAML_SILENCE_WARNINGS !== 'undefined') return !YAML_SILENCE_WARNINGS;
|
|
319
|
+
return !env.YAML_SILENCE_WARNINGS;
|
|
320
|
+
}
|
|
321
|
+
function warn(warning, type) {
|
|
322
|
+
if (shouldWarn(false)) {
|
|
323
|
+
const emit = typeof process !== 'undefined' && process.emitWarning;
|
|
324
|
+
// This will throw in Jest if `warning` is an Error instance due to
|
|
325
|
+
// https://github.com/facebook/jest/issues/2549
|
|
326
|
+
if (emit) emit(warning, type);else {
|
|
327
|
+
// eslint-disable-next-line no-console
|
|
328
|
+
console.warn(type ? `${type}: ${warning}` : warning);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
function warnFileDeprecation(filename) {
|
|
333
|
+
if (shouldWarn(true)) {
|
|
334
|
+
const path = filename.replace(/.*yaml[/\\]/i, '').replace(/\.js$/, '').replace(/\\/g, '/');
|
|
335
|
+
warn(`The endpoint 'yaml/${path}' will be removed in a future release.`, 'DeprecationWarning');
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
const warned = {};
|
|
339
|
+
function warnOptionDeprecation(name, alternative) {
|
|
340
|
+
if (!warned[name] && shouldWarn(true)) {
|
|
341
|
+
warned[name] = true;
|
|
342
|
+
let msg = `The option '${name}' will be removed in a future release`;
|
|
343
|
+
msg += alternative ? `, use '${alternative}' instead.` : '.';
|
|
344
|
+
warn(msg, 'DeprecationWarning');
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export { warnOptionDeprecation as a, binary as b, warnFileDeprecation as c, floatTime as f, intTime as i, omap as o, pairs as p, set as s, timestamp as t, warn as w };
|