@khanacademy/perseus-linter 0.3.4 → 0.3.5

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/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import Rule from "./rule";
2
+ export { libVersion } from "./version";
2
3
  export { linterContextProps, linterContextDefault } from "./proptypes";
3
4
  export type { LinterContextProps } from "./types";
4
5
  declare const allLintRules: ReadonlyArray<any>;
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var perseusError = require('@khanacademy/perseus-error');
6
+ var perseusCore = require('@khanacademy/perseus-core');
6
7
  var PropTypes = require('prop-types');
7
8
 
8
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -1550,6 +1551,11 @@ class Stack {
1550
1551
  }
1551
1552
  }
1552
1553
 
1554
+ // This file is processed by a Rollup plugin (replace) to inject the production
1555
+ const libName = "@khanacademy/perseus-linter";
1556
+ const libVersion = "0.3.5";
1557
+ perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
1558
+
1553
1559
  // Define the shape of the linter context object that is passed through the
1554
1560
  const linterContextProps = PropTypes__default["default"].shape({
1555
1561
  contentType: PropTypes__default["default"].string,
@@ -1822,6 +1828,7 @@ function pushContextStack(context, name) {
1822
1828
  }
1823
1829
 
1824
1830
  exports.Rule = Rule;
1831
+ exports.libVersion = libVersion;
1825
1832
  exports.linterContextDefault = linterContextDefault;
1826
1833
  exports.linterContextProps = linterContextProps;
1827
1834
  exports.pushContextStack = pushContextStack;