@khanacademy/perseus-linter 0.0.0-PR745-20230928001000 → 0.0.0-PR745-20231003215634

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,5 +1,5 @@
1
1
  import Rule from "./rule";
2
- export { default as libVersion } from "./version";
2
+ export { libVersion } from "./version";
3
3
  export { linterContextProps, linterContextDefault } from "./proptypes";
4
4
  export type { LinterContextProps } from "./types";
5
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 }; }
@@ -1551,21 +1552,9 @@ class Stack {
1551
1552
  }
1552
1553
 
1553
1554
  // This file is processed by a Rollup plugin (replace) to inject the production
1554
- // version number during the release build.
1555
- // In dev, you'll never see the version number.
1556
-
1557
1555
  const libName = "@khanacademy/perseus-linter";
1558
- const libVersion = "0.3.4"; // Injected by the build in rollup.config.js;
1559
-
1560
- /**
1561
- * Log library version to the console.
1562
- */
1563
- if (globalThis && !globalThis.PERSEUS_SILENCE_LOGGING) {
1564
- let prefix = "v";
1565
- const printString = " * ".concat(libName, " ").concat(prefix).concat(libVersion, " * ");
1566
- // eslint-disable-next-line no-console
1567
- console.log("%c".concat(printString), "background: #000; color: #fff");
1568
- }
1556
+ const libVersion = "0.3.4";
1557
+ perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
1569
1558
 
1570
1559
  // Define the shape of the linter context object that is passed through the
1571
1560
  const linterContextProps = PropTypes__default["default"].shape({