@definitelytyped/dts-critic 0.0.99 → 0.0.100-next.0
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/dist/index.test.js +19 -16
- package/dist/index.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/index.test.ts +35 -23
- package/package.json +3 -5
- package/dist/jest.config.d.ts +0 -2
- package/dist/jest.config.js +0 -11
- package/dist/jest.config.js.map +0 -1
- package/jest.config.js +0 -9
package/dist/index.test.js
CHANGED
|
@@ -17,13 +17,13 @@ suite("findDtsName", {
|
|
|
17
17
|
expect(index_1.findDtsName("jquery/index.d.ts")).toBe("jquery");
|
|
18
18
|
},
|
|
19
19
|
currentDirectory() {
|
|
20
|
-
expect(index_1.findDtsName("index.d.ts")).toBe("
|
|
20
|
+
expect(index_1.findDtsName("index.d.ts")).toBe("DefinitelyTyped-tools");
|
|
21
21
|
},
|
|
22
22
|
relativeCurrentDirectory() {
|
|
23
|
-
expect(index_1.findDtsName("./index.d.ts")).toBe("
|
|
23
|
+
expect(index_1.findDtsName("./index.d.ts")).toBe("DefinitelyTyped-tools");
|
|
24
24
|
},
|
|
25
25
|
emptyDirectory() {
|
|
26
|
-
expect(index_1.findDtsName("")).toBe("
|
|
26
|
+
expect(index_1.findDtsName("")).toBe("DefinitelyTyped-tools");
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
suite("getNpmInfo", {
|
|
@@ -65,12 +65,15 @@ const allErrors = new Map([
|
|
|
65
65
|
[index_1.ErrorKind.DtsPropertyNotInJs, true],
|
|
66
66
|
[index_1.ErrorKind.JsPropertyNotInDts, true]
|
|
67
67
|
]);
|
|
68
|
+
function testsource(filename) {
|
|
69
|
+
return __dirname + "/testsource/" + filename;
|
|
70
|
+
}
|
|
68
71
|
suite("checkSource", {
|
|
69
72
|
noErrors() {
|
|
70
|
-
expect(index_1.checkSource("noErrors", "
|
|
73
|
+
expect(index_1.checkSource("noErrors", testsource("noErrors.d.ts"), testsource("noErrors.js"), allErrors, false)).toEqual([]);
|
|
71
74
|
},
|
|
72
75
|
missingJsProperty() {
|
|
73
|
-
expect(index_1.checkSource("missingJsProperty", "
|
|
76
|
+
expect(index_1.checkSource("missingJsProperty", testsource("missingJsProperty.d.ts"), testsource("missingJsProperty.js"), allErrors, false)).toEqual(expect.arrayContaining([
|
|
74
77
|
{
|
|
75
78
|
kind: index_1.ErrorKind.JsPropertyNotInDts,
|
|
76
79
|
message: `The declaration doesn't match the JavaScript module 'missingJsProperty'. Reason:
|
|
@@ -79,10 +82,10 @@ The JavaScript module exports a property named 'foo', which is missing from the
|
|
|
79
82
|
]));
|
|
80
83
|
},
|
|
81
84
|
noMissingWebpackProperty() {
|
|
82
|
-
expect(index_1.checkSource("missingJsProperty", "
|
|
85
|
+
expect(index_1.checkSource("missingJsProperty", testsource("webpackPropertyNames.d.ts"), testsource("webpackPropertyNames.js"), allErrors, false)).toHaveLength(0);
|
|
83
86
|
},
|
|
84
87
|
missingDtsProperty() {
|
|
85
|
-
expect(index_1.checkSource("missingDtsProperty", "
|
|
88
|
+
expect(index_1.checkSource("missingDtsProperty", testsource("missingDtsProperty.d.ts"), testsource("missingDtsProperty.js"), allErrors, false)).toEqual(expect.arrayContaining([
|
|
86
89
|
{
|
|
87
90
|
kind: index_1.ErrorKind.DtsPropertyNotInJs,
|
|
88
91
|
message: `The declaration doesn't match the JavaScript module 'missingDtsProperty'. Reason:
|
|
@@ -95,7 +98,7 @@ The declaration module exports a property named 'foo', which is missing from the
|
|
|
95
98
|
]));
|
|
96
99
|
},
|
|
97
100
|
missingDefaultExport() {
|
|
98
|
-
expect(index_1.checkSource("missingDefault", "
|
|
101
|
+
expect(index_1.checkSource("missingDefault", testsource("missingDefault.d.ts"), testsource("missingDefault.js"), allErrors, false)).toEqual(expect.arrayContaining([
|
|
99
102
|
{
|
|
100
103
|
kind: index_1.ErrorKind.NoDefaultExport,
|
|
101
104
|
message: `The declaration doesn't match the JavaScript module 'missingDefault'. Reason:
|
|
@@ -111,7 +114,7 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
|
|
|
111
114
|
]));
|
|
112
115
|
},
|
|
113
116
|
missingJsSignatureExportEquals() {
|
|
114
|
-
expect(index_1.checkSource("missingJsSignatureExportEquals", "
|
|
117
|
+
expect(index_1.checkSource("missingJsSignatureExportEquals", testsource("missingJsSignatureExportEquals.d.ts"), testsource("missingJsSignatureExportEquals.js"), allErrors, false)).toEqual(expect.arrayContaining([
|
|
115
118
|
{
|
|
116
119
|
kind: index_1.ErrorKind.JsSignatureNotInDts,
|
|
117
120
|
message: `The declaration doesn't match the JavaScript module 'missingJsSignatureExportEquals'. Reason:
|
|
@@ -120,7 +123,7 @@ The JavaScript module can be called or constructed, but the declaration module c
|
|
|
120
123
|
]));
|
|
121
124
|
},
|
|
122
125
|
missingJsSignatureNoExportEquals() {
|
|
123
|
-
expect(index_1.checkSource("missingJsSignatureNoExportEquals", "
|
|
126
|
+
expect(index_1.checkSource("missingJsSignatureNoExportEquals", testsource("missingJsSignatureNoExportEquals.d.ts"), testsource("missingJsSignatureNoExportEquals.js"), allErrors, false)).toEqual(expect.arrayContaining([
|
|
124
127
|
{
|
|
125
128
|
kind: index_1.ErrorKind.JsSignatureNotInDts,
|
|
126
129
|
message: `The declaration doesn't match the JavaScript module 'missingJsSignatureNoExportEquals'. Reason:
|
|
@@ -132,7 +135,7 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
|
|
|
132
135
|
]));
|
|
133
136
|
},
|
|
134
137
|
missingDtsSignature() {
|
|
135
|
-
expect(index_1.checkSource("missingDtsSignature", "
|
|
138
|
+
expect(index_1.checkSource("missingDtsSignature", testsource("missingDtsSignature.d.ts"), testsource("missingDtsSignature.js"), allErrors, false)).toEqual(expect.arrayContaining([
|
|
136
139
|
{
|
|
137
140
|
kind: index_1.ErrorKind.DtsSignatureNotInJs,
|
|
138
141
|
message: `The declaration doesn't match the JavaScript module 'missingDtsSignature'. Reason:
|
|
@@ -141,7 +144,7 @@ The declaration module can be called or constructed, but the JavaScript module c
|
|
|
141
144
|
]));
|
|
142
145
|
},
|
|
143
146
|
missingExportEquals() {
|
|
144
|
-
expect(index_1.checkSource("missingExportEquals", "
|
|
147
|
+
expect(index_1.checkSource("missingExportEquals", testsource("missingExportEquals.d.ts"), testsource("missingExportEquals.js"), allErrors, false)).toEqual(expect.arrayContaining([
|
|
145
148
|
{
|
|
146
149
|
kind: index_1.ErrorKind.NeedsExportEquals,
|
|
147
150
|
message: `The declaration doesn't match the JavaScript module 'missingExportEquals'. Reason:
|
|
@@ -154,10 +157,10 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
|
|
|
154
157
|
});
|
|
155
158
|
suite("dtsCritic", {
|
|
156
159
|
noErrors() {
|
|
157
|
-
expect(index_1.dtsCritic("
|
|
160
|
+
expect(index_1.dtsCritic(testsource("dts-critic.d.ts"), testsource("dts-critic.js"))).toEqual([]);
|
|
158
161
|
},
|
|
159
162
|
noMatchingNpmPackage() {
|
|
160
|
-
expect(index_1.dtsCritic("
|
|
163
|
+
expect(index_1.dtsCritic(testsource("parseltongue.d.ts"))).toEqual([
|
|
161
164
|
{
|
|
162
165
|
kind: index_1.ErrorKind.NoMatchingNpmPackage,
|
|
163
166
|
message: `Declaration file must have a matching npm package.
|
|
@@ -173,7 +176,7 @@ Add -browser to the end of your name to make sure it doesn't conflict with exist
|
|
|
173
176
|
]);
|
|
174
177
|
},
|
|
175
178
|
noMatchingNpmVersion() {
|
|
176
|
-
expect(index_1.dtsCritic("
|
|
179
|
+
expect(index_1.dtsCritic(testsource("typescript.d.ts"))).toEqual([
|
|
177
180
|
{
|
|
178
181
|
kind: index_1.ErrorKind.NoMatchingNpmVersion,
|
|
179
182
|
message: expect.stringContaining(`The types for 'typescript' must match a version that exists on npm.
|
|
@@ -182,7 +185,7 @@ You should copy the major and minor version from the package on npm.`)
|
|
|
182
185
|
]);
|
|
183
186
|
},
|
|
184
187
|
nonNpmHasMatchingPackage() {
|
|
185
|
-
expect(index_1.dtsCritic("
|
|
188
|
+
expect(index_1.dtsCritic(testsource("tslib.d.ts"))).toEqual([
|
|
186
189
|
{
|
|
187
190
|
kind: index_1.ErrorKind.NonNpmHasMatchingPackage,
|
|
188
191
|
message: `The non-npm package 'tslib' conflicts with the existing npm package 'tslib'.
|
package/dist/index.test.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../index.test.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,mCASiB;AAEjB,SAAS,KAAK,CAAC,WAAmB,EAAE,KAAkC;IACpE,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;YACrB,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;SAC9B;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,KAAK,CAAC,aAAa,EAAE;IACnB,YAAY;QACV,MAAM,CAAC,mBAAW,CAAC,8BAA8B,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrE,CAAC;IACD,YAAY;QACV,MAAM,CAAC,mBAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,CAAC;IACD,gBAAgB;QACd,MAAM,CAAC,mBAAW,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../index.test.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,mCASiB;AAEjB,SAAS,KAAK,CAAC,WAAmB,EAAE,KAAkC;IACpE,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;YACrB,IAAI,CAAC,CAAC,EAAE,KA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gBACE,IAAI,EAAE,iBAAS,CAAC,iBAAiB;gBACjC,OAAO,EAAE;;;kIAG+G;aACzH;SACF,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AACH,KAAK,CAAC,WAAW,EAAE;IACjB,QAAQ;QACN,MAAM,CAAC,iBAAS,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC5F,CAAC;IACD,oBAAoB;QAClB,MAAM,CAAC,iBAAS,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACzD;gBACE,IAAI,EAAE,iBAAS,CAAC,oBAAoB;gBACpC,OAAO,EAAE;;;;;;;;kGAQiF;aAC3F;SACF,CAAC,CAAC;IACL,CAAC;IACD,oBAAoB;QAClB,MAAM,CAAC,iBAAS,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACvD;gBACE,IAAI,EAAE,iBAAS,CAAC,oBAAoB;gBACpC,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC;qEAC4B,CAAC;aAC/D;SACF,CAAC,CAAC;IACL,CAAC;IACD,wBAAwB;QACtB,MAAM,CAAC,iBAAS,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YAClD;gBACE,IAAI,EAAE,iBAAS,CAAC,wBAAwB;gBACxC,OAAO,EAAE;;;;CAIhB;aACM;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.full.d.ts","../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/parsimmon/index.d.ts","../node_modules/@definitelytyped/typescript-versions/dist/index.d.ts","../node_modules/@definitelytyped/header-parser/dist/index.d.ts","../../../node_modules/@types/semver/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/rimraf/index.d.ts","../../../node_modules/@types/command-exists/index.d.ts","../../../node_modules/typescript/lib/typescript.d.ts","../../../node_modules/@types/tmp/index.d.ts","../index.ts","../develop.ts","../../../node_modules/@types/strip-json-comments/index.d.ts","../dt.ts","../node_modules/jest-diff/build/types.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../index.test.ts","../jest.config.js"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","d8d4079975b1d105da6b40283bd9f0257d31ed8461db2fd46fe4d527b7353eea","19b32dcf848f5a494e0220509b2ce6bb5f85ef8d82ed1d48d1c4c255133a2936","8e06fa8e49a4203c75fa842cf8a1db6027d8705e81df7d9d8cbb5f5bc88ba189","4a825b1e80b4bd281b0e1945c6b814ff8b7d047e324227a1b2208ef06c2a8897","87352bb579421f6938177a53bb66e8514067b4872ccaa5fe08ddbca56364570c",{"version":"fb928b21f5a16a1d64a8e2e74a3f389ace89da74820f070f893221213c50aa3c","affectsGlobalScope":true},"5cd9c902b221c5aca739cbc3fb4339c3c5115198808d4f5d7610a674e4b9c66d","fe892fea1e75a442fffb4a604d7eeb451e858787a9f2f01c4e83bf12a3b5048d","d5c80b931928fbd06f967ce4bdca24fbb37523773ac2c7c87458a689154351fb","fcd718b2feb2820a9844536a1a2fbc77a3da90820e02894d40f879a789f46560","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","ece75b9bfc916f9ccc4e8a9ddee1dda5c987804fbe3b60a01fc120fae731c2ce","4e146a0b69c893ae1538aff8b76f4e8796755bdd45050a83099348d59863437e","a1dc9cfe8be39cbcef62692510b450ab35553ef39382715c88763d0c477704a9","05e732266b5a36789fd9eb846b1f45fec1b6e318b740e3f20fc22fd95f9ebf31","985c3d1b62a4a4f563e3ca3e3a47717cff7d82c81883d62ecf08d8417eb477c4","8059976d7f408e08be353de1833172139bbaa70fc33d01b98249f7226c122119","1733741cf2adc5926ac58c66004268cdc3d34b2ff6250f5114db14253ea02ce1","df18df925483862e8ff216d7b17e50b7311a3add2fb7feb128d321ec099352ca","b6b09f944889a23f19eba6e0f112030e55160c5e1a225012ab2349c582ba5595","152af7c23ec219f632afa2d861abc65993f56cd39a4f3a4018515dbc05950a74","3a0bdc4c5b6f84a1abb5356d7a7fa1f96ac6c5b5646eec3ef2b33c1ed095e155","03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66","56a15cc211894d79aa44cbb46c276bfd3f10458a61bff2dec99114db8a7e71e3","1a5366b0d4d0153955fd85777c72d35979dabc0537649da6eade09007c0d080a","61c84c3b0eb6e60196d15ae5e21793a1d4241c547f0bdd0529ffae838d1a073c","272522db288a7e03f14ff930407b776357082efce20369ea42239a57af9c7f81","3a8848a9c307429b861402cc69bc472ffe0c05b86474fc158723169161e16389","3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c","8969e0b4d22ca77ad011c8fc4a25ec5d515bdfae4ecbd22608ed0d5c38829c1e","b2fe368abdc803b82d27bd27f168d106804422ade198c3c085e2519b195ebd26","93acebcaa2e94903a83cebf3f109eb2917acab902045ee8c3d8f69f29baafa68","8e2f9031210a8fc27af8844bf69f964307d6013c90336bea9fb5d6ba43248c78","17e157df6125098a1a34eb4d201ee4ac03bbe97e471ab5627bb2c40fce555948","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","4bdb7b15b3f9a3ee0b856c7b991d0e522f8ce92f7b66ae8ac00e61d1269dd10a","978aecd2e6bc2ac094e9a35eda98ff8586713857b3655e7c98ca5ed8f7d50662","a185b8e0d7a4ae078a79339d63e98177813aac39256f69f788eaf5c360aa756f","c6b71a0585467900820167370738cfc256e9635471725a7ba1d24a3a262984e5","8bf10278b5c28698a73f800fde911bcc33d405a15f7bddab1c4ade637b69a822","e880a08fbb0d9ee2f733f9183f4d1bdb75bc9e0e64060a8a1fc30540791fcded","b0b4974c11712db7a362ae6fa8ea0f0042a7c34da5f0c80302650ffe921e3d87","69fc4a10650eff3416ba5c2f7ce71744734928a7135ebe5a63c61d2d03ca3ec3","13918848c4e07d1094164112bd7fd151d61cbb949ceef340a2a4595cd609afb6","9af6a9de7bd818e68c4236f20027ff4b19387c2269a6952945d1a716c177cc4d","3497438242251378cf232f36a7fabac70e7bd8229d68dac8955534e63ffc8ff4","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","e033253e77794e1595f01372623b631d986e04dcb47d08948301fd2652886a83","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","c9a517452529a17888b3bf8e2722d2b38edc80ba4dbbd7f01cdb0ff8596320b2","ed5fee0e35e114dd0d653ba36143496529de7e46e944e2c0d5b9db89d00e4321","7f647733e485f6d60b6f810609624e1fb6a17de177dbe91815145f18ea85500f","d940a6d0e66abe4e9f953b8cbc37be8c3275672c5f8d61789330545e7516a7cc","6c4deecb50044ea86ece0347ab55a0b48f769c553f8010fb42af2d4ae4f54513","ab6aa3a65d473871ee093e3b7b71ed0f9c69e07d1d4295f45c9efd91a771241d","e2ff3c637446d324b9a037eeee4a6e1642107d7807800b68dcdbad427594d9b5","71ba0678a3c647f5c0706ae975c031ace0d464e60f9ce56eaa7f1678d065aab7","162c6f2951bd80ae6e16679378f382200b26bba9de8f255af3a2895fbfa670b4",{"version":"375c56b1890858dcdae495877f0ce3b694980adf64762e2fd3fbe78e3eac76ba","affectsGlobalScope":true},"4703c17fc7f8b174bd8c4e3a799f0d304fffcdb28ac3453ec198035a3a9c879c","70bc10bc115983f8eac1913c60880399e9725962b6b2559e0ef1a19f79af50e6"],"options":{"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[49,50,80,81],[50,80,82],[33,36,41,50,58,87],[50,87,89],[87,93],[33,36,37,41,50,57,58,83,84,85,86],[34,35],[92],[77,78],[49,56,65],[41,49,56],[65],[47,49,56],[49],[49,65,71],[49,56,65,71],[49,50,51,56,65,68,71],[49,51,68,71],[77,79],[47,49,65],[39],[49,65],[63,72,74],[45,47,56,65],[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76],[56],[62],[91]],"referencedMap":[[82,1],[83,2],[88,3],[90,4],[94,5],[87,6],[36,7],[93,8],[79,9],[41,10],[42,11],[45,12],[46,13],[48,14],[49,14],[50,15],[51,16],[52,17],[53,18],[80,19],[54,14],[56,20],[59,21],[63,22],[64,23],[65,14],[68,24],[77,25],[70,26],[71,27],[75,22],[76,12],[92,28]],"exportedModulesMap":[[82,1],[83,2],[88,3],[90,4],[94,5],[87,6],[36,7],[93,8],[79,9],[41,10],[42,11],[45,12],[46,13],[48,14],[49,14],[50,15],[51,16],[52,17],[53,18],[80,19],[54,14],[56,20],[59,21],[63,22],[64,23],[65,14],[68,24],[77,25],[70,26],[71,27],[75,22],[76,12],[92,28]],"semanticDiagnosticsPerFile":[84,82,81,34,83,37,89,86,6,7,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,32,27,28,29,30,1,31,9,8,85,88,90,94,87,95,36,35,93,78,39,79,40,41,42,43,44,45,46,47,48,49,50,38,51,52,53,80,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,77,70,71,72,73,74,75,76,33,92,91]},"version":"4.3.5"}
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.full.d.ts","../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/parsimmon/index.d.ts","../node_modules/@definitelytyped/typescript-versions/dist/index.d.ts","../node_modules/@definitelytyped/header-parser/dist/index.d.ts","../../../node_modules/@types/semver/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/rimraf/index.d.ts","../../../node_modules/@types/command-exists/index.d.ts","../../../node_modules/typescript/lib/typescript.d.ts","../../../node_modules/@types/tmp/index.d.ts","../index.ts","../develop.ts","../../../node_modules/@types/strip-json-comments/index.d.ts","../dt.ts","../../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/diffLines.d.ts","../../../node_modules/jest-diff/build/printDiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/jest/ts3.2/index.d.ts","../index.test.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","d8d4079975b1d105da6b40283bd9f0257d31ed8461db2fd46fe4d527b7353eea","19b32dcf848f5a494e0220509b2ce6bb5f85ef8d82ed1d48d1c4c255133a2936","8e06fa8e49a4203c75fa842cf8a1db6027d8705e81df7d9d8cbb5f5bc88ba189","4a825b1e80b4bd281b0e1945c6b814ff8b7d047e324227a1b2208ef06c2a8897","87352bb579421f6938177a53bb66e8514067b4872ccaa5fe08ddbca56364570c",{"version":"fb928b21f5a16a1d64a8e2e74a3f389ace89da74820f070f893221213c50aa3c","affectsGlobalScope":true},"5cd9c902b221c5aca739cbc3fb4339c3c5115198808d4f5d7610a674e4b9c66d","fe892fea1e75a442fffb4a604d7eeb451e858787a9f2f01c4e83bf12a3b5048d","d5c80b931928fbd06f967ce4bdca24fbb37523773ac2c7c87458a689154351fb","fcd718b2feb2820a9844536a1a2fbc77a3da90820e02894d40f879a789f46560","525c8fc510d9632d2a0a9de2d41c3ac1cdd79ff44d3b45c6d81cacabb683528d","ece75b9bfc916f9ccc4e8a9ddee1dda5c987804fbe3b60a01fc120fae731c2ce","4e146a0b69c893ae1538aff8b76f4e8796755bdd45050a83099348d59863437e","a1dc9cfe8be39cbcef62692510b450ab35553ef39382715c88763d0c477704a9","05e732266b5a36789fd9eb846b1f45fec1b6e318b740e3f20fc22fd95f9ebf31","985c3d1b62a4a4f563e3ca3e3a47717cff7d82c81883d62ecf08d8417eb477c4","8059976d7f408e08be353de1833172139bbaa70fc33d01b98249f7226c122119","1733741cf2adc5926ac58c66004268cdc3d34b2ff6250f5114db14253ea02ce1","df18df925483862e8ff216d7b17e50b7311a3add2fb7feb128d321ec099352ca","b6b09f944889a23f19eba6e0f112030e55160c5e1a225012ab2349c582ba5595","152af7c23ec219f632afa2d861abc65993f56cd39a4f3a4018515dbc05950a74","3a0bdc4c5b6f84a1abb5356d7a7fa1f96ac6c5b5646eec3ef2b33c1ed095e155","03394bf8deb8781b490ae9266a843fbdf00647947d79e25fcbf1d89a9e9c8a66","56a15cc211894d79aa44cbb46c276bfd3f10458a61bff2dec99114db8a7e71e3","1a5366b0d4d0153955fd85777c72d35979dabc0537649da6eade09007c0d080a","61c84c3b0eb6e60196d15ae5e21793a1d4241c547f0bdd0529ffae838d1a073c","272522db288a7e03f14ff930407b776357082efce20369ea42239a57af9c7f81","3a8848a9c307429b861402cc69bc472ffe0c05b86474fc158723169161e16389","3f6a1fd73c9dc3bd7f4b79bc075297ca6527904df69b0f2c2c94e4c4c7d9a32c","8969e0b4d22ca77ad011c8fc4a25ec5d515bdfae4ecbd22608ed0d5c38829c1e","b2fe368abdc803b82d27bd27f168d106804422ade198c3c085e2519b195ebd26","93acebcaa2e94903a83cebf3f109eb2917acab902045ee8c3d8f69f29baafa68","8e2f9031210a8fc27af8844bf69f964307d6013c90336bea9fb5d6ba43248c78","17e157df6125098a1a34eb4d201ee4ac03bbe97e471ab5627bb2c40fce555948","b40652bf8ce4a18133b31349086523b219724dca8df3448c1a0742528e7ad5b9","4bdb7b15b3f9a3ee0b856c7b991d0e522f8ce92f7b66ae8ac00e61d1269dd10a","978aecd2e6bc2ac094e9a35eda98ff8586713857b3655e7c98ca5ed8f7d50662","a185b8e0d7a4ae078a79339d63e98177813aac39256f69f788eaf5c360aa756f","c6b71a0585467900820167370738cfc256e9635471725a7ba1d24a3a262984e5","8bf10278b5c28698a73f800fde911bcc33d405a15f7bddab1c4ade637b69a822","e880a08fbb0d9ee2f733f9183f4d1bdb75bc9e0e64060a8a1fc30540791fcded","b0b4974c11712db7a362ae6fa8ea0f0042a7c34da5f0c80302650ffe921e3d87","69fc4a10650eff3416ba5c2f7ce71744734928a7135ebe5a63c61d2d03ca3ec3","13918848c4e07d1094164112bd7fd151d61cbb949ceef340a2a4595cd609afb6","9af6a9de7bd818e68c4236f20027ff4b19387c2269a6952945d1a716c177cc4d","3497438242251378cf232f36a7fabac70e7bd8229d68dac8955534e63ffc8ff4","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","e033253e77794e1595f01372623b631d986e04dcb47d08948301fd2652886a83","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","c9a517452529a17888b3bf8e2722d2b38edc80ba4dbbd7f01cdb0ff8596320b2","ed5fee0e35e114dd0d653ba36143496529de7e46e944e2c0d5b9db89d00e4321","7f647733e485f6d60b6f810609624e1fb6a17de177dbe91815145f18ea85500f","d940a6d0e66abe4e9f953b8cbc37be8c3275672c5f8d61789330545e7516a7cc","6c4deecb50044ea86ece0347ab55a0b48f769c553f8010fb42af2d4ae4f54513","ab6aa3a65d473871ee093e3b7b71ed0f9c69e07d1d4295f45c9efd91a771241d","e2ff3c637446d324b9a037eeee4a6e1642107d7807800b68dcdbad427594d9b5","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true},"cbddcc417865b0a8e5ebee1383102e4a8c9b4c8f758a776dff3a0b9dca231e78"],"options":{"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[49,50,80,81],[95,97],[98],[50,80,82],[91,92],[91,92,93,94],[96],[33,36,41,50,58,87],[50,87,89],[87,99],[33,36,37,41,50,57,58,83,84,85,86],[34,35],[77,78],[49,56,65],[41,49,56],[65],[47,49,56],[49],[49,65,71],[49,56,65,71],[49,50,51,56,65,68,71],[49,51,68,71],[77,79],[47,49,65],[39],[49,65],[63,72,74],[45,47,56,65],[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76],[56],[62]],"referencedMap":[[82,1],[98,2],[99,3],[83,4],[93,5],[95,6],[94,5],[97,7],[88,8],[90,9],[100,10],[87,11],[36,12],[79,13],[41,14],[42,15],[45,16],[46,17],[48,18],[49,18],[50,19],[51,20],[52,21],[53,22],[80,23],[54,18],[56,24],[59,25],[63,26],[64,27],[65,18],[68,28],[77,29],[70,30],[71,31],[75,26],[76,16]],"exportedModulesMap":[[82,1],[98,2],[99,3],[83,4],[93,5],[95,6],[94,5],[97,7],[88,8],[90,9],[100,10],[87,11],[36,12],[79,13],[41,14],[42,15],[45,16],[46,17],[48,18],[49,18],[50,19],[51,20],[52,21],[53,22],[80,23],[54,18],[56,24],[59,25],[63,26],[64,27],[65,18],[68,28],[77,29],[70,30],[71,31],[75,26],[76,16]],"semanticDiagnosticsPerFile":[84,82,98,99,81,34,83,37,89,86,91,93,95,94,92,97,96,6,7,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,32,27,28,29,30,1,31,9,8,85,88,90,100,87,36,35,78,39,79,40,41,42,43,44,45,46,47,48,49,50,38,51,52,53,80,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,77,70,71,72,73,74,75,76,33]},"version":"4.3.5"}
|
package/index.test.ts
CHANGED
|
@@ -26,13 +26,13 @@ suite("findDtsName", {
|
|
|
26
26
|
expect(findDtsName("jquery/index.d.ts")).toBe("jquery");
|
|
27
27
|
},
|
|
28
28
|
currentDirectory() {
|
|
29
|
-
expect(findDtsName("index.d.ts")).toBe("
|
|
29
|
+
expect(findDtsName("index.d.ts")).toBe("DefinitelyTyped-tools");
|
|
30
30
|
},
|
|
31
31
|
relativeCurrentDirectory() {
|
|
32
|
-
expect(findDtsName("./index.d.ts")).toBe("
|
|
32
|
+
expect(findDtsName("./index.d.ts")).toBe("DefinitelyTyped-tools");
|
|
33
33
|
},
|
|
34
34
|
emptyDirectory() {
|
|
35
|
-
expect(findDtsName("")).toBe("
|
|
35
|
+
expect(findDtsName("")).toBe("DefinitelyTyped-tools");
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
suite("getNpmInfo", {
|
|
@@ -76,16 +76,22 @@ const allErrors: Map<ExportErrorKind, true> = new Map([
|
|
|
76
76
|
[ErrorKind.JsPropertyNotInDts, true]
|
|
77
77
|
]);
|
|
78
78
|
|
|
79
|
+
function testsource(filename: string) {
|
|
80
|
+
return __dirname + "/testsource/" + filename;
|
|
81
|
+
}
|
|
82
|
+
|
|
79
83
|
suite("checkSource", {
|
|
80
84
|
noErrors() {
|
|
81
|
-
expect(checkSource("noErrors", "
|
|
85
|
+
expect(checkSource("noErrors", testsource("noErrors.d.ts"), testsource("noErrors.js"), allErrors, false)).toEqual(
|
|
86
|
+
[]
|
|
87
|
+
);
|
|
82
88
|
},
|
|
83
89
|
missingJsProperty() {
|
|
84
90
|
expect(
|
|
85
91
|
checkSource(
|
|
86
92
|
"missingJsProperty",
|
|
87
|
-
"
|
|
88
|
-
"
|
|
93
|
+
testsource("missingJsProperty.d.ts"),
|
|
94
|
+
testsource("missingJsProperty.js"),
|
|
89
95
|
allErrors,
|
|
90
96
|
false
|
|
91
97
|
)
|
|
@@ -103,8 +109,8 @@ The JavaScript module exports a property named 'foo', which is missing from the
|
|
|
103
109
|
expect(
|
|
104
110
|
checkSource(
|
|
105
111
|
"missingJsProperty",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
112
|
+
testsource("webpackPropertyNames.d.ts"),
|
|
113
|
+
testsource("webpackPropertyNames.js"),
|
|
108
114
|
allErrors,
|
|
109
115
|
false
|
|
110
116
|
)
|
|
@@ -114,8 +120,8 @@ The JavaScript module exports a property named 'foo', which is missing from the
|
|
|
114
120
|
expect(
|
|
115
121
|
checkSource(
|
|
116
122
|
"missingDtsProperty",
|
|
117
|
-
"
|
|
118
|
-
"
|
|
123
|
+
testsource("missingDtsProperty.d.ts"),
|
|
124
|
+
testsource("missingDtsProperty.js"),
|
|
119
125
|
allErrors,
|
|
120
126
|
false
|
|
121
127
|
)
|
|
@@ -135,7 +141,13 @@ The declaration module exports a property named 'foo', which is missing from the
|
|
|
135
141
|
},
|
|
136
142
|
missingDefaultExport() {
|
|
137
143
|
expect(
|
|
138
|
-
checkSource(
|
|
144
|
+
checkSource(
|
|
145
|
+
"missingDefault",
|
|
146
|
+
testsource("missingDefault.d.ts"),
|
|
147
|
+
testsource("missingDefault.js"),
|
|
148
|
+
allErrors,
|
|
149
|
+
false
|
|
150
|
+
)
|
|
139
151
|
).toEqual(
|
|
140
152
|
expect.arrayContaining([
|
|
141
153
|
{
|
|
@@ -157,8 +169,8 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
|
|
|
157
169
|
expect(
|
|
158
170
|
checkSource(
|
|
159
171
|
"missingJsSignatureExportEquals",
|
|
160
|
-
"
|
|
161
|
-
"
|
|
172
|
+
testsource("missingJsSignatureExportEquals.d.ts"),
|
|
173
|
+
testsource("missingJsSignatureExportEquals.js"),
|
|
162
174
|
allErrors,
|
|
163
175
|
false
|
|
164
176
|
)
|
|
@@ -176,8 +188,8 @@ The JavaScript module can be called or constructed, but the declaration module c
|
|
|
176
188
|
expect(
|
|
177
189
|
checkSource(
|
|
178
190
|
"missingJsSignatureNoExportEquals",
|
|
179
|
-
"
|
|
180
|
-
"
|
|
191
|
+
testsource("missingJsSignatureNoExportEquals.d.ts"),
|
|
192
|
+
testsource("missingJsSignatureNoExportEquals.js"),
|
|
181
193
|
allErrors,
|
|
182
194
|
false
|
|
183
195
|
)
|
|
@@ -198,8 +210,8 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
|
|
|
198
210
|
expect(
|
|
199
211
|
checkSource(
|
|
200
212
|
"missingDtsSignature",
|
|
201
|
-
"
|
|
202
|
-
"
|
|
213
|
+
testsource("missingDtsSignature.d.ts"),
|
|
214
|
+
testsource("missingDtsSignature.js"),
|
|
203
215
|
allErrors,
|
|
204
216
|
false
|
|
205
217
|
)
|
|
@@ -217,8 +229,8 @@ The declaration module can be called or constructed, but the JavaScript module c
|
|
|
217
229
|
expect(
|
|
218
230
|
checkSource(
|
|
219
231
|
"missingExportEquals",
|
|
220
|
-
"
|
|
221
|
-
"
|
|
232
|
+
testsource("missingExportEquals.d.ts"),
|
|
233
|
+
testsource("missingExportEquals.js"),
|
|
222
234
|
allErrors,
|
|
223
235
|
false
|
|
224
236
|
)
|
|
@@ -237,10 +249,10 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
|
|
|
237
249
|
});
|
|
238
250
|
suite("dtsCritic", {
|
|
239
251
|
noErrors() {
|
|
240
|
-
expect(dtsCritic("
|
|
252
|
+
expect(dtsCritic(testsource("dts-critic.d.ts"), testsource("dts-critic.js"))).toEqual([]);
|
|
241
253
|
},
|
|
242
254
|
noMatchingNpmPackage() {
|
|
243
|
-
expect(dtsCritic("
|
|
255
|
+
expect(dtsCritic(testsource("parseltongue.d.ts"))).toEqual([
|
|
244
256
|
{
|
|
245
257
|
kind: ErrorKind.NoMatchingNpmPackage,
|
|
246
258
|
message: `Declaration file must have a matching npm package.
|
|
@@ -256,7 +268,7 @@ Add -browser to the end of your name to make sure it doesn't conflict with exist
|
|
|
256
268
|
]);
|
|
257
269
|
},
|
|
258
270
|
noMatchingNpmVersion() {
|
|
259
|
-
expect(dtsCritic("
|
|
271
|
+
expect(dtsCritic(testsource("typescript.d.ts"))).toEqual([
|
|
260
272
|
{
|
|
261
273
|
kind: ErrorKind.NoMatchingNpmVersion,
|
|
262
274
|
message: expect.stringContaining(`The types for 'typescript' must match a version that exists on npm.
|
|
@@ -265,7 +277,7 @@ You should copy the major and minor version from the package on npm.`)
|
|
|
265
277
|
]);
|
|
266
278
|
},
|
|
267
279
|
nonNpmHasMatchingPackage() {
|
|
268
|
-
expect(dtsCritic("
|
|
280
|
+
expect(dtsCritic(testsource("tslib.d.ts"))).toEqual([
|
|
269
281
|
{
|
|
270
282
|
kind: ErrorKind.NonNpmHasMatchingPackage,
|
|
271
283
|
message: `The non-npm package 'tslib' conflicts with the existing npm package 'tslib'.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@definitelytyped/dts-critic",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.100-next.0",
|
|
4
4
|
"author": "Nathan Shively-Sanders",
|
|
5
5
|
"description": "Checks a new .d.ts against the Javascript source and tells you what problems it has",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/command-exists": "^1.2.0",
|
|
22
|
-
"@types/jest": "^24.0.0",
|
|
23
22
|
"@types/node": "~10.17.0",
|
|
24
23
|
"@types/rimraf": "^3.0.0",
|
|
25
24
|
"@types/semver": "^6.0.1",
|
|
@@ -32,10 +31,9 @@
|
|
|
32
31
|
"main": "dist/index.js",
|
|
33
32
|
"types": "dist/index.d.ts",
|
|
34
33
|
"scripts": {
|
|
35
|
-
"test": "npm run build && jest",
|
|
36
34
|
"build": "tsc -b .",
|
|
37
35
|
"dt": "node dist/dt.js",
|
|
38
|
-
"prepublishOnly": "npm run build
|
|
36
|
+
"prepublishOnly": "npm run build"
|
|
39
37
|
},
|
|
40
38
|
"repository": {
|
|
41
39
|
"type": "git",
|
|
@@ -56,5 +54,5 @@
|
|
|
56
54
|
"engines": {
|
|
57
55
|
"node": ">=10.17.0"
|
|
58
56
|
},
|
|
59
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "2ac54be2aaedeb1de993c97bc972b77268f2304e"
|
|
60
58
|
}
|
package/dist/jest.config.d.ts
DELETED
package/dist/jest.config.js
DELETED
package/dist/jest.config.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../jest.config.js"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE,MAAM;IACf,oBAAoB,EAAE;QACpB,IAAI;QACJ,KAAK;QACL,MAAM;QACN,MAAM;KACP;CACF,CAAC"}
|