@khanacademy/perseus-linter 0.0.0-PR725-20230913212515 → 0.0.0-PR745-20230928001000
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 +12 -4
- package/dist/es/index.js +18 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +2 -0
- package/package.json +3 -3
- package/src/index.ts +2 -0
- package/src/version.ts +21 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# @khanacademy/perseus-linter
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-PR745-20230928001000
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- Updated dependencies [
|
|
9
|
-
- @khanacademy/perseus-error@0.0.0-
|
|
7
|
+
- dc6c6973: Print package name and version when loaded in the page
|
|
8
|
+
- Updated dependencies [dc6c6973]
|
|
9
|
+
- @khanacademy/perseus-error@0.0.0-PR745-20230928001000
|
|
10
|
+
|
|
11
|
+
## 0.3.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 388b6506: Convert runLinter doc comment to /\*\* \*/ format so editors pick it up better (VSCode).
|
|
16
|
+
- Updated dependencies [388b6506]
|
|
17
|
+
- @khanacademy/perseus-error@0.2.3
|
|
10
18
|
|
|
11
19
|
## 0.3.3
|
|
12
20
|
|
package/dist/es/index.js
CHANGED
|
@@ -1749,6 +1749,23 @@ class Stack {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
|
+
// 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
|
+
const libName = "@khanacademy/perseus-linter";
|
|
1757
|
+
const libVersion = "0.3.4"; // Injected by the build in rollup.config.js;
|
|
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
|
+
}
|
|
1768
|
+
|
|
1752
1769
|
// Define the shape of the linter context object that is passed through the
|
|
1753
1770
|
const linterContextProps = PropTypes.shape({
|
|
1754
1771
|
contentType: PropTypes.string,
|
|
@@ -2017,5 +2034,5 @@ function pushContextStack(context, name) {
|
|
|
2017
2034
|
});
|
|
2018
2035
|
}
|
|
2019
2036
|
|
|
2020
|
-
export { Rule, linterContextDefault, linterContextProps, pushContextStack, allLintRules as rules, runLinter };
|
|
2037
|
+
export { Rule, libVersion, linterContextDefault, linterContextProps, pushContextStack, allLintRules as rules, runLinter };
|
|
2021
2038
|
//# sourceMappingURL=index.js.map
|