@readme/markdown 10.2.11 → 11.0.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/main.js +150 -2
- package/dist/main.node.js +150 -2
- package/dist/main.node.js.map +1 -1
- package/package.json +2 -1
package/dist/main.js
CHANGED
|
@@ -2878,6 +2878,147 @@ for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++
|
|
|
2878
2878
|
}
|
|
2879
2879
|
|
|
2880
2880
|
|
|
2881
|
+
/***/ }),
|
|
2882
|
+
|
|
2883
|
+
/***/ 4744:
|
|
2884
|
+
/***/ ((module) => {
|
|
2885
|
+
|
|
2886
|
+
"use strict";
|
|
2887
|
+
|
|
2888
|
+
|
|
2889
|
+
var isMergeableObject = function isMergeableObject(value) {
|
|
2890
|
+
return isNonNullObject(value)
|
|
2891
|
+
&& !isSpecial(value)
|
|
2892
|
+
};
|
|
2893
|
+
|
|
2894
|
+
function isNonNullObject(value) {
|
|
2895
|
+
return !!value && typeof value === 'object'
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
function isSpecial(value) {
|
|
2899
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
2900
|
+
|
|
2901
|
+
return stringValue === '[object RegExp]'
|
|
2902
|
+
|| stringValue === '[object Date]'
|
|
2903
|
+
|| isReactElement(value)
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
2907
|
+
var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
2908
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
2909
|
+
|
|
2910
|
+
function isReactElement(value) {
|
|
2911
|
+
return value.$$typeof === REACT_ELEMENT_TYPE
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
function emptyTarget(val) {
|
|
2915
|
+
return Array.isArray(val) ? [] : {}
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
2919
|
+
return (options.clone !== false && options.isMergeableObject(value))
|
|
2920
|
+
? deepmerge(emptyTarget(value), value, options)
|
|
2921
|
+
: value
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
function defaultArrayMerge(target, source, options) {
|
|
2925
|
+
return target.concat(source).map(function(element) {
|
|
2926
|
+
return cloneUnlessOtherwiseSpecified(element, options)
|
|
2927
|
+
})
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
function getMergeFunction(key, options) {
|
|
2931
|
+
if (!options.customMerge) {
|
|
2932
|
+
return deepmerge
|
|
2933
|
+
}
|
|
2934
|
+
var customMerge = options.customMerge(key);
|
|
2935
|
+
return typeof customMerge === 'function' ? customMerge : deepmerge
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
2939
|
+
return Object.getOwnPropertySymbols
|
|
2940
|
+
? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
2941
|
+
return Object.propertyIsEnumerable.call(target, symbol)
|
|
2942
|
+
})
|
|
2943
|
+
: []
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
function getKeys(target) {
|
|
2947
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
function propertyIsOnObject(object, property) {
|
|
2951
|
+
try {
|
|
2952
|
+
return property in object
|
|
2953
|
+
} catch(_) {
|
|
2954
|
+
return false
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
2959
|
+
function propertyIsUnsafe(target, key) {
|
|
2960
|
+
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
|
|
2961
|
+
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
|
|
2962
|
+
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
function mergeObject(target, source, options) {
|
|
2966
|
+
var destination = {};
|
|
2967
|
+
if (options.isMergeableObject(target)) {
|
|
2968
|
+
getKeys(target).forEach(function(key) {
|
|
2969
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
2970
|
+
});
|
|
2971
|
+
}
|
|
2972
|
+
getKeys(source).forEach(function(key) {
|
|
2973
|
+
if (propertyIsUnsafe(target, key)) {
|
|
2974
|
+
return
|
|
2975
|
+
}
|
|
2976
|
+
|
|
2977
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
2978
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
2979
|
+
} else {
|
|
2980
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
2981
|
+
}
|
|
2982
|
+
});
|
|
2983
|
+
return destination
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
function deepmerge(target, source, options) {
|
|
2987
|
+
options = options || {};
|
|
2988
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
2989
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
2990
|
+
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
2991
|
+
// implementations can use it. The caller may not replace it.
|
|
2992
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
2993
|
+
|
|
2994
|
+
var sourceIsArray = Array.isArray(source);
|
|
2995
|
+
var targetIsArray = Array.isArray(target);
|
|
2996
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
2997
|
+
|
|
2998
|
+
if (!sourceAndTargetTypesMatch) {
|
|
2999
|
+
return cloneUnlessOtherwiseSpecified(source, options)
|
|
3000
|
+
} else if (sourceIsArray) {
|
|
3001
|
+
return options.arrayMerge(target, source, options)
|
|
3002
|
+
} else {
|
|
3003
|
+
return mergeObject(target, source, options)
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
|
|
3007
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
3008
|
+
if (!Array.isArray(array)) {
|
|
3009
|
+
throw new Error('first argument should be an array')
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
return array.reduce(function(prev, next) {
|
|
3013
|
+
return deepmerge(prev, next, options)
|
|
3014
|
+
}, {})
|
|
3015
|
+
};
|
|
3016
|
+
|
|
3017
|
+
var deepmerge_1 = deepmerge;
|
|
3018
|
+
|
|
3019
|
+
module.exports = deepmerge_1;
|
|
3020
|
+
|
|
3021
|
+
|
|
2881
3022
|
/***/ }),
|
|
2882
3023
|
|
|
2883
3024
|
/***/ 2849:
|
|
@@ -66766,7 +66907,7 @@ class Owlmoji {
|
|
|
66766
66907
|
|
|
66767
66908
|
|
|
66768
66909
|
|
|
66769
|
-
const gemoji_regex =
|
|
66910
|
+
const gemoji_regex = /(?<=^|\s):(?<name>\+1|[-\w]+):/g;
|
|
66770
66911
|
const gemojiReplacer = (_, name) => {
|
|
66771
66912
|
switch (Owlmoji.kind(name)) {
|
|
66772
66913
|
case 'gemoji': {
|
|
@@ -77731,6 +77872,9 @@ function compileSync(vfileCompatible, compileOptions) {
|
|
|
77731
77872
|
return core_createProcessor(options).processSync(file)
|
|
77732
77873
|
}
|
|
77733
77874
|
|
|
77875
|
+
// EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
|
|
77876
|
+
var cjs = __webpack_require__(4744);
|
|
77877
|
+
var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
|
|
77734
77878
|
;// ./node_modules/hast-util-to-parse5/lib/index.js
|
|
77735
77879
|
/**
|
|
77736
77880
|
* @typedef {import('hast').Comment} Comment
|
|
@@ -82549,7 +82693,11 @@ const tocHastToMdx = (toc, components) => {
|
|
|
82549
82693
|
|
|
82550
82694
|
|
|
82551
82695
|
|
|
82696
|
+
|
|
82552
82697
|
const { codeTabsTransformer: compile_codeTabsTransformer, ...transforms } = defaultTransforms;
|
|
82698
|
+
const sanitizeSchema = cjs_default()(defaultSchema, {
|
|
82699
|
+
protocols: ['doc', 'ref', 'blog', 'changelog', 'page'],
|
|
82700
|
+
});
|
|
82553
82701
|
const compile_compile = (text, { components = {}, missingComponents, copyButtons, useTailwind, ...opts } = {}) => {
|
|
82554
82702
|
const remarkPlugins = [
|
|
82555
82703
|
remarkFrontmatter,
|
|
@@ -82580,7 +82728,7 @@ const compile_compile = (text, { components = {}, missingComponents, copyButtons
|
|
|
82580
82728
|
passThrough: ['mdxjsEsm'],
|
|
82581
82729
|
},
|
|
82582
82730
|
]);
|
|
82583
|
-
rehypePlugins.push(rehypeSanitize);
|
|
82731
|
+
rehypePlugins.push([rehypeSanitize, sanitizeSchema]);
|
|
82584
82732
|
}
|
|
82585
82733
|
try {
|
|
82586
82734
|
const vfile = compileSync(text, {
|
package/dist/main.node.js
CHANGED
|
@@ -6966,6 +6966,147 @@ function copy(text, options) {
|
|
|
6966
6966
|
module.exports = copy;
|
|
6967
6967
|
|
|
6968
6968
|
|
|
6969
|
+
/***/ }),
|
|
6970
|
+
|
|
6971
|
+
/***/ 4744:
|
|
6972
|
+
/***/ ((module) => {
|
|
6973
|
+
|
|
6974
|
+
"use strict";
|
|
6975
|
+
|
|
6976
|
+
|
|
6977
|
+
var isMergeableObject = function isMergeableObject(value) {
|
|
6978
|
+
return isNonNullObject(value)
|
|
6979
|
+
&& !isSpecial(value)
|
|
6980
|
+
};
|
|
6981
|
+
|
|
6982
|
+
function isNonNullObject(value) {
|
|
6983
|
+
return !!value && typeof value === 'object'
|
|
6984
|
+
}
|
|
6985
|
+
|
|
6986
|
+
function isSpecial(value) {
|
|
6987
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
6988
|
+
|
|
6989
|
+
return stringValue === '[object RegExp]'
|
|
6990
|
+
|| stringValue === '[object Date]'
|
|
6991
|
+
|| isReactElement(value)
|
|
6992
|
+
}
|
|
6993
|
+
|
|
6994
|
+
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
6995
|
+
var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
6996
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
6997
|
+
|
|
6998
|
+
function isReactElement(value) {
|
|
6999
|
+
return value.$$typeof === REACT_ELEMENT_TYPE
|
|
7000
|
+
}
|
|
7001
|
+
|
|
7002
|
+
function emptyTarget(val) {
|
|
7003
|
+
return Array.isArray(val) ? [] : {}
|
|
7004
|
+
}
|
|
7005
|
+
|
|
7006
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
7007
|
+
return (options.clone !== false && options.isMergeableObject(value))
|
|
7008
|
+
? deepmerge(emptyTarget(value), value, options)
|
|
7009
|
+
: value
|
|
7010
|
+
}
|
|
7011
|
+
|
|
7012
|
+
function defaultArrayMerge(target, source, options) {
|
|
7013
|
+
return target.concat(source).map(function(element) {
|
|
7014
|
+
return cloneUnlessOtherwiseSpecified(element, options)
|
|
7015
|
+
})
|
|
7016
|
+
}
|
|
7017
|
+
|
|
7018
|
+
function getMergeFunction(key, options) {
|
|
7019
|
+
if (!options.customMerge) {
|
|
7020
|
+
return deepmerge
|
|
7021
|
+
}
|
|
7022
|
+
var customMerge = options.customMerge(key);
|
|
7023
|
+
return typeof customMerge === 'function' ? customMerge : deepmerge
|
|
7024
|
+
}
|
|
7025
|
+
|
|
7026
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
7027
|
+
return Object.getOwnPropertySymbols
|
|
7028
|
+
? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
7029
|
+
return Object.propertyIsEnumerable.call(target, symbol)
|
|
7030
|
+
})
|
|
7031
|
+
: []
|
|
7032
|
+
}
|
|
7033
|
+
|
|
7034
|
+
function getKeys(target) {
|
|
7035
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
|
|
7036
|
+
}
|
|
7037
|
+
|
|
7038
|
+
function propertyIsOnObject(object, property) {
|
|
7039
|
+
try {
|
|
7040
|
+
return property in object
|
|
7041
|
+
} catch(_) {
|
|
7042
|
+
return false
|
|
7043
|
+
}
|
|
7044
|
+
}
|
|
7045
|
+
|
|
7046
|
+
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
7047
|
+
function propertyIsUnsafe(target, key) {
|
|
7048
|
+
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
|
|
7049
|
+
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
|
|
7050
|
+
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
|
|
7051
|
+
}
|
|
7052
|
+
|
|
7053
|
+
function mergeObject(target, source, options) {
|
|
7054
|
+
var destination = {};
|
|
7055
|
+
if (options.isMergeableObject(target)) {
|
|
7056
|
+
getKeys(target).forEach(function(key) {
|
|
7057
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
7058
|
+
});
|
|
7059
|
+
}
|
|
7060
|
+
getKeys(source).forEach(function(key) {
|
|
7061
|
+
if (propertyIsUnsafe(target, key)) {
|
|
7062
|
+
return
|
|
7063
|
+
}
|
|
7064
|
+
|
|
7065
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
7066
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
7067
|
+
} else {
|
|
7068
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
7069
|
+
}
|
|
7070
|
+
});
|
|
7071
|
+
return destination
|
|
7072
|
+
}
|
|
7073
|
+
|
|
7074
|
+
function deepmerge(target, source, options) {
|
|
7075
|
+
options = options || {};
|
|
7076
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
7077
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
7078
|
+
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
7079
|
+
// implementations can use it. The caller may not replace it.
|
|
7080
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
7081
|
+
|
|
7082
|
+
var sourceIsArray = Array.isArray(source);
|
|
7083
|
+
var targetIsArray = Array.isArray(target);
|
|
7084
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
7085
|
+
|
|
7086
|
+
if (!sourceAndTargetTypesMatch) {
|
|
7087
|
+
return cloneUnlessOtherwiseSpecified(source, options)
|
|
7088
|
+
} else if (sourceIsArray) {
|
|
7089
|
+
return options.arrayMerge(target, source, options)
|
|
7090
|
+
} else {
|
|
7091
|
+
return mergeObject(target, source, options)
|
|
7092
|
+
}
|
|
7093
|
+
}
|
|
7094
|
+
|
|
7095
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
7096
|
+
if (!Array.isArray(array)) {
|
|
7097
|
+
throw new Error('first argument should be an array')
|
|
7098
|
+
}
|
|
7099
|
+
|
|
7100
|
+
return array.reduce(function(prev, next) {
|
|
7101
|
+
return deepmerge(prev, next, options)
|
|
7102
|
+
}, {})
|
|
7103
|
+
};
|
|
7104
|
+
|
|
7105
|
+
var deepmerge_1 = deepmerge;
|
|
7106
|
+
|
|
7107
|
+
module.exports = deepmerge_1;
|
|
7108
|
+
|
|
7109
|
+
|
|
6969
7110
|
/***/ }),
|
|
6970
7111
|
|
|
6971
7112
|
/***/ 2849:
|
|
@@ -86969,7 +87110,7 @@ class Owlmoji {
|
|
|
86969
87110
|
|
|
86970
87111
|
|
|
86971
87112
|
|
|
86972
|
-
const gemoji_regex =
|
|
87113
|
+
const gemoji_regex = /(?<=^|\s):(?<name>\+1|[-\w]+):/g;
|
|
86973
87114
|
const gemojiReplacer = (_, name) => {
|
|
86974
87115
|
switch (Owlmoji.kind(name)) {
|
|
86975
87116
|
case 'gemoji': {
|
|
@@ -97934,6 +98075,9 @@ function compileSync(vfileCompatible, compileOptions) {
|
|
|
97934
98075
|
return core_createProcessor(options).processSync(file)
|
|
97935
98076
|
}
|
|
97936
98077
|
|
|
98078
|
+
// EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
|
|
98079
|
+
var cjs = __webpack_require__(4744);
|
|
98080
|
+
var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
|
|
97937
98081
|
;// ./node_modules/hast-util-to-parse5/lib/index.js
|
|
97938
98082
|
/**
|
|
97939
98083
|
* @typedef {import('hast').Comment} Comment
|
|
@@ -102752,7 +102896,11 @@ const tocHastToMdx = (toc, components) => {
|
|
|
102752
102896
|
|
|
102753
102897
|
|
|
102754
102898
|
|
|
102899
|
+
|
|
102755
102900
|
const { codeTabsTransformer: compile_codeTabsTransformer, ...transforms } = defaultTransforms;
|
|
102901
|
+
const sanitizeSchema = cjs_default()(defaultSchema, {
|
|
102902
|
+
protocols: ['doc', 'ref', 'blog', 'changelog', 'page'],
|
|
102903
|
+
});
|
|
102756
102904
|
const compile_compile = (text, { components = {}, missingComponents, copyButtons, useTailwind, ...opts } = {}) => {
|
|
102757
102905
|
const remarkPlugins = [
|
|
102758
102906
|
remarkFrontmatter,
|
|
@@ -102783,7 +102931,7 @@ const compile_compile = (text, { components = {}, missingComponents, copyButtons
|
|
|
102783
102931
|
passThrough: ['mdxjsEsm'],
|
|
102784
102932
|
},
|
|
102785
102933
|
]);
|
|
102786
|
-
rehypePlugins.push(rehypeSanitize);
|
|
102934
|
+
rehypePlugins.push([rehypeSanitize, sanitizeSchema]);
|
|
102787
102935
|
}
|
|
102788
102936
|
try {
|
|
102789
102937
|
const vfile = compileSync(text, {
|