@atlaspack/codeframe 2.13.3-canary.21 → 2.13.3-canary.210
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 +15 -0
- package/lib/codeframe.d.ts +16 -0
- package/lib/codeframe.js +227 -36037
- package/package.json +10 -8
- package/src/{codeframe.js → codeframe.ts} +22 -21
- package/test/{codeframe.test.js → codeframe.test.ts} +0 -1
- package/tsconfig.json +4 -0
- package/lib/codeframe.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaspack/codeframe
|
|
2
2
|
|
|
3
|
+
## 2.13.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#645](https://github.com/atlassian-labs/atlaspack/pull/645) [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3) Thanks [@alshdavid](https://github.com/alshdavid)! - Updated build system and added some extra test-specific code
|
|
8
|
+
|
|
9
|
+
- [#682](https://github.com/atlassian-labs/atlaspack/pull/682) [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56) Thanks [@alshdavid](https://github.com/alshdavid)! - Updating build system
|
|
10
|
+
|
|
11
|
+
## 2.13.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#478](https://github.com/atlassian-labs/atlaspack/pull/478) [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b) Thanks [@yamadapc](https://github.com/yamadapc)! - The first attempt at Version Packages didn't include the built artifacts.
|
|
16
|
+
This has hopefully been fixed, so this change will force those packages to re-release.
|
|
17
|
+
|
|
3
18
|
## 2.13.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DiagnosticCodeHighlight } from '@atlaspack/diagnostic';
|
|
2
|
+
type CodeFramePadding = {
|
|
3
|
+
before: number;
|
|
4
|
+
after: number;
|
|
5
|
+
};
|
|
6
|
+
type CodeFrameOptionsInput = Partial<CodeFrameOptions>;
|
|
7
|
+
type CodeFrameOptions = {
|
|
8
|
+
useColor: boolean;
|
|
9
|
+
syntaxHighlighting: boolean;
|
|
10
|
+
maxLines: number;
|
|
11
|
+
padding: CodeFramePadding;
|
|
12
|
+
terminalWidth: number;
|
|
13
|
+
language?: string;
|
|
14
|
+
};
|
|
15
|
+
export default function codeFrame(code: string, highlights: Array<DiagnosticCodeHighlight>, inputOpts?: CodeFrameOptionsInput): string;
|
|
16
|
+
export {};
|