@khanacademy/kas 0.3.1 → 0.3.3
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/CHANGELOG.md +15 -0
- package/dist/es/index.js +11 -5
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -0
- package/experimenter.html +42 -17
- package/package.json +7 -4
- package/src/compare.js +5 -5
- package/src/index.js +2 -0
- package/src/version.ts +10 -0
- package/tsconfig-build.json +10 -0
- package/tsconfig-build.tsbuildinfo +1 -0
- package/tsconfig.json +0 -9
package/dist/index.js
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var perseusCore = require('@khanacademy/perseus-core');
|
|
5
6
|
var _ = require('underscore');
|
|
6
7
|
|
|
7
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
9
|
|
|
9
10
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
10
11
|
|
|
12
|
+
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
13
|
+
const libName = "@khanacademy/kas";
|
|
14
|
+
const libVersion = "0.3.3";
|
|
15
|
+
perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
16
|
+
|
|
11
17
|
// this is a @generated file
|
|
12
18
|
|
|
13
19
|
/* parser generated by jison 0.4.15 */
|
|
@@ -5831,10 +5837,10 @@ const compare = function (expr1, expr2, options) {
|
|
|
5831
5837
|
};
|
|
5832
5838
|
|
|
5833
5839
|
/* Options that could be added in the future:
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5840
|
+
* - Allow ratios: e.g. 3/1 and 3 should both be accepted for something
|
|
5841
|
+
* like slope
|
|
5842
|
+
* - Allow student to choose their own variable names
|
|
5843
|
+
*/
|
|
5838
5844
|
|
|
5839
5845
|
if (options !== undefined) {
|
|
5840
5846
|
// eslint-disable-next-line no-undef
|
|
@@ -5908,6 +5914,7 @@ exports.Unit = Unit;
|
|
|
5908
5914
|
exports.Var = Var;
|
|
5909
5915
|
exports.Zero = Zero;
|
|
5910
5916
|
exports.compare = compare;
|
|
5917
|
+
exports.libVersion = libVersion;
|
|
5911
5918
|
exports.parse = parse;
|
|
5912
5919
|
exports.unitParse = unitParse;
|
|
5913
5920
|
//# sourceMappingURL=index.js.map
|