Updating NPM dependencies
This commit is contained in:
1
node_modules/jest-docblock/build/index.d.ts
generated
vendored
1
node_modules/jest-docblock/build/index.d.ts
generated
vendored
@@ -17,4 +17,3 @@ export declare function print({ comments, pragmas, }: {
|
||||
pragmas?: Pragmas;
|
||||
}): string;
|
||||
export {};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/jest-docblock/build/index.d.ts.map
generated
vendored
1
node_modules/jest-docblock/build/index.d.ts.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,aAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAWtD,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,UAGrC;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,GACf;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAC,CAuCtC;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAa,EACb,OAAY,GACb,EAAE;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,MAAM,CAsCT"}
|
||||
11
node_modules/jest-docblock/build/index.js
generated
vendored
11
node_modules/jest-docblock/build/index.js
generated
vendored
@@ -12,7 +12,7 @@ exports.print = print;
|
||||
function _os() {
|
||||
const data = require('os');
|
||||
|
||||
_os = function _os() {
|
||||
_os = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -22,7 +22,7 @@ function _os() {
|
||||
function _detectNewline() {
|
||||
const data = _interopRequireDefault(require('detect-newline'));
|
||||
|
||||
_detectNewline = function _detectNewline() {
|
||||
_detectNewline = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -47,6 +47,7 @@ const ltrimNewlineRe = /^(\r?\n)+/;
|
||||
const multilineRe = /(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g;
|
||||
const propertyRe = /(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g;
|
||||
const stringStartRe = /(\r?\n|^) *\* ?/g;
|
||||
const STRING_ARRAY = [];
|
||||
|
||||
function extract(contents) {
|
||||
const match = contents.match(docblockRe);
|
||||
@@ -93,7 +94,7 @@ function parseWithComments(docblock) {
|
||||
typeof result[match[1]] === 'string' ||
|
||||
Array.isArray(result[match[1]])
|
||||
) {
|
||||
result[match[1]] = [].concat(result[match[1]], nextPragma);
|
||||
result[match[1]] = STRING_ARRAY.concat(result[match[1]], nextPragma);
|
||||
} else {
|
||||
result[match[1]] = nextPragma;
|
||||
}
|
||||
@@ -145,5 +146,7 @@ function print({comments = '', pragmas = {}}) {
|
||||
}
|
||||
|
||||
function printKeyValues(key, valueOrArray) {
|
||||
return [].concat(valueOrArray).map(value => `@${key} ${value}`.trim());
|
||||
return STRING_ARRAY.concat(valueOrArray).map(value =>
|
||||
`@${key} ${value}`.trim()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user