slicejs-web-framework 1.0.1 → 1.0.6
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/package.json +37 -40
- package/node_modules/.bin/mime +0 -16
- package/node_modules/.bin/mime.cmd +0 -17
- package/node_modules/.bin/mime.ps1 +0 -28
- package/node_modules/.bin/prettier +0 -16
- package/node_modules/.bin/prettier.cmd +0 -17
- package/node_modules/.bin/prettier.ps1 +0 -28
- package/node_modules/.package-lock.json +0 -701
- package/node_modules/accepts/LICENSE +0 -23
- package/node_modules/accepts/README.md +0 -140
- package/node_modules/accepts/index.js +0 -238
- package/node_modules/accepts/package.json +0 -47
- package/node_modules/array-flatten/LICENSE +0 -21
- package/node_modules/array-flatten/README.md +0 -43
- package/node_modules/array-flatten/array-flatten.js +0 -64
- package/node_modules/array-flatten/package.json +0 -39
- package/node_modules/body-parser/LICENSE +0 -23
- package/node_modules/body-parser/README.md +0 -465
- package/node_modules/body-parser/index.js +0 -156
- package/node_modules/body-parser/lib/read.js +0 -205
- package/node_modules/body-parser/lib/types/json.js +0 -247
- package/node_modules/body-parser/lib/types/raw.js +0 -101
- package/node_modules/body-parser/lib/types/text.js +0 -121
- package/node_modules/body-parser/lib/types/urlencoded.js +0 -284
- package/node_modules/body-parser/package.json +0 -56
- package/node_modules/bytes/LICENSE +0 -23
- package/node_modules/bytes/Readme.md +0 -152
- package/node_modules/bytes/index.js +0 -170
- package/node_modules/bytes/package.json +0 -42
- package/node_modules/call-bind/.eslintignore +0 -1
- package/node_modules/call-bind/.eslintrc +0 -16
- package/node_modules/call-bind/.github/FUNDING.yml +0 -12
- package/node_modules/call-bind/.nycrc +0 -9
- package/node_modules/call-bind/LICENSE +0 -21
- package/node_modules/call-bind/README.md +0 -64
- package/node_modules/call-bind/callBound.js +0 -15
- package/node_modules/call-bind/index.js +0 -35
- package/node_modules/call-bind/package.json +0 -95
- package/node_modules/call-bind/test/callBound.js +0 -54
- package/node_modules/call-bind/test/index.js +0 -80
- package/node_modules/content-disposition/LICENSE +0 -22
- package/node_modules/content-disposition/README.md +0 -142
- package/node_modules/content-disposition/index.js +0 -458
- package/node_modules/content-disposition/package.json +0 -44
- package/node_modules/content-type/LICENSE +0 -22
- package/node_modules/content-type/README.md +0 -94
- package/node_modules/content-type/index.js +0 -225
- package/node_modules/content-type/package.json +0 -42
- package/node_modules/cookie/LICENSE +0 -24
- package/node_modules/cookie/README.md +0 -317
- package/node_modules/cookie/index.js +0 -274
- package/node_modules/cookie/package.json +0 -44
- package/node_modules/cookie-signature/Readme.md +0 -42
- package/node_modules/cookie-signature/index.js +0 -51
- package/node_modules/cookie-signature/package.json +0 -18
- package/node_modules/debug/.coveralls.yml +0 -1
- package/node_modules/debug/.eslintrc +0 -11
- package/node_modules/debug/.travis.yml +0 -14
- package/node_modules/debug/LICENSE +0 -19
- package/node_modules/debug/Makefile +0 -50
- package/node_modules/debug/README.md +0 -312
- package/node_modules/debug/component.json +0 -19
- package/node_modules/debug/karma.conf.js +0 -70
- package/node_modules/debug/node.js +0 -1
- package/node_modules/debug/package.json +0 -49
- package/node_modules/debug/src/browser.js +0 -185
- package/node_modules/debug/src/debug.js +0 -202
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/inspector-log.js +0 -15
- package/node_modules/debug/src/node.js +0 -248
- package/node_modules/define-data-property/.eslintrc +0 -24
- package/node_modules/define-data-property/.github/FUNDING.yml +0 -12
- package/node_modules/define-data-property/.nycrc +0 -13
- package/node_modules/define-data-property/LICENSE +0 -21
- package/node_modules/define-data-property/README.md +0 -67
- package/node_modules/define-data-property/index.d.ts +0 -12
- package/node_modules/define-data-property/index.js +0 -56
- package/node_modules/define-data-property/package.json +0 -106
- package/node_modules/define-data-property/test/index.js +0 -392
- package/node_modules/define-data-property/tsconfig.json +0 -59
- package/node_modules/depd/LICENSE +0 -22
- package/node_modules/depd/Readme.md +0 -280
- package/node_modules/depd/index.js +0 -538
- package/node_modules/depd/lib/browser/index.js +0 -77
- package/node_modules/depd/package.json +0 -45
- package/node_modules/destroy/LICENSE +0 -23
- package/node_modules/destroy/README.md +0 -63
- package/node_modules/destroy/index.js +0 -209
- package/node_modules/destroy/package.json +0 -48
- package/node_modules/ee-first/LICENSE +0 -22
- package/node_modules/ee-first/README.md +0 -80
- package/node_modules/ee-first/index.js +0 -95
- package/node_modules/ee-first/package.json +0 -29
- package/node_modules/encodeurl/LICENSE +0 -22
- package/node_modules/encodeurl/README.md +0 -128
- package/node_modules/encodeurl/index.js +0 -60
- package/node_modules/encodeurl/package.json +0 -40
- package/node_modules/es-define-property/.eslintrc +0 -13
- package/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/node_modules/es-define-property/.nycrc +0 -9
- package/node_modules/es-define-property/LICENSE +0 -21
- package/node_modules/es-define-property/README.md +0 -49
- package/node_modules/es-define-property/index.d.ts +0 -3
- package/node_modules/es-define-property/index.js +0 -16
- package/node_modules/es-define-property/package.json +0 -81
- package/node_modules/es-define-property/test/index.js +0 -55
- package/node_modules/es-define-property/tsconfig.json +0 -50
- package/node_modules/es-errors/.eslintrc +0 -5
- package/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/node_modules/es-errors/LICENSE +0 -21
- package/node_modules/es-errors/README.md +0 -55
- package/node_modules/es-errors/eval.d.ts +0 -3
- package/node_modules/es-errors/eval.js +0 -4
- package/node_modules/es-errors/index.d.ts +0 -3
- package/node_modules/es-errors/index.js +0 -4
- package/node_modules/es-errors/package.json +0 -80
- package/node_modules/es-errors/range.d.ts +0 -3
- package/node_modules/es-errors/range.js +0 -4
- package/node_modules/es-errors/ref.d.ts +0 -3
- package/node_modules/es-errors/ref.js +0 -4
- package/node_modules/es-errors/syntax.d.ts +0 -3
- package/node_modules/es-errors/syntax.js +0 -4
- package/node_modules/es-errors/test/index.js +0 -19
- package/node_modules/es-errors/tsconfig.json +0 -49
- package/node_modules/es-errors/type.d.ts +0 -3
- package/node_modules/es-errors/type.js +0 -4
- package/node_modules/es-errors/uri.d.ts +0 -3
- package/node_modules/es-errors/uri.js +0 -4
- package/node_modules/escape-html/LICENSE +0 -24
- package/node_modules/escape-html/Readme.md +0 -43
- package/node_modules/escape-html/index.js +0 -78
- package/node_modules/escape-html/package.json +0 -24
- package/node_modules/etag/LICENSE +0 -22
- package/node_modules/etag/README.md +0 -159
- package/node_modules/etag/index.js +0 -131
- package/node_modules/etag/package.json +0 -47
- package/node_modules/express/LICENSE +0 -24
- package/node_modules/express/Readme.md +0 -166
- package/node_modules/express/index.js +0 -11
- package/node_modules/express/lib/application.js +0 -661
- package/node_modules/express/lib/express.js +0 -116
- package/node_modules/express/lib/middleware/init.js +0 -43
- package/node_modules/express/lib/middleware/query.js +0 -47
- package/node_modules/express/lib/request.js +0 -525
- package/node_modules/express/lib/response.js +0 -1178
- package/node_modules/express/lib/router/index.js +0 -673
- package/node_modules/express/lib/router/layer.js +0 -181
- package/node_modules/express/lib/router/route.js +0 -230
- package/node_modules/express/lib/utils.js +0 -303
- package/node_modules/express/lib/view.js +0 -182
- package/node_modules/express/package.json +0 -98
- package/node_modules/finalhandler/LICENSE +0 -22
- package/node_modules/finalhandler/README.md +0 -147
- package/node_modules/finalhandler/index.js +0 -336
- package/node_modules/finalhandler/package.json +0 -46
- package/node_modules/forwarded/LICENSE +0 -22
- package/node_modules/forwarded/README.md +0 -57
- package/node_modules/forwarded/index.js +0 -90
- package/node_modules/forwarded/package.json +0 -45
- package/node_modules/fresh/LICENSE +0 -23
- package/node_modules/fresh/README.md +0 -119
- package/node_modules/fresh/index.js +0 -137
- package/node_modules/fresh/package.json +0 -46
- package/node_modules/function-bind/.eslintrc +0 -21
- package/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/node_modules/function-bind/.nycrc +0 -13
- package/node_modules/function-bind/LICENSE +0 -20
- package/node_modules/function-bind/README.md +0 -46
- package/node_modules/function-bind/implementation.js +0 -84
- package/node_modules/function-bind/index.js +0 -5
- package/node_modules/function-bind/package.json +0 -87
- package/node_modules/function-bind/test/.eslintrc +0 -9
- package/node_modules/function-bind/test/index.js +0 -252
- package/node_modules/get-intrinsic/.eslintrc +0 -38
- package/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/node_modules/get-intrinsic/.nycrc +0 -9
- package/node_modules/get-intrinsic/LICENSE +0 -21
- package/node_modules/get-intrinsic/README.md +0 -71
- package/node_modules/get-intrinsic/index.js +0 -359
- package/node_modules/get-intrinsic/package.json +0 -93
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/node_modules/gopd/.eslintrc +0 -16
- package/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/node_modules/gopd/LICENSE +0 -21
- package/node_modules/gopd/README.md +0 -40
- package/node_modules/gopd/index.js +0 -16
- package/node_modules/gopd/package.json +0 -71
- package/node_modules/gopd/test/index.js +0 -35
- package/node_modules/has-property-descriptors/.eslintrc +0 -13
- package/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
- package/node_modules/has-property-descriptors/.nycrc +0 -9
- package/node_modules/has-property-descriptors/LICENSE +0 -21
- package/node_modules/has-property-descriptors/README.md +0 -43
- package/node_modules/has-property-descriptors/index.js +0 -22
- package/node_modules/has-property-descriptors/package.json +0 -77
- package/node_modules/has-property-descriptors/test/index.js +0 -57
- package/node_modules/has-proto/.eslintrc +0 -5
- package/node_modules/has-proto/.github/FUNDING.yml +0 -12
- package/node_modules/has-proto/LICENSE +0 -21
- package/node_modules/has-proto/README.md +0 -38
- package/node_modules/has-proto/index.d.ts +0 -3
- package/node_modules/has-proto/index.js +0 -15
- package/node_modules/has-proto/package.json +0 -78
- package/node_modules/has-proto/test/index.js +0 -19
- package/node_modules/has-proto/tsconfig.json +0 -49
- package/node_modules/has-symbols/.eslintrc +0 -11
- package/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/node_modules/has-symbols/.nycrc +0 -9
- package/node_modules/has-symbols/LICENSE +0 -21
- package/node_modules/has-symbols/README.md +0 -46
- package/node_modules/has-symbols/index.js +0 -13
- package/node_modules/has-symbols/package.json +0 -101
- package/node_modules/has-symbols/shams.js +0 -42
- package/node_modules/has-symbols/test/index.js +0 -22
- package/node_modules/has-symbols/test/shams/core-js.js +0 -28
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -28
- package/node_modules/has-symbols/test/tests.js +0 -56
- package/node_modules/hasown/.eslintrc +0 -5
- package/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/node_modules/hasown/.nycrc +0 -13
- package/node_modules/hasown/LICENSE +0 -21
- package/node_modules/hasown/README.md +0 -40
- package/node_modules/hasown/index.d.ts +0 -3
- package/node_modules/hasown/index.js +0 -8
- package/node_modules/hasown/package.json +0 -92
- package/node_modules/hasown/tsconfig.json +0 -6
- package/node_modules/http-errors/LICENSE +0 -23
- package/node_modules/http-errors/README.md +0 -169
- package/node_modules/http-errors/index.js +0 -289
- package/node_modules/http-errors/package.json +0 -50
- package/node_modules/iconv-lite/LICENSE +0 -21
- package/node_modules/iconv-lite/README.md +0 -156
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
- package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
- package/node_modules/iconv-lite/encodings/index.js +0 -22
- package/node_modules/iconv-lite/encodings/internal.js +0 -188
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- package/node_modules/iconv-lite/encodings/utf16.js +0 -177
- package/node_modules/iconv-lite/encodings/utf7.js +0 -290
- package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
- package/node_modules/iconv-lite/lib/extend-node.js +0 -217
- package/node_modules/iconv-lite/lib/index.d.ts +0 -24
- package/node_modules/iconv-lite/lib/index.js +0 -153
- package/node_modules/iconv-lite/lib/streams.js +0 -121
- package/node_modules/iconv-lite/package.json +0 -46
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/ipaddr.js/LICENSE +0 -19
- package/node_modules/ipaddr.js/README.md +0 -233
- package/node_modules/ipaddr.js/ipaddr.min.js +0 -1
- package/node_modules/ipaddr.js/lib/ipaddr.js +0 -673
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +0 -68
- package/node_modules/ipaddr.js/package.json +0 -35
- package/node_modules/media-typer/LICENSE +0 -22
- package/node_modules/media-typer/README.md +0 -81
- package/node_modules/media-typer/index.js +0 -270
- package/node_modules/media-typer/package.json +0 -26
- package/node_modules/merge-descriptors/LICENSE +0 -23
- package/node_modules/merge-descriptors/README.md +0 -48
- package/node_modules/merge-descriptors/index.js +0 -60
- package/node_modules/merge-descriptors/package.json +0 -32
- package/node_modules/methods/LICENSE +0 -24
- package/node_modules/methods/README.md +0 -51
- package/node_modules/methods/index.js +0 -69
- package/node_modules/methods/package.json +0 -36
- package/node_modules/mime/LICENSE +0 -21
- package/node_modules/mime/README.md +0 -90
- package/node_modules/mime/cli.js +0 -8
- package/node_modules/mime/mime.js +0 -108
- package/node_modules/mime/package.json +0 -44
- package/node_modules/mime/src/build.js +0 -53
- package/node_modules/mime/src/test.js +0 -60
- package/node_modules/mime/types.json +0 -1
- package/node_modules/mime-db/LICENSE +0 -23
- package/node_modules/mime-db/README.md +0 -100
- package/node_modules/mime-db/db.json +0 -8519
- package/node_modules/mime-db/index.js +0 -12
- package/node_modules/mime-db/package.json +0 -60
- package/node_modules/mime-types/LICENSE +0 -23
- package/node_modules/mime-types/README.md +0 -113
- package/node_modules/mime-types/index.js +0 -188
- package/node_modules/mime-types/package.json +0 -44
- package/node_modules/ms/index.js +0 -152
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -37
- package/node_modules/ms/readme.md +0 -51
- package/node_modules/negotiator/LICENSE +0 -24
- package/node_modules/negotiator/README.md +0 -203
- package/node_modules/negotiator/index.js +0 -82
- package/node_modules/negotiator/lib/charset.js +0 -169
- package/node_modules/negotiator/lib/encoding.js +0 -184
- package/node_modules/negotiator/lib/language.js +0 -179
- package/node_modules/negotiator/lib/mediaType.js +0 -294
- package/node_modules/negotiator/package.json +0 -42
- package/node_modules/object-inspect/.eslintrc +0 -53
- package/node_modules/object-inspect/.github/FUNDING.yml +0 -12
- package/node_modules/object-inspect/.nycrc +0 -13
- package/node_modules/object-inspect/LICENSE +0 -21
- package/node_modules/object-inspect/example/all.js +0 -23
- package/node_modules/object-inspect/example/circular.js +0 -6
- package/node_modules/object-inspect/example/fn.js +0 -5
- package/node_modules/object-inspect/example/inspect.js +0 -10
- package/node_modules/object-inspect/index.js +0 -524
- package/node_modules/object-inspect/package-support.json +0 -20
- package/node_modules/object-inspect/package.json +0 -99
- package/node_modules/object-inspect/readme.markdown +0 -86
- package/node_modules/object-inspect/test/bigint.js +0 -58
- package/node_modules/object-inspect/test/browser/dom.js +0 -15
- package/node_modules/object-inspect/test/circular.js +0 -16
- package/node_modules/object-inspect/test/deep.js +0 -12
- package/node_modules/object-inspect/test/element.js +0 -53
- package/node_modules/object-inspect/test/err.js +0 -48
- package/node_modules/object-inspect/test/fakes.js +0 -29
- package/node_modules/object-inspect/test/fn.js +0 -76
- package/node_modules/object-inspect/test/global.js +0 -17
- package/node_modules/object-inspect/test/has.js +0 -15
- package/node_modules/object-inspect/test/holes.js +0 -15
- package/node_modules/object-inspect/test/indent-option.js +0 -271
- package/node_modules/object-inspect/test/inspect.js +0 -139
- package/node_modules/object-inspect/test/lowbyte.js +0 -12
- package/node_modules/object-inspect/test/number.js +0 -58
- package/node_modules/object-inspect/test/quoteStyle.js +0 -17
- package/node_modules/object-inspect/test/toStringTag.js +0 -40
- package/node_modules/object-inspect/test/undef.js +0 -12
- package/node_modules/object-inspect/test/values.js +0 -211
- package/node_modules/object-inspect/test-core-js.js +0 -26
- package/node_modules/object-inspect/util.inspect.js +0 -1
- package/node_modules/on-finished/LICENSE +0 -23
- package/node_modules/on-finished/README.md +0 -162
- package/node_modules/on-finished/index.js +0 -234
- package/node_modules/on-finished/package.json +0 -39
- package/node_modules/parseurl/LICENSE +0 -24
- package/node_modules/parseurl/README.md +0 -133
- package/node_modules/parseurl/index.js +0 -158
- package/node_modules/parseurl/package.json +0 -40
- package/node_modules/path-to-regexp/LICENSE +0 -21
- package/node_modules/path-to-regexp/Readme.md +0 -35
- package/node_modules/path-to-regexp/index.js +0 -129
- package/node_modules/path-to-regexp/package.json +0 -30
- package/node_modules/prettier/LICENSE +0 -4379
- package/node_modules/prettier/README.md +0 -109
- package/node_modules/prettier/bin/prettier.cjs +0 -64
- package/node_modules/prettier/doc.d.ts +0 -243
- package/node_modules/prettier/doc.js +0 -1319
- package/node_modules/prettier/doc.mjs +0 -1291
- package/node_modules/prettier/index.cjs +0 -648
- package/node_modules/prettier/index.d.ts +0 -941
- package/node_modules/prettier/index.mjs +0 -22795
- package/node_modules/prettier/internal/cli.mjs +0 -3884
- package/node_modules/prettier/package.json +0 -198
- package/node_modules/prettier/plugins/acorn.d.ts +0 -6
- package/node_modules/prettier/plugins/acorn.js +0 -15
- package/node_modules/prettier/plugins/acorn.mjs +0 -15
- package/node_modules/prettier/plugins/angular.d.ts +0 -8
- package/node_modules/prettier/plugins/angular.js +0 -1
- package/node_modules/prettier/plugins/angular.mjs +0 -1
- package/node_modules/prettier/plugins/babel.d.ts +0 -18
- package/node_modules/prettier/plugins/babel.js +0 -15
- package/node_modules/prettier/plugins/babel.mjs +0 -15
- package/node_modules/prettier/plugins/estree.d.ts +0 -1
- package/node_modules/prettier/plugins/estree.js +0 -36
- package/node_modules/prettier/plugins/estree.mjs +0 -36
- package/node_modules/prettier/plugins/flow.d.ts +0 -5
- package/node_modules/prettier/plugins/flow.js +0 -19
- package/node_modules/prettier/plugins/flow.mjs +0 -19
- package/node_modules/prettier/plugins/glimmer.d.ts +0 -5
- package/node_modules/prettier/plugins/glimmer.js +0 -30
- package/node_modules/prettier/plugins/glimmer.mjs +0 -30
- package/node_modules/prettier/plugins/graphql.d.ts +0 -5
- package/node_modules/prettier/plugins/graphql.js +0 -29
- package/node_modules/prettier/plugins/graphql.mjs +0 -29
- package/node_modules/prettier/plugins/html.d.ts +0 -8
- package/node_modules/prettier/plugins/html.js +0 -22
- package/node_modules/prettier/plugins/html.mjs +0 -22
- package/node_modules/prettier/plugins/markdown.d.ts +0 -7
- package/node_modules/prettier/plugins/markdown.js +0 -62
- package/node_modules/prettier/plugins/markdown.mjs +0 -62
- package/node_modules/prettier/plugins/meriyah.d.ts +0 -5
- package/node_modules/prettier/plugins/meriyah.js +0 -4
- package/node_modules/prettier/plugins/meriyah.mjs +0 -4
- package/node_modules/prettier/plugins/postcss.d.ts +0 -7
- package/node_modules/prettier/plugins/postcss.js +0 -52
- package/node_modules/prettier/plugins/postcss.mjs +0 -52
- package/node_modules/prettier/plugins/typescript.d.ts +0 -5
- package/node_modules/prettier/plugins/typescript.js +0 -20
- package/node_modules/prettier/plugins/typescript.mjs +0 -20
- package/node_modules/prettier/plugins/yaml.d.ts +0 -5
- package/node_modules/prettier/plugins/yaml.js +0 -161
- package/node_modules/prettier/plugins/yaml.mjs +0 -161
- package/node_modules/prettier/standalone.d.ts +0 -33
- package/node_modules/prettier/standalone.js +0 -35
- package/node_modules/prettier/standalone.mjs +0 -35
- package/node_modules/proxy-addr/LICENSE +0 -22
- package/node_modules/proxy-addr/README.md +0 -139
- package/node_modules/proxy-addr/index.js +0 -327
- package/node_modules/proxy-addr/package.json +0 -47
- package/node_modules/qs/.editorconfig +0 -43
- package/node_modules/qs/.eslintrc +0 -38
- package/node_modules/qs/.github/FUNDING.yml +0 -12
- package/node_modules/qs/.nycrc +0 -13
- package/node_modules/qs/LICENSE.md +0 -29
- package/node_modules/qs/README.md +0 -625
- package/node_modules/qs/dist/qs.js +0 -2054
- package/node_modules/qs/lib/formats.js +0 -23
- package/node_modules/qs/lib/index.js +0 -11
- package/node_modules/qs/lib/parse.js +0 -263
- package/node_modules/qs/lib/stringify.js +0 -326
- package/node_modules/qs/lib/utils.js +0 -252
- package/node_modules/qs/package.json +0 -77
- package/node_modules/qs/test/parse.js +0 -855
- package/node_modules/qs/test/stringify.js +0 -909
- package/node_modules/qs/test/utils.js +0 -136
- package/node_modules/range-parser/LICENSE +0 -23
- package/node_modules/range-parser/README.md +0 -84
- package/node_modules/range-parser/index.js +0 -162
- package/node_modules/range-parser/package.json +0 -44
- package/node_modules/raw-body/LICENSE +0 -22
- package/node_modules/raw-body/README.md +0 -223
- package/node_modules/raw-body/index.d.ts +0 -87
- package/node_modules/raw-body/index.js +0 -336
- package/node_modules/raw-body/package.json +0 -49
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -65
- package/node_modules/safe-buffer/package.json +0 -51
- package/node_modules/safer-buffer/LICENSE +0 -21
- package/node_modules/safer-buffer/Readme.md +0 -156
- package/node_modules/safer-buffer/dangerous.js +0 -58
- package/node_modules/safer-buffer/package.json +0 -34
- package/node_modules/safer-buffer/safer.js +0 -77
- package/node_modules/safer-buffer/tests.js +0 -406
- package/node_modules/send/LICENSE +0 -23
- package/node_modules/send/README.md +0 -327
- package/node_modules/send/index.js +0 -1143
- package/node_modules/send/node_modules/ms/index.js +0 -162
- package/node_modules/send/node_modules/ms/license.md +0 -21
- package/node_modules/send/node_modules/ms/package.json +0 -38
- package/node_modules/send/node_modules/ms/readme.md +0 -59
- package/node_modules/send/package.json +0 -62
- package/node_modules/serve-static/LICENSE +0 -25
- package/node_modules/serve-static/README.md +0 -257
- package/node_modules/serve-static/index.js +0 -210
- package/node_modules/serve-static/package.json +0 -42
- package/node_modules/set-function-length/.eslintrc +0 -27
- package/node_modules/set-function-length/.github/FUNDING.yml +0 -12
- package/node_modules/set-function-length/.nycrc +0 -13
- package/node_modules/set-function-length/LICENSE +0 -21
- package/node_modules/set-function-length/README.md +0 -56
- package/node_modules/set-function-length/env.d.ts +0 -9
- package/node_modules/set-function-length/env.js +0 -25
- package/node_modules/set-function-length/index.d.ts +0 -7
- package/node_modules/set-function-length/index.js +0 -42
- package/node_modules/set-function-length/package.json +0 -102
- package/node_modules/set-function-length/tsconfig.json +0 -9
- package/node_modules/setprototypeof/LICENSE +0 -13
- package/node_modules/setprototypeof/README.md +0 -31
- package/node_modules/setprototypeof/index.d.ts +0 -2
- package/node_modules/setprototypeof/index.js +0 -17
- package/node_modules/setprototypeof/package.json +0 -38
- package/node_modules/setprototypeof/test/index.js +0 -24
- package/node_modules/side-channel/.editorconfig +0 -9
- package/node_modules/side-channel/.eslintrc +0 -11
- package/node_modules/side-channel/.github/FUNDING.yml +0 -12
- package/node_modules/side-channel/.nycrc +0 -13
- package/node_modules/side-channel/LICENSE +0 -21
- package/node_modules/side-channel/README.md +0 -2
- package/node_modules/side-channel/index.d.ts +0 -27
- package/node_modules/side-channel/index.js +0 -129
- package/node_modules/side-channel/package.json +0 -84
- package/node_modules/side-channel/test/index.js +0 -83
- package/node_modules/side-channel/tsconfig.json +0 -50
- package/node_modules/statuses/LICENSE +0 -23
- package/node_modules/statuses/README.md +0 -136
- package/node_modules/statuses/codes.json +0 -65
- package/node_modules/statuses/index.js +0 -146
- package/node_modules/statuses/package.json +0 -49
- package/node_modules/toidentifier/LICENSE +0 -21
- package/node_modules/toidentifier/README.md +0 -61
- package/node_modules/toidentifier/index.js +0 -32
- package/node_modules/toidentifier/package.json +0 -38
- package/node_modules/type-is/LICENSE +0 -23
- package/node_modules/type-is/README.md +0 -170
- package/node_modules/type-is/index.js +0 -266
- package/node_modules/type-is/package.json +0 -45
- package/node_modules/unpipe/LICENSE +0 -22
- package/node_modules/unpipe/README.md +0 -43
- package/node_modules/unpipe/index.js +0 -69
- package/node_modules/unpipe/package.json +0 -27
- package/node_modules/utils-merge/LICENSE +0 -20
- package/node_modules/utils-merge/README.md +0 -34
- package/node_modules/utils-merge/index.js +0 -23
- package/node_modules/utils-merge/package.json +0 -40
- package/node_modules/vary/LICENSE +0 -22
- package/node_modules/vary/README.md +0 -101
- package/node_modules/vary/index.js +0 -149
- package/node_modules/vary/package.json +0 -43
|
@@ -1,648 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
-
};
|
|
11
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
|
-
var __export = (target, all) => {
|
|
15
|
-
for (var name in all)
|
|
16
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
-
for (let key of __getOwnPropNames(from))
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
-
}
|
|
24
|
-
return to;
|
|
25
|
-
};
|
|
26
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
27
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
28
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
29
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
31
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
32
|
-
mod
|
|
33
|
-
));
|
|
34
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
|
-
|
|
36
|
-
// src/utils/skip.js
|
|
37
|
-
function skip(characters) {
|
|
38
|
-
return (text, startIndex, options) => {
|
|
39
|
-
const backwards = Boolean(options == null ? void 0 : options.backwards);
|
|
40
|
-
if (startIndex === false) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
const { length } = text;
|
|
44
|
-
let cursor = startIndex;
|
|
45
|
-
while (cursor >= 0 && cursor < length) {
|
|
46
|
-
const character = text.charAt(cursor);
|
|
47
|
-
if (characters instanceof RegExp) {
|
|
48
|
-
if (!characters.test(character)) {
|
|
49
|
-
return cursor;
|
|
50
|
-
}
|
|
51
|
-
} else if (!characters.includes(character)) {
|
|
52
|
-
return cursor;
|
|
53
|
-
}
|
|
54
|
-
backwards ? cursor-- : cursor++;
|
|
55
|
-
}
|
|
56
|
-
if (cursor === -1 || cursor === length) {
|
|
57
|
-
return cursor;
|
|
58
|
-
}
|
|
59
|
-
return false;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
var skipWhitespace, skipSpaces, skipToLineEnd, skipEverythingButNewLine;
|
|
63
|
-
var init_skip = __esm({
|
|
64
|
-
"src/utils/skip.js"() {
|
|
65
|
-
skipWhitespace = skip(/\s/u);
|
|
66
|
-
skipSpaces = skip(" ");
|
|
67
|
-
skipToLineEnd = skip(",; ");
|
|
68
|
-
skipEverythingButNewLine = skip(/[^\n\r]/u);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
// src/utils/skip-inline-comment.js
|
|
73
|
-
function skipInlineComment(text, startIndex) {
|
|
74
|
-
if (startIndex === false) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
if (text.charAt(startIndex) === "/" && text.charAt(startIndex + 1) === "*") {
|
|
78
|
-
for (let i = startIndex + 2; i < text.length; ++i) {
|
|
79
|
-
if (text.charAt(i) === "*" && text.charAt(i + 1) === "/") {
|
|
80
|
-
return i + 2;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return startIndex;
|
|
85
|
-
}
|
|
86
|
-
var skip_inline_comment_default;
|
|
87
|
-
var init_skip_inline_comment = __esm({
|
|
88
|
-
"src/utils/skip-inline-comment.js"() {
|
|
89
|
-
skip_inline_comment_default = skipInlineComment;
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
// src/utils/skip-newline.js
|
|
94
|
-
function skipNewline(text, startIndex, options) {
|
|
95
|
-
const backwards = Boolean(options == null ? void 0 : options.backwards);
|
|
96
|
-
if (startIndex === false) {
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
const character = text.charAt(startIndex);
|
|
100
|
-
if (backwards) {
|
|
101
|
-
if (text.charAt(startIndex - 1) === "\r" && character === "\n") {
|
|
102
|
-
return startIndex - 2;
|
|
103
|
-
}
|
|
104
|
-
if (character === "\n" || character === "\r" || character === "\u2028" || character === "\u2029") {
|
|
105
|
-
return startIndex - 1;
|
|
106
|
-
}
|
|
107
|
-
} else {
|
|
108
|
-
if (character === "\r" && text.charAt(startIndex + 1) === "\n") {
|
|
109
|
-
return startIndex + 2;
|
|
110
|
-
}
|
|
111
|
-
if (character === "\n" || character === "\r" || character === "\u2028" || character === "\u2029") {
|
|
112
|
-
return startIndex + 1;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return startIndex;
|
|
116
|
-
}
|
|
117
|
-
var skip_newline_default;
|
|
118
|
-
var init_skip_newline = __esm({
|
|
119
|
-
"src/utils/skip-newline.js"() {
|
|
120
|
-
skip_newline_default = skipNewline;
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
// src/utils/skip-trailing-comment.js
|
|
125
|
-
function skipTrailingComment(text, startIndex) {
|
|
126
|
-
if (startIndex === false) {
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
if (text.charAt(startIndex) === "/" && text.charAt(startIndex + 1) === "/") {
|
|
130
|
-
return skipEverythingButNewLine(text, startIndex);
|
|
131
|
-
}
|
|
132
|
-
return startIndex;
|
|
133
|
-
}
|
|
134
|
-
var skip_trailing_comment_default;
|
|
135
|
-
var init_skip_trailing_comment = __esm({
|
|
136
|
-
"src/utils/skip-trailing-comment.js"() {
|
|
137
|
-
init_skip();
|
|
138
|
-
skip_trailing_comment_default = skipTrailingComment;
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
// src/utils/get-next-non-space-non-comment-character-index.js
|
|
143
|
-
function getNextNonSpaceNonCommentCharacterIndex(text, startIndex) {
|
|
144
|
-
let oldIdx = null;
|
|
145
|
-
let nextIdx = startIndex;
|
|
146
|
-
while (nextIdx !== oldIdx) {
|
|
147
|
-
oldIdx = nextIdx;
|
|
148
|
-
nextIdx = skipSpaces(text, nextIdx);
|
|
149
|
-
nextIdx = skip_inline_comment_default(text, nextIdx);
|
|
150
|
-
nextIdx = skip_trailing_comment_default(text, nextIdx);
|
|
151
|
-
nextIdx = skip_newline_default(text, nextIdx);
|
|
152
|
-
}
|
|
153
|
-
return nextIdx;
|
|
154
|
-
}
|
|
155
|
-
var get_next_non_space_non_comment_character_index_default;
|
|
156
|
-
var init_get_next_non_space_non_comment_character_index = __esm({
|
|
157
|
-
"src/utils/get-next-non-space-non-comment-character-index.js"() {
|
|
158
|
-
init_skip();
|
|
159
|
-
init_skip_inline_comment();
|
|
160
|
-
init_skip_newline();
|
|
161
|
-
init_skip_trailing_comment();
|
|
162
|
-
get_next_non_space_non_comment_character_index_default = getNextNonSpaceNonCommentCharacterIndex;
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
// src/utils/has-newline.js
|
|
167
|
-
function hasNewline(text, startIndex, options = {}) {
|
|
168
|
-
const idx = skipSpaces(
|
|
169
|
-
text,
|
|
170
|
-
options.backwards ? startIndex - 1 : startIndex,
|
|
171
|
-
options
|
|
172
|
-
);
|
|
173
|
-
const idx2 = skip_newline_default(text, idx, options);
|
|
174
|
-
return idx !== idx2;
|
|
175
|
-
}
|
|
176
|
-
var has_newline_default;
|
|
177
|
-
var init_has_newline = __esm({
|
|
178
|
-
"src/utils/has-newline.js"() {
|
|
179
|
-
init_skip();
|
|
180
|
-
init_skip_newline();
|
|
181
|
-
has_newline_default = hasNewline;
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
// src/utils/is-next-line-empty.js
|
|
186
|
-
function isNextLineEmpty(text, startIndex) {
|
|
187
|
-
let oldIdx = null;
|
|
188
|
-
let idx = startIndex;
|
|
189
|
-
while (idx !== oldIdx) {
|
|
190
|
-
oldIdx = idx;
|
|
191
|
-
idx = skipToLineEnd(text, idx);
|
|
192
|
-
idx = skip_inline_comment_default(text, idx);
|
|
193
|
-
idx = skipSpaces(text, idx);
|
|
194
|
-
}
|
|
195
|
-
idx = skip_trailing_comment_default(text, idx);
|
|
196
|
-
idx = skip_newline_default(text, idx);
|
|
197
|
-
return idx !== false && has_newline_default(text, idx);
|
|
198
|
-
}
|
|
199
|
-
var is_next_line_empty_default;
|
|
200
|
-
var init_is_next_line_empty = __esm({
|
|
201
|
-
"src/utils/is-next-line-empty.js"() {
|
|
202
|
-
init_has_newline();
|
|
203
|
-
init_skip();
|
|
204
|
-
init_skip_inline_comment();
|
|
205
|
-
init_skip_newline();
|
|
206
|
-
init_skip_trailing_comment();
|
|
207
|
-
is_next_line_empty_default = isNextLineEmpty;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
// src/utils/is-previous-line-empty.js
|
|
212
|
-
function isPreviousLineEmpty(text, startIndex) {
|
|
213
|
-
let idx = startIndex - 1;
|
|
214
|
-
idx = skipSpaces(text, idx, { backwards: true });
|
|
215
|
-
idx = skip_newline_default(text, idx, { backwards: true });
|
|
216
|
-
idx = skipSpaces(text, idx, { backwards: true });
|
|
217
|
-
const idx2 = skip_newline_default(text, idx, { backwards: true });
|
|
218
|
-
return idx !== idx2;
|
|
219
|
-
}
|
|
220
|
-
var is_previous_line_empty_default;
|
|
221
|
-
var init_is_previous_line_empty = __esm({
|
|
222
|
-
"src/utils/is-previous-line-empty.js"() {
|
|
223
|
-
init_skip();
|
|
224
|
-
init_skip_newline();
|
|
225
|
-
is_previous_line_empty_default = isPreviousLineEmpty;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
// src/main/comments/utils.js
|
|
230
|
-
function describeNodeForDebugging(node) {
|
|
231
|
-
const nodeType = node.type || node.kind || "(unknown type)";
|
|
232
|
-
let nodeName = String(
|
|
233
|
-
node.name || node.id && (typeof node.id === "object" ? node.id.name : node.id) || node.key && (typeof node.key === "object" ? node.key.name : node.key) || node.value && (typeof node.value === "object" ? "" : String(node.value)) || node.operator || ""
|
|
234
|
-
);
|
|
235
|
-
if (nodeName.length > 20) {
|
|
236
|
-
nodeName = nodeName.slice(0, 19) + "\u2026";
|
|
237
|
-
}
|
|
238
|
-
return nodeType + (nodeName ? " " + nodeName : "");
|
|
239
|
-
}
|
|
240
|
-
function addCommentHelper(node, comment) {
|
|
241
|
-
const comments = node.comments ?? (node.comments = []);
|
|
242
|
-
comments.push(comment);
|
|
243
|
-
comment.printed = false;
|
|
244
|
-
comment.nodeDescription = describeNodeForDebugging(node);
|
|
245
|
-
}
|
|
246
|
-
function addLeadingComment(node, comment) {
|
|
247
|
-
comment.leading = true;
|
|
248
|
-
comment.trailing = false;
|
|
249
|
-
addCommentHelper(node, comment);
|
|
250
|
-
}
|
|
251
|
-
function addDanglingComment(node, comment, marker) {
|
|
252
|
-
comment.leading = false;
|
|
253
|
-
comment.trailing = false;
|
|
254
|
-
if (marker) {
|
|
255
|
-
comment.marker = marker;
|
|
256
|
-
}
|
|
257
|
-
addCommentHelper(node, comment);
|
|
258
|
-
}
|
|
259
|
-
function addTrailingComment(node, comment) {
|
|
260
|
-
comment.leading = false;
|
|
261
|
-
comment.trailing = true;
|
|
262
|
-
addCommentHelper(node, comment);
|
|
263
|
-
}
|
|
264
|
-
var init_utils = __esm({
|
|
265
|
-
"src/main/comments/utils.js"() {
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
|
|
269
|
-
// src/utils/get-alignment-size.js
|
|
270
|
-
function getAlignmentSize(text, tabWidth, startIndex = 0) {
|
|
271
|
-
let size = 0;
|
|
272
|
-
for (let i = startIndex; i < text.length; ++i) {
|
|
273
|
-
if (text[i] === " ") {
|
|
274
|
-
size = size + tabWidth - size % tabWidth;
|
|
275
|
-
} else {
|
|
276
|
-
size++;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
return size;
|
|
280
|
-
}
|
|
281
|
-
var get_alignment_size_default;
|
|
282
|
-
var init_get_alignment_size = __esm({
|
|
283
|
-
"src/utils/get-alignment-size.js"() {
|
|
284
|
-
get_alignment_size_default = getAlignmentSize;
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
// src/utils/get-indent-size.js
|
|
289
|
-
function getIndentSize(value, tabWidth) {
|
|
290
|
-
const lastNewlineIndex = value.lastIndexOf("\n");
|
|
291
|
-
if (lastNewlineIndex === -1) {
|
|
292
|
-
return 0;
|
|
293
|
-
}
|
|
294
|
-
return get_alignment_size_default(
|
|
295
|
-
// All the leading whitespaces
|
|
296
|
-
value.slice(lastNewlineIndex + 1).match(/^[\t ]*/u)[0],
|
|
297
|
-
tabWidth
|
|
298
|
-
);
|
|
299
|
-
}
|
|
300
|
-
var get_indent_size_default;
|
|
301
|
-
var init_get_indent_size = __esm({
|
|
302
|
-
"src/utils/get-indent-size.js"() {
|
|
303
|
-
init_get_alignment_size();
|
|
304
|
-
get_indent_size_default = getIndentSize;
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
// node_modules/escape-string-regexp/index.js
|
|
309
|
-
function escapeStringRegexp(string) {
|
|
310
|
-
if (typeof string !== "string") {
|
|
311
|
-
throw new TypeError("Expected a string");
|
|
312
|
-
}
|
|
313
|
-
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
314
|
-
}
|
|
315
|
-
var init_escape_string_regexp = __esm({
|
|
316
|
-
"node_modules/escape-string-regexp/index.js"() {
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
// src/utils/get-max-continuous-count.js
|
|
321
|
-
function getMaxContinuousCount(text, searchString) {
|
|
322
|
-
const results = text.match(
|
|
323
|
-
new RegExp(`(${escapeStringRegexp(searchString)})+`, "gu")
|
|
324
|
-
);
|
|
325
|
-
if (results === null) {
|
|
326
|
-
return 0;
|
|
327
|
-
}
|
|
328
|
-
return results.reduce(
|
|
329
|
-
(maxCount, result) => Math.max(maxCount, result.length / searchString.length),
|
|
330
|
-
0
|
|
331
|
-
);
|
|
332
|
-
}
|
|
333
|
-
var get_max_continuous_count_default;
|
|
334
|
-
var init_get_max_continuous_count = __esm({
|
|
335
|
-
"src/utils/get-max-continuous-count.js"() {
|
|
336
|
-
init_escape_string_regexp();
|
|
337
|
-
get_max_continuous_count_default = getMaxContinuousCount;
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
// src/utils/get-next-non-space-non-comment-character.js
|
|
342
|
-
function getNextNonSpaceNonCommentCharacter(text, startIndex) {
|
|
343
|
-
const index = get_next_non_space_non_comment_character_index_default(text, startIndex);
|
|
344
|
-
return index === false ? "" : text.charAt(index);
|
|
345
|
-
}
|
|
346
|
-
var get_next_non_space_non_comment_character_default;
|
|
347
|
-
var init_get_next_non_space_non_comment_character = __esm({
|
|
348
|
-
"src/utils/get-next-non-space-non-comment-character.js"() {
|
|
349
|
-
init_get_next_non_space_non_comment_character_index();
|
|
350
|
-
get_next_non_space_non_comment_character_default = getNextNonSpaceNonCommentCharacter;
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
|
|
354
|
-
// node_modules/emoji-regex/index.mjs
|
|
355
|
-
var emoji_regex_default;
|
|
356
|
-
var init_emoji_regex = __esm({
|
|
357
|
-
"node_modules/emoji-regex/index.mjs"() {
|
|
358
|
-
emoji_regex_default = () => {
|
|
359
|
-
return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
});
|
|
363
|
-
|
|
364
|
-
// node_modules/get-east-asian-width/lookup.js
|
|
365
|
-
function isFullWidth(x) {
|
|
366
|
-
return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
|
|
367
|
-
}
|
|
368
|
-
function isWide(x) {
|
|
369
|
-
return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9800 && x <= 9811 || x === 9855 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12771 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 19903 || x >= 19968 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101632 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129672 || x >= 129680 && x <= 129725 || x >= 129727 && x <= 129733 || x >= 129742 && x <= 129755 || x >= 129760 && x <= 129768 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
|
|
370
|
-
}
|
|
371
|
-
var init_lookup = __esm({
|
|
372
|
-
"node_modules/get-east-asian-width/lookup.js"() {
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
|
|
376
|
-
// node_modules/get-east-asian-width/index.js
|
|
377
|
-
var _isNarrowWidth;
|
|
378
|
-
var init_get_east_asian_width = __esm({
|
|
379
|
-
"node_modules/get-east-asian-width/index.js"() {
|
|
380
|
-
init_lookup();
|
|
381
|
-
_isNarrowWidth = (codePoint) => !(isFullWidth(codePoint) || isWide(codePoint));
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
|
|
385
|
-
// src/utils/get-string-width.js
|
|
386
|
-
function getStringWidth(text) {
|
|
387
|
-
if (!text) {
|
|
388
|
-
return 0;
|
|
389
|
-
}
|
|
390
|
-
if (!notAsciiRegex.test(text)) {
|
|
391
|
-
return text.length;
|
|
392
|
-
}
|
|
393
|
-
text = text.replace(emoji_regex_default(), " ");
|
|
394
|
-
let width = 0;
|
|
395
|
-
for (const character of text) {
|
|
396
|
-
const codePoint = character.codePointAt(0);
|
|
397
|
-
if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
|
|
398
|
-
continue;
|
|
399
|
-
}
|
|
400
|
-
if (codePoint >= 768 && codePoint <= 879) {
|
|
401
|
-
continue;
|
|
402
|
-
}
|
|
403
|
-
width += _isNarrowWidth(codePoint) ? 1 : 2;
|
|
404
|
-
}
|
|
405
|
-
return width;
|
|
406
|
-
}
|
|
407
|
-
var notAsciiRegex, get_string_width_default;
|
|
408
|
-
var init_get_string_width = __esm({
|
|
409
|
-
"src/utils/get-string-width.js"() {
|
|
410
|
-
init_emoji_regex();
|
|
411
|
-
init_get_east_asian_width();
|
|
412
|
-
notAsciiRegex = /[^\x20-\x7F]/u;
|
|
413
|
-
get_string_width_default = getStringWidth;
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
|
|
417
|
-
// src/utils/has-newline-in-range.js
|
|
418
|
-
function hasNewlineInRange(text, startIndex, endIndex) {
|
|
419
|
-
for (let i = startIndex; i < endIndex; ++i) {
|
|
420
|
-
if (text.charAt(i) === "\n") {
|
|
421
|
-
return true;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
return false;
|
|
425
|
-
}
|
|
426
|
-
var has_newline_in_range_default;
|
|
427
|
-
var init_has_newline_in_range = __esm({
|
|
428
|
-
"src/utils/has-newline-in-range.js"() {
|
|
429
|
-
has_newline_in_range_default = hasNewlineInRange;
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
// src/utils/has-spaces.js
|
|
434
|
-
function hasSpaces(text, startIndex, options = {}) {
|
|
435
|
-
const idx = skipSpaces(
|
|
436
|
-
text,
|
|
437
|
-
options.backwards ? startIndex - 1 : startIndex,
|
|
438
|
-
options
|
|
439
|
-
);
|
|
440
|
-
return idx !== startIndex;
|
|
441
|
-
}
|
|
442
|
-
var has_spaces_default;
|
|
443
|
-
var init_has_spaces = __esm({
|
|
444
|
-
"src/utils/has-spaces.js"() {
|
|
445
|
-
init_skip();
|
|
446
|
-
has_spaces_default = hasSpaces;
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
|
|
450
|
-
// scripts/build/shims/string-replace-all.js
|
|
451
|
-
var stringReplaceAll, string_replace_all_default;
|
|
452
|
-
var init_string_replace_all = __esm({
|
|
453
|
-
"scripts/build/shims/string-replace-all.js"() {
|
|
454
|
-
stringReplaceAll = (isOptionalObject, original, pattern, replacement) => {
|
|
455
|
-
if (isOptionalObject && (original === void 0 || original === null)) {
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
if (original.replaceAll) {
|
|
459
|
-
return original.replaceAll(pattern, replacement);
|
|
460
|
-
}
|
|
461
|
-
if (pattern.global) {
|
|
462
|
-
return original.replace(pattern, replacement);
|
|
463
|
-
}
|
|
464
|
-
return original.split(pattern).join(replacement);
|
|
465
|
-
};
|
|
466
|
-
string_replace_all_default = stringReplaceAll;
|
|
467
|
-
}
|
|
468
|
-
});
|
|
469
|
-
|
|
470
|
-
// src/utils/make-string.js
|
|
471
|
-
function makeString(rawText, enclosingQuote, unescapeUnnecessaryEscapes) {
|
|
472
|
-
const otherQuote = enclosingQuote === '"' ? "'" : '"';
|
|
473
|
-
const regex = /\\(.)|(["'])/gsu;
|
|
474
|
-
const raw = string_replace_all_default(
|
|
475
|
-
/* isOptionalObject */
|
|
476
|
-
false,
|
|
477
|
-
rawText,
|
|
478
|
-
regex,
|
|
479
|
-
(match, escaped, quote) => {
|
|
480
|
-
if (escaped === otherQuote) {
|
|
481
|
-
return escaped;
|
|
482
|
-
}
|
|
483
|
-
if (quote === enclosingQuote) {
|
|
484
|
-
return "\\" + quote;
|
|
485
|
-
}
|
|
486
|
-
if (quote) {
|
|
487
|
-
return quote;
|
|
488
|
-
}
|
|
489
|
-
return unescapeUnnecessaryEscapes && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(escaped) ? escaped : "\\" + escaped;
|
|
490
|
-
}
|
|
491
|
-
);
|
|
492
|
-
return enclosingQuote + raw + enclosingQuote;
|
|
493
|
-
}
|
|
494
|
-
var make_string_default;
|
|
495
|
-
var init_make_string = __esm({
|
|
496
|
-
"src/utils/make-string.js"() {
|
|
497
|
-
init_string_replace_all();
|
|
498
|
-
make_string_default = makeString;
|
|
499
|
-
}
|
|
500
|
-
});
|
|
501
|
-
|
|
502
|
-
// src/utils/public.js
|
|
503
|
-
var public_exports = {};
|
|
504
|
-
__export(public_exports, {
|
|
505
|
-
addDanglingComment: () => addDanglingComment,
|
|
506
|
-
addLeadingComment: () => addLeadingComment,
|
|
507
|
-
addTrailingComment: () => addTrailingComment,
|
|
508
|
-
getAlignmentSize: () => get_alignment_size_default,
|
|
509
|
-
getIndentSize: () => get_indent_size_default,
|
|
510
|
-
getMaxContinuousCount: () => get_max_continuous_count_default,
|
|
511
|
-
getNextNonSpaceNonCommentCharacter: () => get_next_non_space_non_comment_character_default,
|
|
512
|
-
getNextNonSpaceNonCommentCharacterIndex: () => getNextNonSpaceNonCommentCharacterIndex2,
|
|
513
|
-
getStringWidth: () => get_string_width_default,
|
|
514
|
-
hasNewline: () => has_newline_default,
|
|
515
|
-
hasNewlineInRange: () => has_newline_in_range_default,
|
|
516
|
-
hasSpaces: () => has_spaces_default,
|
|
517
|
-
isNextLineEmpty: () => isNextLineEmpty2,
|
|
518
|
-
isNextLineEmptyAfterIndex: () => is_next_line_empty_default,
|
|
519
|
-
isPreviousLineEmpty: () => isPreviousLineEmpty2,
|
|
520
|
-
makeString: () => make_string_default,
|
|
521
|
-
skip: () => skip,
|
|
522
|
-
skipEverythingButNewLine: () => skipEverythingButNewLine,
|
|
523
|
-
skipInlineComment: () => skip_inline_comment_default,
|
|
524
|
-
skipNewline: () => skip_newline_default,
|
|
525
|
-
skipSpaces: () => skipSpaces,
|
|
526
|
-
skipToLineEnd: () => skipToLineEnd,
|
|
527
|
-
skipTrailingComment: () => skip_trailing_comment_default,
|
|
528
|
-
skipWhitespace: () => skipWhitespace
|
|
529
|
-
});
|
|
530
|
-
function legacyGetNextNonSpaceNonCommentCharacterIndex(text, node, locEnd) {
|
|
531
|
-
return get_next_non_space_non_comment_character_index_default(
|
|
532
|
-
text,
|
|
533
|
-
locEnd(node)
|
|
534
|
-
);
|
|
535
|
-
}
|
|
536
|
-
function getNextNonSpaceNonCommentCharacterIndex2(text, startIndex) {
|
|
537
|
-
return arguments.length === 2 || typeof startIndex === "number" ? get_next_non_space_non_comment_character_index_default(text, startIndex) : (
|
|
538
|
-
// @ts-expect-error -- expected
|
|
539
|
-
// eslint-disable-next-line prefer-rest-params
|
|
540
|
-
legacyGetNextNonSpaceNonCommentCharacterIndex(...arguments)
|
|
541
|
-
);
|
|
542
|
-
}
|
|
543
|
-
function legacyIsPreviousLineEmpty(text, node, locStart) {
|
|
544
|
-
return is_previous_line_empty_default(text, locStart(node));
|
|
545
|
-
}
|
|
546
|
-
function isPreviousLineEmpty2(text, startIndex) {
|
|
547
|
-
return arguments.length === 2 || typeof startIndex === "number" ? is_previous_line_empty_default(text, startIndex) : (
|
|
548
|
-
// @ts-expect-error -- expected
|
|
549
|
-
// eslint-disable-next-line prefer-rest-params
|
|
550
|
-
legacyIsPreviousLineEmpty(...arguments)
|
|
551
|
-
);
|
|
552
|
-
}
|
|
553
|
-
function legacyIsNextLineEmpty(text, node, locEnd) {
|
|
554
|
-
return is_next_line_empty_default(text, locEnd(node));
|
|
555
|
-
}
|
|
556
|
-
function isNextLineEmpty2(text, startIndex) {
|
|
557
|
-
return arguments.length === 2 || typeof startIndex === "number" ? is_next_line_empty_default(text, startIndex) : (
|
|
558
|
-
// @ts-expect-error -- expected
|
|
559
|
-
// eslint-disable-next-line prefer-rest-params
|
|
560
|
-
legacyIsNextLineEmpty(...arguments)
|
|
561
|
-
);
|
|
562
|
-
}
|
|
563
|
-
var init_public = __esm({
|
|
564
|
-
"src/utils/public.js"() {
|
|
565
|
-
init_get_next_non_space_non_comment_character_index();
|
|
566
|
-
init_is_next_line_empty();
|
|
567
|
-
init_is_previous_line_empty();
|
|
568
|
-
init_utils();
|
|
569
|
-
init_get_alignment_size();
|
|
570
|
-
init_get_indent_size();
|
|
571
|
-
init_get_max_continuous_count();
|
|
572
|
-
init_get_next_non_space_non_comment_character();
|
|
573
|
-
init_get_string_width();
|
|
574
|
-
init_has_newline();
|
|
575
|
-
init_has_newline_in_range();
|
|
576
|
-
init_has_spaces();
|
|
577
|
-
init_make_string();
|
|
578
|
-
init_skip();
|
|
579
|
-
init_skip_inline_comment();
|
|
580
|
-
init_skip_newline();
|
|
581
|
-
init_skip_trailing_comment();
|
|
582
|
-
}
|
|
583
|
-
});
|
|
584
|
-
|
|
585
|
-
// src/main/version.evaluate.cjs
|
|
586
|
-
var require_version_evaluate = __commonJS({
|
|
587
|
-
"src/main/version.evaluate.cjs"(exports2, module2) {
|
|
588
|
-
module2.exports = "3.3.3";
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
|
|
592
|
-
// src/index.cjs
|
|
593
|
-
var prettierPromise = import("./index.mjs");
|
|
594
|
-
var functionNames = [
|
|
595
|
-
"formatWithCursor",
|
|
596
|
-
"format",
|
|
597
|
-
"check",
|
|
598
|
-
"resolveConfig",
|
|
599
|
-
"resolveConfigFile",
|
|
600
|
-
"clearConfigCache",
|
|
601
|
-
"getFileInfo",
|
|
602
|
-
"getSupportInfo"
|
|
603
|
-
];
|
|
604
|
-
var prettier = /* @__PURE__ */ Object.create(null);
|
|
605
|
-
for (const name of functionNames) {
|
|
606
|
-
prettier[name] = async (...args) => {
|
|
607
|
-
const prettier2 = await prettierPromise;
|
|
608
|
-
return prettier2[name](...args);
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
var debugApiFunctionNames = [
|
|
612
|
-
"parse",
|
|
613
|
-
"formatAST",
|
|
614
|
-
"formatDoc",
|
|
615
|
-
"printToDoc",
|
|
616
|
-
"printDocToString"
|
|
617
|
-
];
|
|
618
|
-
var debugApis = /* @__PURE__ */ Object.create(null);
|
|
619
|
-
for (const name of debugApiFunctionNames) {
|
|
620
|
-
debugApis[name] = async (...args) => {
|
|
621
|
-
const prettier2 = await prettierPromise;
|
|
622
|
-
return prettier2.__debug[name](...args);
|
|
623
|
-
};
|
|
624
|
-
}
|
|
625
|
-
prettier.__debug = debugApis;
|
|
626
|
-
if (true) {
|
|
627
|
-
prettier.util = (init_public(), __toCommonJS(public_exports));
|
|
628
|
-
prettier.doc = require("./doc.js");
|
|
629
|
-
} else {
|
|
630
|
-
Object.defineProperties(prettier, {
|
|
631
|
-
util: {
|
|
632
|
-
get() {
|
|
633
|
-
throw new Error(
|
|
634
|
-
"prettier.util is not available in development CommonJS version"
|
|
635
|
-
);
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
doc: {
|
|
639
|
-
get() {
|
|
640
|
-
throw new Error(
|
|
641
|
-
"prettier.doc is not available in development CommonJS version"
|
|
642
|
-
);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
prettier.version = require_version_evaluate();
|
|
648
|
-
module.exports = prettier;
|