@atlaspack/diagnostic 2.14.2 → 2.14.3

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaspack/diagnostic
2
2
 
3
+ ## 2.14.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
8
+
3
9
  ## 2.14.2
4
10
 
5
11
  ### Patch Changes
@@ -152,7 +152,7 @@ export declare function convertSourceLocationToHighlight<Location extends {
152
152
  export declare function encodeJSONKeyComponent(component: string): string;
153
153
  export declare function escapeMarkdown(s: string): string;
154
154
  type TemplateInput = any;
155
- export declare function md(strings: Array<string>, ...params: Array<TemplateInput>): string;
155
+ export declare function md(strings: TemplateStringsArray, ...params: Array<TemplateInput>): string;
156
156
  export declare namespace md {
157
157
  var bold: (s: TemplateInput) => TemplateInput;
158
158
  var italic: (s: TemplateInput) => TemplateInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/diagnostic",
3
- "version": "2.14.2",
3
+ "version": "2.14.3",
4
4
  "description": "Types and utilities for printing source-code located errors, warning and information messages.",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -12,16 +12,17 @@
12
12
  },
13
13
  "main": "./lib/diagnostic.js",
14
14
  "source": "./src/diagnostic.ts",
15
- "types": "./lib/diagnostic.d.ts",
15
+ "types": "./lib/types/diagnostic.d.ts",
16
16
  "engines": {
17
17
  "node": ">= 16.0.0"
18
18
  },
19
19
  "scripts": {
20
- "check-ts": "tsc --emitDeclarationOnly --rootDir src"
20
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
21
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
21
22
  },
22
23
  "dependencies": {
23
24
  "@mischnic/json-sourcemap": "^0.1.0",
24
25
  "nullthrows": "^1.1.1"
25
26
  },
26
27
  "type": "commonjs"
27
- }
28
+ }
package/src/diagnostic.ts CHANGED
@@ -336,7 +336,7 @@ type TemplateInput = any;
336
336
 
337
337
  const mdVerbatim = Symbol();
338
338
  export function md(
339
- strings: Array<string>,
339
+ strings: TemplateStringsArray,
340
340
  ...params: Array<TemplateInput>
341
341
  ): string {
342
342
  let result: Array<any | string> = [];