Skip to content

Commit 8d0f6a9

Browse files
committed
fix(cubejs-playground): header style
1 parent fadbdf2 commit 8d0f6a9

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

packages/cubejs-client-core/dist/cubejs-client-core.umd.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,8 @@
10711071
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
10721072
if (!IS_NODE$1 && typeof PromiseRejectionEvent != 'function') return true;
10731073
}
1074+
// We need Promise#finally in the pure version for preventing prototype pollution
1075+
if (isPure && !PromiseConstructor.prototype['finally']) return true;
10741076
// We can't use @@species feature detection in V8 since it causes
10751077
// deoptimization and performance degradation
10761078
// https://github.com/zloirock/core-js/issues/679
@@ -1290,7 +1292,7 @@
12901292
: newGenericPromiseCapability(C);
12911293
};
12921294

1293-
if (typeof nativePromiseConstructor == 'function') {
1295+
if (!isPure && typeof nativePromiseConstructor == 'function') {
12941296
nativeThen = nativePromiseConstructor.prototype.then;
12951297

12961298
// wrap native Promise#then for native async functions
@@ -1332,11 +1334,11 @@
13321334
}
13331335
});
13341336

1335-
_export({ target: PROMISE, stat: true, forced: FORCED }, {
1337+
_export({ target: PROMISE, stat: true, forced: isPure || FORCED }, {
13361338
// `Promise.resolve` method
13371339
// https://tc39.github.io/ecma262/#sec-promise.resolve
13381340
resolve: function resolve(x) {
1339-
return promiseResolve(this, x);
1341+
return promiseResolve(isPure && this === PromiseWrapper ? PromiseConstructor : this, x);
13401342
}
13411343
});
13421344

@@ -1797,7 +1799,7 @@
17971799
return getInternalState$1(this).description;
17981800
}
17991801
});
1800-
if (!isPure) {
1802+
{
18011803
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
18021804
}
18031805
}
@@ -2160,7 +2162,7 @@
21602162
if (anyNativeIterator) {
21612163
CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
21622164
if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
2163-
if (!isPure && objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
2165+
if (objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
21642166
if (objectSetPrototypeOf) {
21652167
objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
21662168
} else if (typeof CurrentIteratorPrototype[ITERATOR$4] != 'function') {
@@ -2169,7 +2171,6 @@
21692171
}
21702172
// Set @@toStringTag to native iterators
21712173
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
2172-
if (isPure) iterators[TO_STRING_TAG] = returnThis$2;
21732174
}
21742175
}
21752176

@@ -2180,7 +2181,7 @@
21802181
}
21812182

21822183
// define iterator
2183-
if ((!isPure || FORCED) && IterablePrototype[ITERATOR$4] !== defaultIterator) {
2184+
if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
21842185
createNonEnumerableProperty(IterablePrototype, ITERATOR$4, defaultIterator);
21852186
}
21862187
iterators[NAME] = defaultIterator;

packages/cubejs-playground/src/index.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
}
3131

3232
.ant-menu-horizontal .ant-menu-item {
33-
margin-top: 0;
34-
top: -2px;
33+
top: 0;
34+
height: 100%;
3535
}

0 commit comments

Comments
 (0)