@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/CHANGELOG.md +3 -2
- package/dist/es/index.js +3 -14
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -2
- package/package.json +4 -3
- package/src/index.ts +1 -1
- package/src/version.ts +4 -15
- package/tsconfig-build.json +1 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# @khanacademy/perseus-linter
|
|
2
2
|
|
|
3
|
-
## 0.0.0-PR745-
|
|
3
|
+
## 0.0.0-PR745-20231003215634
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- dc6c6973: Print package name and version when loaded in the page
|
|
8
8
|
- Updated dependencies [dc6c6973]
|
|
9
|
-
- @khanacademy/perseus-
|
|
9
|
+
- @khanacademy/perseus-core@0.0.0-PR745-20231003215634
|
|
10
|
+
- @khanacademy/perseus-error@0.0.0-PR745-20231003215634
|
|
10
11
|
|
|
11
12
|
## 0.3.4
|
|
12
13
|
|
package/dist/es/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PerseusError, Errors } from '@khanacademy/perseus-error';
|
|
2
|
+
import { addLibraryVersionToPerseusDebug } from '@khanacademy/perseus-core';
|
|
2
3
|
import PropTypes from 'prop-types';
|
|
3
4
|
|
|
4
5
|
function _extends() {
|
|
@@ -1750,21 +1751,9 @@ class Stack {
|
|
|
1750
1751
|
}
|
|
1751
1752
|
|
|
1752
1753
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
1753
|
-
// version number during the release build.
|
|
1754
|
-
// In dev, you'll never see the version number.
|
|
1755
|
-
|
|
1756
1754
|
const libName = "@khanacademy/perseus-linter";
|
|
1757
|
-
const libVersion = "0.3.4";
|
|
1758
|
-
|
|
1759
|
-
/**
|
|
1760
|
-
* Log library version to the console.
|
|
1761
|
-
*/
|
|
1762
|
-
if (globalThis && !globalThis.PERSEUS_SILENCE_LOGGING) {
|
|
1763
|
-
let prefix = "v";
|
|
1764
|
-
const printString = ` * ${libName} ${prefix}${libVersion} * `;
|
|
1765
|
-
// eslint-disable-next-line no-console
|
|
1766
|
-
console.log(`%c${printString}`, "background: #000; color: #fff");
|
|
1767
|
-
}
|
|
1755
|
+
const libVersion = "0.3.4";
|
|
1756
|
+
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
1768
1757
|
|
|
1769
1758
|
// Define the shape of the linter context object that is passed through the
|
|
1770
1759
|
const linterContextProps = PropTypes.shape({
|