@carbon/feature-flags 0.20.0 → 0.21.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.
- package/es/index.js +92 -105
- package/lib/index.js +92 -105
- package/package.json +7 -7
package/es/index.js
CHANGED
|
@@ -165,141 +165,129 @@ var featureFlagInfo = [{
|
|
|
165
165
|
enabled: enabled$1.enableExperimentalFocusWrapWithoutSentinels
|
|
166
166
|
}];
|
|
167
167
|
|
|
168
|
-
function
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
_e,
|
|
173
|
-
_x,
|
|
174
|
-
_r,
|
|
175
|
-
_arr = [],
|
|
176
|
-
_n = !0,
|
|
177
|
-
_d = !1;
|
|
178
|
-
try {
|
|
179
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
180
|
-
if (Object(_i) !== _i) return;
|
|
181
|
-
_n = !1;
|
|
182
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
183
|
-
} catch (err) {
|
|
184
|
-
_d = !0, _e = err;
|
|
185
|
-
} finally {
|
|
186
|
-
try {
|
|
187
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
188
|
-
} finally {
|
|
189
|
-
if (_d) throw _e;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return _arr;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function _classCallCheck(instance, Constructor) {
|
|
196
|
-
if (!(instance instanceof Constructor)) {
|
|
197
|
-
throw new TypeError("Cannot call a class as a function");
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
function _defineProperties(target, props) {
|
|
201
|
-
for (var i = 0; i < props.length; i++) {
|
|
202
|
-
var descriptor = props[i];
|
|
203
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
204
|
-
descriptor.configurable = true;
|
|
205
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
206
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
210
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
211
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
212
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
213
|
-
writable: false
|
|
214
|
-
});
|
|
215
|
-
return Constructor;
|
|
168
|
+
function _arrayLikeToArray(r, a) {
|
|
169
|
+
(null == a || a > r.length) && (a = r.length);
|
|
170
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
171
|
+
return n;
|
|
216
172
|
}
|
|
217
|
-
function
|
|
218
|
-
|
|
173
|
+
function _arrayWithHoles(r) {
|
|
174
|
+
if (Array.isArray(r)) return r;
|
|
219
175
|
}
|
|
220
|
-
function
|
|
221
|
-
if (
|
|
176
|
+
function _classCallCheck(a, n) {
|
|
177
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
222
178
|
}
|
|
223
|
-
function
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
229
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
230
|
-
}
|
|
231
|
-
function _arrayLikeToArray(arr, len) {
|
|
232
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
233
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
234
|
-
return arr2;
|
|
179
|
+
function _defineProperties(e, r) {
|
|
180
|
+
for (var t = 0; t < r.length; t++) {
|
|
181
|
+
var o = r[t];
|
|
182
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
183
|
+
}
|
|
235
184
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
185
|
+
function _createClass(e, r, t) {
|
|
186
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
187
|
+
writable: !1
|
|
188
|
+
}), e;
|
|
238
189
|
}
|
|
239
|
-
function _createForOfIteratorHelper(
|
|
240
|
-
var
|
|
241
|
-
if (!
|
|
242
|
-
if (Array.isArray(
|
|
243
|
-
|
|
244
|
-
var
|
|
245
|
-
|
|
190
|
+
function _createForOfIteratorHelper(r, e) {
|
|
191
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
192
|
+
if (!t) {
|
|
193
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
194
|
+
t && (r = t);
|
|
195
|
+
var n = 0,
|
|
196
|
+
F = function () {};
|
|
246
197
|
return {
|
|
247
198
|
s: F,
|
|
248
199
|
n: function () {
|
|
249
|
-
|
|
250
|
-
done:
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
value: o[i++]
|
|
200
|
+
return n >= r.length ? {
|
|
201
|
+
done: !0
|
|
202
|
+
} : {
|
|
203
|
+
done: !1,
|
|
204
|
+
value: r[n++]
|
|
255
205
|
};
|
|
256
206
|
},
|
|
257
|
-
e: function (
|
|
258
|
-
throw
|
|
207
|
+
e: function (r) {
|
|
208
|
+
throw r;
|
|
259
209
|
},
|
|
260
210
|
f: F
|
|
261
211
|
};
|
|
262
212
|
}
|
|
263
213
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
264
214
|
}
|
|
265
|
-
var
|
|
266
|
-
|
|
267
|
-
|
|
215
|
+
var o,
|
|
216
|
+
a = !0,
|
|
217
|
+
u = !1;
|
|
268
218
|
return {
|
|
269
219
|
s: function () {
|
|
270
|
-
|
|
220
|
+
t = t.call(r);
|
|
271
221
|
},
|
|
272
222
|
n: function () {
|
|
273
|
-
var
|
|
274
|
-
|
|
275
|
-
return step;
|
|
223
|
+
var r = t.next();
|
|
224
|
+
return a = r.done, r;
|
|
276
225
|
},
|
|
277
|
-
e: function (
|
|
278
|
-
|
|
279
|
-
err = e;
|
|
226
|
+
e: function (r) {
|
|
227
|
+
u = !0, o = r;
|
|
280
228
|
},
|
|
281
229
|
f: function () {
|
|
282
230
|
try {
|
|
283
|
-
|
|
231
|
+
a || null == t.return || t.return();
|
|
284
232
|
} finally {
|
|
285
|
-
if (
|
|
233
|
+
if (u) throw o;
|
|
286
234
|
}
|
|
287
235
|
}
|
|
288
236
|
};
|
|
289
237
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
238
|
+
function _iterableToArrayLimit(r, l) {
|
|
239
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
240
|
+
if (null != t) {
|
|
241
|
+
var e,
|
|
242
|
+
n,
|
|
243
|
+
i,
|
|
244
|
+
u,
|
|
245
|
+
a = [],
|
|
246
|
+
f = !0,
|
|
247
|
+
o = !1;
|
|
248
|
+
try {
|
|
249
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
250
|
+
if (Object(t) !== t) return;
|
|
251
|
+
f = !1;
|
|
252
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
253
|
+
} catch (r) {
|
|
254
|
+
o = !0, n = r;
|
|
255
|
+
} finally {
|
|
256
|
+
try {
|
|
257
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
258
|
+
} finally {
|
|
259
|
+
if (o) throw n;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return a;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function _nonIterableRest() {
|
|
266
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
267
|
+
}
|
|
268
|
+
function _slicedToArray(r, e) {
|
|
269
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
270
|
+
}
|
|
271
|
+
function _toPrimitive(t, r) {
|
|
272
|
+
if ("object" != typeof t || !t) return t;
|
|
273
|
+
var e = t[Symbol.toPrimitive];
|
|
274
|
+
if (void 0 !== e) {
|
|
275
|
+
var i = e.call(t, r || "default");
|
|
276
|
+
if ("object" != typeof i) return i;
|
|
296
277
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
297
278
|
}
|
|
298
|
-
return (
|
|
279
|
+
return ("string" === r ? String : Number)(t);
|
|
280
|
+
}
|
|
281
|
+
function _toPropertyKey(t) {
|
|
282
|
+
var i = _toPrimitive(t, "string");
|
|
283
|
+
return "symbol" == typeof i ? i : i + "";
|
|
299
284
|
}
|
|
300
|
-
function
|
|
301
|
-
|
|
302
|
-
|
|
285
|
+
function _unsupportedIterableToArray(r, a) {
|
|
286
|
+
if (r) {
|
|
287
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
288
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
289
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
290
|
+
}
|
|
303
291
|
}
|
|
304
292
|
|
|
305
293
|
/**
|
|
@@ -325,7 +313,7 @@ var FeatureFlagScope = /*#__PURE__*/function () {
|
|
|
325
313
|
* Check to see if a flag exists
|
|
326
314
|
* @param {string} name
|
|
327
315
|
*/
|
|
328
|
-
_createClass(FeatureFlagScope, [{
|
|
316
|
+
return _createClass(FeatureFlagScope, [{
|
|
329
317
|
key: "checkForFlag",
|
|
330
318
|
value: function checkForFlag(name) {
|
|
331
319
|
if (!this.flags.has(name)) {
|
|
@@ -420,7 +408,6 @@ var FeatureFlagScope = /*#__PURE__*/function () {
|
|
|
420
408
|
return this.flags.get(name);
|
|
421
409
|
}
|
|
422
410
|
}]);
|
|
423
|
-
return FeatureFlagScope;
|
|
424
411
|
}();
|
|
425
412
|
|
|
426
413
|
var FeatureFlags = createScope();
|
package/lib/index.js
CHANGED
|
@@ -169,141 +169,129 @@ var featureFlagInfo = [{
|
|
|
169
169
|
enabled: enabled$1.enableExperimentalFocusWrapWithoutSentinels
|
|
170
170
|
}];
|
|
171
171
|
|
|
172
|
-
function
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
_e,
|
|
177
|
-
_x,
|
|
178
|
-
_r,
|
|
179
|
-
_arr = [],
|
|
180
|
-
_n = !0,
|
|
181
|
-
_d = !1;
|
|
182
|
-
try {
|
|
183
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
184
|
-
if (Object(_i) !== _i) return;
|
|
185
|
-
_n = !1;
|
|
186
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
187
|
-
} catch (err) {
|
|
188
|
-
_d = !0, _e = err;
|
|
189
|
-
} finally {
|
|
190
|
-
try {
|
|
191
|
-
if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
|
|
192
|
-
} finally {
|
|
193
|
-
if (_d) throw _e;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
return _arr;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
function _classCallCheck(instance, Constructor) {
|
|
200
|
-
if (!(instance instanceof Constructor)) {
|
|
201
|
-
throw new TypeError("Cannot call a class as a function");
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
function _defineProperties(target, props) {
|
|
205
|
-
for (var i = 0; i < props.length; i++) {
|
|
206
|
-
var descriptor = props[i];
|
|
207
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
208
|
-
descriptor.configurable = true;
|
|
209
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
210
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
214
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
215
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
216
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
217
|
-
writable: false
|
|
218
|
-
});
|
|
219
|
-
return Constructor;
|
|
172
|
+
function _arrayLikeToArray(r, a) {
|
|
173
|
+
(null == a || a > r.length) && (a = r.length);
|
|
174
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
175
|
+
return n;
|
|
220
176
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
177
|
+
function _arrayWithHoles(r) {
|
|
178
|
+
if (Array.isArray(r)) return r;
|
|
223
179
|
}
|
|
224
|
-
function
|
|
225
|
-
if (
|
|
180
|
+
function _classCallCheck(a, n) {
|
|
181
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
226
182
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
233
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
234
|
-
}
|
|
235
|
-
function _arrayLikeToArray(arr, len) {
|
|
236
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
237
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
238
|
-
return arr2;
|
|
183
|
+
function _defineProperties(e, r) {
|
|
184
|
+
for (var t = 0; t < r.length; t++) {
|
|
185
|
+
var o = r[t];
|
|
186
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
187
|
+
}
|
|
239
188
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
189
|
+
function _createClass(e, r, t) {
|
|
190
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
191
|
+
writable: !1
|
|
192
|
+
}), e;
|
|
242
193
|
}
|
|
243
|
-
function _createForOfIteratorHelper(
|
|
244
|
-
var
|
|
245
|
-
if (!
|
|
246
|
-
if (Array.isArray(
|
|
247
|
-
|
|
248
|
-
var
|
|
249
|
-
|
|
194
|
+
function _createForOfIteratorHelper(r, e) {
|
|
195
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
196
|
+
if (!t) {
|
|
197
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
198
|
+
t && (r = t);
|
|
199
|
+
var n = 0,
|
|
200
|
+
F = function () {};
|
|
250
201
|
return {
|
|
251
202
|
s: F,
|
|
252
203
|
n: function () {
|
|
253
|
-
|
|
254
|
-
done:
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
value: o[i++]
|
|
204
|
+
return n >= r.length ? {
|
|
205
|
+
done: !0
|
|
206
|
+
} : {
|
|
207
|
+
done: !1,
|
|
208
|
+
value: r[n++]
|
|
259
209
|
};
|
|
260
210
|
},
|
|
261
|
-
e: function (
|
|
262
|
-
throw
|
|
211
|
+
e: function (r) {
|
|
212
|
+
throw r;
|
|
263
213
|
},
|
|
264
214
|
f: F
|
|
265
215
|
};
|
|
266
216
|
}
|
|
267
217
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
268
218
|
}
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
|
|
219
|
+
var o,
|
|
220
|
+
a = !0,
|
|
221
|
+
u = !1;
|
|
272
222
|
return {
|
|
273
223
|
s: function () {
|
|
274
|
-
|
|
224
|
+
t = t.call(r);
|
|
275
225
|
},
|
|
276
226
|
n: function () {
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
return step;
|
|
227
|
+
var r = t.next();
|
|
228
|
+
return a = r.done, r;
|
|
280
229
|
},
|
|
281
|
-
e: function (
|
|
282
|
-
|
|
283
|
-
err = e;
|
|
230
|
+
e: function (r) {
|
|
231
|
+
u = !0, o = r;
|
|
284
232
|
},
|
|
285
233
|
f: function () {
|
|
286
234
|
try {
|
|
287
|
-
|
|
235
|
+
a || null == t.return || t.return();
|
|
288
236
|
} finally {
|
|
289
|
-
if (
|
|
237
|
+
if (u) throw o;
|
|
290
238
|
}
|
|
291
239
|
}
|
|
292
240
|
};
|
|
293
241
|
}
|
|
294
|
-
function
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
242
|
+
function _iterableToArrayLimit(r, l) {
|
|
243
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
244
|
+
if (null != t) {
|
|
245
|
+
var e,
|
|
246
|
+
n,
|
|
247
|
+
i,
|
|
248
|
+
u,
|
|
249
|
+
a = [],
|
|
250
|
+
f = !0,
|
|
251
|
+
o = !1;
|
|
252
|
+
try {
|
|
253
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
254
|
+
if (Object(t) !== t) return;
|
|
255
|
+
f = !1;
|
|
256
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
257
|
+
} catch (r) {
|
|
258
|
+
o = !0, n = r;
|
|
259
|
+
} finally {
|
|
260
|
+
try {
|
|
261
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
262
|
+
} finally {
|
|
263
|
+
if (o) throw n;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return a;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
function _nonIterableRest() {
|
|
270
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
271
|
+
}
|
|
272
|
+
function _slicedToArray(r, e) {
|
|
273
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
274
|
+
}
|
|
275
|
+
function _toPrimitive(t, r) {
|
|
276
|
+
if ("object" != typeof t || !t) return t;
|
|
277
|
+
var e = t[Symbol.toPrimitive];
|
|
278
|
+
if (void 0 !== e) {
|
|
279
|
+
var i = e.call(t, r || "default");
|
|
280
|
+
if ("object" != typeof i) return i;
|
|
300
281
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
301
282
|
}
|
|
302
|
-
return (
|
|
283
|
+
return ("string" === r ? String : Number)(t);
|
|
284
|
+
}
|
|
285
|
+
function _toPropertyKey(t) {
|
|
286
|
+
var i = _toPrimitive(t, "string");
|
|
287
|
+
return "symbol" == typeof i ? i : i + "";
|
|
303
288
|
}
|
|
304
|
-
function
|
|
305
|
-
|
|
306
|
-
|
|
289
|
+
function _unsupportedIterableToArray(r, a) {
|
|
290
|
+
if (r) {
|
|
291
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
292
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
293
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
294
|
+
}
|
|
307
295
|
}
|
|
308
296
|
|
|
309
297
|
/**
|
|
@@ -329,7 +317,7 @@ var FeatureFlagScope = /*#__PURE__*/function () {
|
|
|
329
317
|
* Check to see if a flag exists
|
|
330
318
|
* @param {string} name
|
|
331
319
|
*/
|
|
332
|
-
_createClass(FeatureFlagScope, [{
|
|
320
|
+
return _createClass(FeatureFlagScope, [{
|
|
333
321
|
key: "checkForFlag",
|
|
334
322
|
value: function checkForFlag(name) {
|
|
335
323
|
if (!this.flags.has(name)) {
|
|
@@ -424,7 +412,6 @@ var FeatureFlagScope = /*#__PURE__*/function () {
|
|
|
424
412
|
return this.flags.get(name);
|
|
425
413
|
}
|
|
426
414
|
}]);
|
|
427
|
-
return FeatureFlagScope;
|
|
428
415
|
}();
|
|
429
416
|
|
|
430
417
|
var FeatureFlags = createScope();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/feature-flags",
|
|
3
3
|
"description": "Build with feature flags in Carbon",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/core": "^7.
|
|
40
|
-
"@babel/generator": "^7.
|
|
41
|
-
"@babel/preset-env": "^7.
|
|
42
|
-
"@babel/template": "^7.
|
|
43
|
-
"@babel/types": "^7.
|
|
39
|
+
"@babel/core": "^7.24.7",
|
|
40
|
+
"@babel/generator": "^7.24.7",
|
|
41
|
+
"@babel/preset-env": "^7.24.7",
|
|
42
|
+
"@babel/template": "^7.24.7",
|
|
43
|
+
"@babel/types": "^7.24.7",
|
|
44
44
|
"@carbon/scss-generator": "^10.18.0",
|
|
45
45
|
"@rollup/plugin-babel": "^6.0.0",
|
|
46
46
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@ibm/telemetry-js": "^1.5.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "70a0775c76273e311cb1bb16db02d3f11ad8d018"
|
|
64
64
|
}
|