@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/CHANGELOG.md +9 -0
- package/dist/es/index.js +7 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -0
- package/package.json +4 -3
- package/src/index.ts +2 -0
- package/src/version.ts +10 -0
- package/tsconfig-build.json +1 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @khanacademy/perseus-linter
|
|
2
2
|
|
|
3
|
+
## 0.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 55d4cd00: Print package name and version when loaded in the page
|
|
8
|
+
- Updated dependencies [55d4cd00]
|
|
9
|
+
- @khanacademy/perseus-core@1.1.1
|
|
10
|
+
- @khanacademy/perseus-error@0.2.4
|
|
11
|
+
|
|
3
12
|
## 0.3.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
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() {
|
|
@@ -1749,6 +1750,11 @@ class Stack {
|
|
|
1749
1750
|
}
|
|
1750
1751
|
}
|
|
1751
1752
|
|
|
1753
|
+
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
1754
|
+
const libName = "@khanacademy/perseus-linter";
|
|
1755
|
+
const libVersion = "0.3.5";
|
|
1756
|
+
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
1757
|
+
|
|
1752
1758
|
// Define the shape of the linter context object that is passed through the
|
|
1753
1759
|
const linterContextProps = PropTypes.shape({
|
|
1754
1760
|
contentType: PropTypes.string,
|
|
@@ -2017,5 +2023,5 @@ function pushContextStack(context, name) {
|
|
|
2017
2023
|
});
|
|
2018
2024
|
}
|
|
2019
2025
|
|
|
2020
|
-
export { Rule, linterContextDefault, linterContextProps, pushContextStack, allLintRules as rules, runLinter };
|
|
2026
|
+
export { Rule, libVersion, linterContextDefault, linterContextProps, pushContextStack, allLintRules as rules, runLinter };
|
|
2021
2027
|
//# sourceMappingURL=index.js.map
|