@khanacademy/kas 0.4.2 → 0.4.4

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/dist/es/index.js CHANGED
@@ -3,17 +3,25 @@ import _ from 'underscore';
3
3
 
4
4
  // This file is processed by a Rollup plugin (replace) to inject the production
5
5
  const libName = "@khanacademy/kas";
6
- const libVersion = "0.4.2";
6
+ const libVersion = "0.4.4";
7
7
  addLibraryVersionToPerseusDebug(libName, libVersion);
8
8
 
9
9
  function _extends() {
10
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
11
- for (var e = 1; e < arguments.length; e++) {
12
- var t = arguments[e];
13
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
10
+ _extends = Object.assign || function (target) {
11
+ for (var i = 1; i < arguments.length; i++) {
12
+ var source = arguments[i];
13
+
14
+ for (var key in source) {
15
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
16
+ target[key] = source[key];
17
+ }
18
+ }
14
19
  }
15
- return n;
16
- }, _extends.apply(null, arguments);
20
+
21
+ return target;
22
+ };
23
+
24
+ return _extends.apply(this, arguments);
17
25
  }
18
26
 
19
27
  // this is a @generated file
@@ -2763,7 +2771,7 @@ class Expr {
2763
2771
  // @ts-expect-error: TypeScript doesn't want to unify
2764
2772
  // `Function` with the `compile`'s return type.
2765
2773
  return new Function("vars", "return " + code + ";");
2766
- } catch (e) {
2774
+ } catch (_unused) {
2767
2775
  throw new Error("Function did not compile: " + code);
2768
2776
  }
2769
2777
  }