@@ -175,7 +175,7 @@ function wrap(middleware, callback) {
175
175
return done(exception)
176
176
}
177
177
if (!fnExpectsCallback) {
178
- if (result instanceof Promise ) {
178
+ if (result && result.then && typeof result.then === 'function' ) {
179
179
result.then(then, done);
180
180
} else if (result instanceof Error) {
181
181
done(result);
@@ -3083,35 +3083,32 @@ function normalizeIdentifier$1(value) {
3083
3083
)
3084
3084
}
3085
3085
3086
- const unicodePunctuationInternal = regexCheck(/\p{P}/u);
3087
3086
const asciiAlpha = regexCheck(/[A-Za-z]/);
3088
3087
const asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
3089
3088
const asciiAtext = regexCheck(/[#-'*+\--9=?A-Z^-~]/);
3090
3089
function asciiControl(code) {
3091
3090
return (
3092
3091
code !== null && (code < 32 || code === 127)
3093
- )
3092
+ );
3094
3093
}
3095
3094
const asciiDigit = regexCheck(/\d/);
3096
3095
const asciiHexDigit = regexCheck(/[\dA-Fa-f]/);
3097
3096
const asciiPunctuation = regexCheck(/[!-/:-@[-`{-~]/);
3098
3097
function markdownLineEnding(code) {
3099
- return code !== null && code < -2
3098
+ return code !== null && code < -2;
3100
3099
}
3101
3100
function markdownLineEndingOrSpace(code) {
3102
- return code !== null && (code < 0 || code === 32)
3101
+ return code !== null && (code < 0 || code === 32);
3103
3102
}
3104
3103
function markdownSpace(code) {
3105
- return code === -2 || code === -1 || code === 32
3106
- }
3107
- function unicodePunctuation(code) {
3108
- return asciiPunctuation(code) || unicodePunctuationInternal(code)
3104
+ return code === -2 || code === -1 || code === 32;
3109
3105
}
3106
+ const unicodePunctuation = regexCheck(/\p{P}|\p{S}/u);
3110
3107
const unicodeWhitespace = regexCheck(/\s/);
3111
3108
function regexCheck(regex) {
3112
- return check
3109
+ return check;
3113
3110
function check(code) {
3114
- return code !== null && code > -1 && regex.test(String.fromCharCode(code))
3111
+ return code !== null && code > -1 && regex.test(String.fromCharCode(code));
3115
3112
}
3116
3113
}
3117
3114
@@ -8993,10 +8990,14 @@ const phrasing =
8993
8990
'image',
8994
8991
'imageReference',
8995
8992
'inlineCode',
8993
+ 'inlineMath',
8996
8994
'link',
8997
8995
'linkReference',
8996
+ 'mdxJsxTextElement',
8997
+ 'mdxTextExpression',
8998
8998
'strong',
8999
- 'text'
8999
+ 'text',
9000
+ 'textDirective'
9000
9001
])
9001
9002
);
9002
9003
@@ -24440,12 +24441,17 @@ var re$1 = {exports: {}};
24440
24441
`)?)?`);
24441
24442
createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
24442
24443
createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
24443
- createToken('COERCE ', `${'(^|[^\\d])' +
24444
+ createToken('COERCEPLAIN ', `${'(^|[^\\d])' +
24444
24445
'(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
24445
24446
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
24446
- `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
24447
+ `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
24448
+ createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
24449
+ createToken('COERCEFULL', src[t.COERCEPLAIN] +
24450
+ `(?:${src[t.PRERELEASE]})?` +
24451
+ `(?:${src[t.BUILD]})?` +
24447
24452
`(?:$|[^\\d])`);
24448
24453
createToken('COERCERTL', src[t.COERCE], true);
24454
+ createToken('COERCERTLFULL', src[t.COERCEFULL], true);
24449
24455
createToken('LONETILDE', '(?:~>?)');
24450
24456
createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true);
24451
24457
exports.tildeTrimReplace = '$1~';
0 commit comments