Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js +17 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/re.js +223 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/gtr.js +6 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/intersects.js +9 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/ltr.js +6 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/max-satisfying.js +27 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/min-satisfying.js +26 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/min-version.js +63 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/outside.js +82 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/simplify.js +49 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/subset.js +249 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/to-comparators.js +10 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/valid.js +13 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +48 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +44 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +76 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +48 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +84 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +101 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts +6 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +21 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +32 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +59 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +17 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +51 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +19 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +21 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts +5 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +20 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts +7 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +11 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +69 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +108 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +10 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +2 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +28 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +1 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +45 -0
- platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts +9 -0
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/parse-options.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
// parse out just the options we care about
|
| 4 |
+
const looseOption = Object.freeze({ loose: true })
|
| 5 |
+
const emptyOpts = Object.freeze({ })
|
| 6 |
+
const parseOptions = options => {
|
| 7 |
+
if (!options) {
|
| 8 |
+
return emptyOpts
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
if (typeof options !== 'object') {
|
| 12 |
+
return looseOption
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
return options
|
| 16 |
+
}
|
| 17 |
+
module.exports = parseOptions
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/internal/re.js
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const {
|
| 4 |
+
MAX_SAFE_COMPONENT_LENGTH,
|
| 5 |
+
MAX_SAFE_BUILD_LENGTH,
|
| 6 |
+
MAX_LENGTH,
|
| 7 |
+
} = require('./constants')
|
| 8 |
+
const debug = require('./debug')
|
| 9 |
+
exports = module.exports = {}
|
| 10 |
+
|
| 11 |
+
// The actual regexps go on exports.re
|
| 12 |
+
const re = exports.re = []
|
| 13 |
+
const safeRe = exports.safeRe = []
|
| 14 |
+
const src = exports.src = []
|
| 15 |
+
const safeSrc = exports.safeSrc = []
|
| 16 |
+
const t = exports.t = {}
|
| 17 |
+
let R = 0
|
| 18 |
+
|
| 19 |
+
const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
|
| 20 |
+
|
| 21 |
+
// Replace some greedy regex tokens to prevent regex dos issues. These regex are
|
| 22 |
+
// used internally via the safeRe object since all inputs in this library get
|
| 23 |
+
// normalized first to trim and collapse all extra whitespace. The original
|
| 24 |
+
// regexes are exported for userland consumption and lower level usage. A
|
| 25 |
+
// future breaking change could export the safer regex only with a note that
|
| 26 |
+
// all input should have extra whitespace removed.
|
| 27 |
+
const safeRegexReplacements = [
|
| 28 |
+
['\\s', 1],
|
| 29 |
+
['\\d', MAX_LENGTH],
|
| 30 |
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
|
| 31 |
+
]
|
| 32 |
+
|
| 33 |
+
const makeSafeRegex = (value) => {
|
| 34 |
+
for (const [token, max] of safeRegexReplacements) {
|
| 35 |
+
value = value
|
| 36 |
+
.split(`${token}*`).join(`${token}{0,${max}}`)
|
| 37 |
+
.split(`${token}+`).join(`${token}{1,${max}}`)
|
| 38 |
+
}
|
| 39 |
+
return value
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
const createToken = (name, value, isGlobal) => {
|
| 43 |
+
const safe = makeSafeRegex(value)
|
| 44 |
+
const index = R++
|
| 45 |
+
debug(name, index, value)
|
| 46 |
+
t[name] = index
|
| 47 |
+
src[index] = value
|
| 48 |
+
safeSrc[index] = safe
|
| 49 |
+
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
|
| 50 |
+
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
// The following Regular Expressions can be used for tokenizing,
|
| 54 |
+
// validating, and parsing SemVer version strings.
|
| 55 |
+
|
| 56 |
+
// ## Numeric Identifier
|
| 57 |
+
// A single `0`, or a non-zero digit followed by zero or more digits.
|
| 58 |
+
|
| 59 |
+
createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*')
|
| 60 |
+
createToken('NUMERICIDENTIFIERLOOSE', '\\d+')
|
| 61 |
+
|
| 62 |
+
// ## Non-numeric Identifier
|
| 63 |
+
// Zero or more digits, followed by a letter or hyphen, and then zero or
|
| 64 |
+
// more letters, digits, or hyphens.
|
| 65 |
+
|
| 66 |
+
createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)
|
| 67 |
+
|
| 68 |
+
// ## Main Version
|
| 69 |
+
// Three dot-separated numeric identifiers.
|
| 70 |
+
|
| 71 |
+
createToken('MAINVERSION', `(${src[t.NUMERICIDENTIFIER]})\\.` +
|
| 72 |
+
`(${src[t.NUMERICIDENTIFIER]})\\.` +
|
| 73 |
+
`(${src[t.NUMERICIDENTIFIER]})`)
|
| 74 |
+
|
| 75 |
+
createToken('MAINVERSIONLOOSE', `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
|
| 76 |
+
`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.` +
|
| 77 |
+
`(${src[t.NUMERICIDENTIFIERLOOSE]})`)
|
| 78 |
+
|
| 79 |
+
// ## Pre-release Version Identifier
|
| 80 |
+
// A numeric identifier, or a non-numeric identifier.
|
| 81 |
+
// Non-numberic identifiers include numberic identifiers but can be longer.
|
| 82 |
+
// Therefore non-numberic identifiers must go first.
|
| 83 |
+
|
| 84 |
+
createToken('PRERELEASEIDENTIFIER', `(?:${src[t.NONNUMERICIDENTIFIER]
|
| 85 |
+
}|${src[t.NUMERICIDENTIFIER]})`)
|
| 86 |
+
|
| 87 |
+
createToken('PRERELEASEIDENTIFIERLOOSE', `(?:${src[t.NONNUMERICIDENTIFIER]
|
| 88 |
+
}|${src[t.NUMERICIDENTIFIERLOOSE]})`)
|
| 89 |
+
|
| 90 |
+
// ## Pre-release Version
|
| 91 |
+
// Hyphen, followed by one or more dot-separated pre-release version
|
| 92 |
+
// identifiers.
|
| 93 |
+
|
| 94 |
+
createToken('PRERELEASE', `(?:-(${src[t.PRERELEASEIDENTIFIER]
|
| 95 |
+
}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`)
|
| 96 |
+
|
| 97 |
+
createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
|
| 98 |
+
}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`)
|
| 99 |
+
|
| 100 |
+
// ## Build Metadata Identifier
|
| 101 |
+
// Any combination of digits, letters, or hyphens.
|
| 102 |
+
|
| 103 |
+
createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)
|
| 104 |
+
|
| 105 |
+
// ## Build Metadata
|
| 106 |
+
// Plus sign, followed by one or more period-separated build metadata
|
| 107 |
+
// identifiers.
|
| 108 |
+
|
| 109 |
+
createToken('BUILD', `(?:\\+(${src[t.BUILDIDENTIFIER]
|
| 110 |
+
}(?:\\.${src[t.BUILDIDENTIFIER]})*))`)
|
| 111 |
+
|
| 112 |
+
// ## Full Version String
|
| 113 |
+
// A main version, followed optionally by a pre-release version and
|
| 114 |
+
// build metadata.
|
| 115 |
+
|
| 116 |
+
// Note that the only major, minor, patch, and pre-release sections of
|
| 117 |
+
// the version string are capturing groups. The build metadata is not a
|
| 118 |
+
// capturing group, because it should not ever be used in version
|
| 119 |
+
// comparison.
|
| 120 |
+
|
| 121 |
+
createToken('FULLPLAIN', `v?${src[t.MAINVERSION]
|
| 122 |
+
}${src[t.PRERELEASE]}?${
|
| 123 |
+
src[t.BUILD]}?`)
|
| 124 |
+
|
| 125 |
+
createToken('FULL', `^${src[t.FULLPLAIN]}$`)
|
| 126 |
+
|
| 127 |
+
// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
|
| 128 |
+
// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
|
| 129 |
+
// common in the npm registry.
|
| 130 |
+
createToken('LOOSEPLAIN', `[v=\\s]*${src[t.MAINVERSIONLOOSE]
|
| 131 |
+
}${src[t.PRERELEASELOOSE]}?${
|
| 132 |
+
src[t.BUILD]}?`)
|
| 133 |
+
|
| 134 |
+
createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
|
| 135 |
+
|
| 136 |
+
createToken('GTLT', '((?:<|>)?=?)')
|
| 137 |
+
|
| 138 |
+
// Something like "2.*" or "1.2.x".
|
| 139 |
+
// Note that "x.x" is a valid xRange identifer, meaning "any version"
|
| 140 |
+
// Only the first item is strictly required.
|
| 141 |
+
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
|
| 142 |
+
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
|
| 143 |
+
|
| 144 |
+
createToken('XRANGEPLAIN', `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})` +
|
| 145 |
+
`(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
|
| 146 |
+
`(?:\\.(${src[t.XRANGEIDENTIFIER]})` +
|
| 147 |
+
`(?:${src[t.PRERELEASE]})?${
|
| 148 |
+
src[t.BUILD]}?` +
|
| 149 |
+
`)?)?`)
|
| 150 |
+
|
| 151 |
+
createToken('XRANGEPLAINLOOSE', `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})` +
|
| 152 |
+
`(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
|
| 153 |
+
`(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})` +
|
| 154 |
+
`(?:${src[t.PRERELEASELOOSE]})?${
|
| 155 |
+
src[t.BUILD]}?` +
|
| 156 |
+
`)?)?`)
|
| 157 |
+
|
| 158 |
+
createToken('XRANGE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`)
|
| 159 |
+
createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`)
|
| 160 |
+
|
| 161 |
+
// Coercion.
|
| 162 |
+
// Extract anything that could conceivably be a part of a valid semver
|
| 163 |
+
createToken('COERCEPLAIN', `${'(^|[^\\d])' +
|
| 164 |
+
'(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` +
|
| 165 |
+
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` +
|
| 166 |
+
`(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`)
|
| 167 |
+
createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`)
|
| 168 |
+
createToken('COERCEFULL', src[t.COERCEPLAIN] +
|
| 169 |
+
`(?:${src[t.PRERELEASE]})?` +
|
| 170 |
+
`(?:${src[t.BUILD]})?` +
|
| 171 |
+
`(?:$|[^\\d])`)
|
| 172 |
+
createToken('COERCERTL', src[t.COERCE], true)
|
| 173 |
+
createToken('COERCERTLFULL', src[t.COERCEFULL], true)
|
| 174 |
+
|
| 175 |
+
// Tilde ranges.
|
| 176 |
+
// Meaning is "reasonably at or greater than"
|
| 177 |
+
createToken('LONETILDE', '(?:~>?)')
|
| 178 |
+
|
| 179 |
+
createToken('TILDETRIM', `(\\s*)${src[t.LONETILDE]}\\s+`, true)
|
| 180 |
+
exports.tildeTrimReplace = '$1~'
|
| 181 |
+
|
| 182 |
+
createToken('TILDE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`)
|
| 183 |
+
createToken('TILDELOOSE', `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`)
|
| 184 |
+
|
| 185 |
+
// Caret ranges.
|
| 186 |
+
// Meaning is "at least and backwards compatible with"
|
| 187 |
+
createToken('LONECARET', '(?:\\^)')
|
| 188 |
+
|
| 189 |
+
createToken('CARETTRIM', `(\\s*)${src[t.LONECARET]}\\s+`, true)
|
| 190 |
+
exports.caretTrimReplace = '$1^'
|
| 191 |
+
|
| 192 |
+
createToken('CARET', `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`)
|
| 193 |
+
createToken('CARETLOOSE', `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`)
|
| 194 |
+
|
| 195 |
+
// A simple gt/lt/eq thing, or just "" to indicate "any version"
|
| 196 |
+
createToken('COMPARATORLOOSE', `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`)
|
| 197 |
+
createToken('COMPARATOR', `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`)
|
| 198 |
+
|
| 199 |
+
// An expression to strip any whitespace between the gtlt and the thing
|
| 200 |
+
// it modifies, so that `> 1.2.3` ==> `>1.2.3`
|
| 201 |
+
createToken('COMPARATORTRIM', `(\\s*)${src[t.GTLT]
|
| 202 |
+
}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true)
|
| 203 |
+
exports.comparatorTrimReplace = '$1$2$3'
|
| 204 |
+
|
| 205 |
+
// Something like `1.2.3 - 1.2.4`
|
| 206 |
+
// Note that these all use the loose form, because they'll be
|
| 207 |
+
// checked against either the strict or loose comparator form
|
| 208 |
+
// later.
|
| 209 |
+
createToken('HYPHENRANGE', `^\\s*(${src[t.XRANGEPLAIN]})` +
|
| 210 |
+
`\\s+-\\s+` +
|
| 211 |
+
`(${src[t.XRANGEPLAIN]})` +
|
| 212 |
+
`\\s*$`)
|
| 213 |
+
|
| 214 |
+
createToken('HYPHENRANGELOOSE', `^\\s*(${src[t.XRANGEPLAINLOOSE]})` +
|
| 215 |
+
`\\s+-\\s+` +
|
| 216 |
+
`(${src[t.XRANGEPLAINLOOSE]})` +
|
| 217 |
+
`\\s*$`)
|
| 218 |
+
|
| 219 |
+
// Star ranges basically just allow anything at all.
|
| 220 |
+
createToken('STAR', '(<|>)?=?\\s*\\*')
|
| 221 |
+
// >=0.0.0 is like a star
|
| 222 |
+
createToken('GTE0', '^\\s*>=\\s*0\\.0\\.0\\s*$')
|
| 223 |
+
createToken('GTE0PRE', '^\\s*>=\\s*0\\.0\\.0-0\\s*$')
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/gtr.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
// Determine if version is greater than all the versions possible in the range.
|
| 4 |
+
const outside = require('./outside')
|
| 5 |
+
const gtr = (version, range, options) => outside(version, range, '>', options)
|
| 6 |
+
module.exports = gtr
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/intersects.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const Range = require('../classes/range')
|
| 4 |
+
const intersects = (r1, r2, options) => {
|
| 5 |
+
r1 = new Range(r1, options)
|
| 6 |
+
r2 = new Range(r2, options)
|
| 7 |
+
return r1.intersects(r2, options)
|
| 8 |
+
}
|
| 9 |
+
module.exports = intersects
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/ltr.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const outside = require('./outside')
|
| 4 |
+
// Determine if version is less than all the versions possible in the range
|
| 5 |
+
const ltr = (version, range, options) => outside(version, range, '<', options)
|
| 6 |
+
module.exports = ltr
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/max-satisfying.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const SemVer = require('../classes/semver')
|
| 4 |
+
const Range = require('../classes/range')
|
| 5 |
+
|
| 6 |
+
const maxSatisfying = (versions, range, options) => {
|
| 7 |
+
let max = null
|
| 8 |
+
let maxSV = null
|
| 9 |
+
let rangeObj = null
|
| 10 |
+
try {
|
| 11 |
+
rangeObj = new Range(range, options)
|
| 12 |
+
} catch (er) {
|
| 13 |
+
return null
|
| 14 |
+
}
|
| 15 |
+
versions.forEach((v) => {
|
| 16 |
+
if (rangeObj.test(v)) {
|
| 17 |
+
// satisfies(v, range, options)
|
| 18 |
+
if (!max || maxSV.compare(v) === -1) {
|
| 19 |
+
// compare(max, v, true)
|
| 20 |
+
max = v
|
| 21 |
+
maxSV = new SemVer(max, options)
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
})
|
| 25 |
+
return max
|
| 26 |
+
}
|
| 27 |
+
module.exports = maxSatisfying
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/min-satisfying.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const SemVer = require('../classes/semver')
|
| 4 |
+
const Range = require('../classes/range')
|
| 5 |
+
const minSatisfying = (versions, range, options) => {
|
| 6 |
+
let min = null
|
| 7 |
+
let minSV = null
|
| 8 |
+
let rangeObj = null
|
| 9 |
+
try {
|
| 10 |
+
rangeObj = new Range(range, options)
|
| 11 |
+
} catch (er) {
|
| 12 |
+
return null
|
| 13 |
+
}
|
| 14 |
+
versions.forEach((v) => {
|
| 15 |
+
if (rangeObj.test(v)) {
|
| 16 |
+
// satisfies(v, range, options)
|
| 17 |
+
if (!min || minSV.compare(v) === 1) {
|
| 18 |
+
// compare(min, v, true)
|
| 19 |
+
min = v
|
| 20 |
+
minSV = new SemVer(min, options)
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
})
|
| 24 |
+
return min
|
| 25 |
+
}
|
| 26 |
+
module.exports = minSatisfying
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/min-version.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const SemVer = require('../classes/semver')
|
| 4 |
+
const Range = require('../classes/range')
|
| 5 |
+
const gt = require('../functions/gt')
|
| 6 |
+
|
| 7 |
+
const minVersion = (range, loose) => {
|
| 8 |
+
range = new Range(range, loose)
|
| 9 |
+
|
| 10 |
+
let minver = new SemVer('0.0.0')
|
| 11 |
+
if (range.test(minver)) {
|
| 12 |
+
return minver
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
minver = new SemVer('0.0.0-0')
|
| 16 |
+
if (range.test(minver)) {
|
| 17 |
+
return minver
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
minver = null
|
| 21 |
+
for (let i = 0; i < range.set.length; ++i) {
|
| 22 |
+
const comparators = range.set[i]
|
| 23 |
+
|
| 24 |
+
let setMin = null
|
| 25 |
+
comparators.forEach((comparator) => {
|
| 26 |
+
// Clone to avoid manipulating the comparator's semver object.
|
| 27 |
+
const compver = new SemVer(comparator.semver.version)
|
| 28 |
+
switch (comparator.operator) {
|
| 29 |
+
case '>':
|
| 30 |
+
if (compver.prerelease.length === 0) {
|
| 31 |
+
compver.patch++
|
| 32 |
+
} else {
|
| 33 |
+
compver.prerelease.push(0)
|
| 34 |
+
}
|
| 35 |
+
compver.raw = compver.format()
|
| 36 |
+
/* fallthrough */
|
| 37 |
+
case '':
|
| 38 |
+
case '>=':
|
| 39 |
+
if (!setMin || gt(compver, setMin)) {
|
| 40 |
+
setMin = compver
|
| 41 |
+
}
|
| 42 |
+
break
|
| 43 |
+
case '<':
|
| 44 |
+
case '<=':
|
| 45 |
+
/* Ignore maximum versions */
|
| 46 |
+
break
|
| 47 |
+
/* istanbul ignore next */
|
| 48 |
+
default:
|
| 49 |
+
throw new Error(`Unexpected operation: ${comparator.operator}`)
|
| 50 |
+
}
|
| 51 |
+
})
|
| 52 |
+
if (setMin && (!minver || gt(minver, setMin))) {
|
| 53 |
+
minver = setMin
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
if (minver && range.test(minver)) {
|
| 58 |
+
return minver
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
return null
|
| 62 |
+
}
|
| 63 |
+
module.exports = minVersion
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/outside.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const SemVer = require('../classes/semver')
|
| 4 |
+
const Comparator = require('../classes/comparator')
|
| 5 |
+
const { ANY } = Comparator
|
| 6 |
+
const Range = require('../classes/range')
|
| 7 |
+
const satisfies = require('../functions/satisfies')
|
| 8 |
+
const gt = require('../functions/gt')
|
| 9 |
+
const lt = require('../functions/lt')
|
| 10 |
+
const lte = require('../functions/lte')
|
| 11 |
+
const gte = require('../functions/gte')
|
| 12 |
+
|
| 13 |
+
const outside = (version, range, hilo, options) => {
|
| 14 |
+
version = new SemVer(version, options)
|
| 15 |
+
range = new Range(range, options)
|
| 16 |
+
|
| 17 |
+
let gtfn, ltefn, ltfn, comp, ecomp
|
| 18 |
+
switch (hilo) {
|
| 19 |
+
case '>':
|
| 20 |
+
gtfn = gt
|
| 21 |
+
ltefn = lte
|
| 22 |
+
ltfn = lt
|
| 23 |
+
comp = '>'
|
| 24 |
+
ecomp = '>='
|
| 25 |
+
break
|
| 26 |
+
case '<':
|
| 27 |
+
gtfn = lt
|
| 28 |
+
ltefn = gte
|
| 29 |
+
ltfn = gt
|
| 30 |
+
comp = '<'
|
| 31 |
+
ecomp = '<='
|
| 32 |
+
break
|
| 33 |
+
default:
|
| 34 |
+
throw new TypeError('Must provide a hilo val of "<" or ">"')
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
// If it satisfies the range it is not outside
|
| 38 |
+
if (satisfies(version, range, options)) {
|
| 39 |
+
return false
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
// From now on, variable terms are as if we're in "gtr" mode.
|
| 43 |
+
// but note that everything is flipped for the "ltr" function.
|
| 44 |
+
|
| 45 |
+
for (let i = 0; i < range.set.length; ++i) {
|
| 46 |
+
const comparators = range.set[i]
|
| 47 |
+
|
| 48 |
+
let high = null
|
| 49 |
+
let low = null
|
| 50 |
+
|
| 51 |
+
comparators.forEach((comparator) => {
|
| 52 |
+
if (comparator.semver === ANY) {
|
| 53 |
+
comparator = new Comparator('>=0.0.0')
|
| 54 |
+
}
|
| 55 |
+
high = high || comparator
|
| 56 |
+
low = low || comparator
|
| 57 |
+
if (gtfn(comparator.semver, high.semver, options)) {
|
| 58 |
+
high = comparator
|
| 59 |
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
| 60 |
+
low = comparator
|
| 61 |
+
}
|
| 62 |
+
})
|
| 63 |
+
|
| 64 |
+
// If the edge version comparator has a operator then our version
|
| 65 |
+
// isn't outside it
|
| 66 |
+
if (high.operator === comp || high.operator === ecomp) {
|
| 67 |
+
return false
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
// If the lowest version comparator has an operator and our version
|
| 71 |
+
// is less than it then it isn't higher than the range
|
| 72 |
+
if ((!low.operator || low.operator === comp) &&
|
| 73 |
+
ltefn(version, low.semver)) {
|
| 74 |
+
return false
|
| 75 |
+
} else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
| 76 |
+
return false
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
return true
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
module.exports = outside
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/simplify.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
// given a set of versions and a range, create a "simplified" range
|
| 4 |
+
// that includes the same versions that the original range does
|
| 5 |
+
// If the original range is shorter than the simplified one, return that.
|
| 6 |
+
const satisfies = require('../functions/satisfies.js')
|
| 7 |
+
const compare = require('../functions/compare.js')
|
| 8 |
+
module.exports = (versions, range, options) => {
|
| 9 |
+
const set = []
|
| 10 |
+
let first = null
|
| 11 |
+
let prev = null
|
| 12 |
+
const v = versions.sort((a, b) => compare(a, b, options))
|
| 13 |
+
for (const version of v) {
|
| 14 |
+
const included = satisfies(version, range, options)
|
| 15 |
+
if (included) {
|
| 16 |
+
prev = version
|
| 17 |
+
if (!first) {
|
| 18 |
+
first = version
|
| 19 |
+
}
|
| 20 |
+
} else {
|
| 21 |
+
if (prev) {
|
| 22 |
+
set.push([first, prev])
|
| 23 |
+
}
|
| 24 |
+
prev = null
|
| 25 |
+
first = null
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
if (first) {
|
| 29 |
+
set.push([first, null])
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
const ranges = []
|
| 33 |
+
for (const [min, max] of set) {
|
| 34 |
+
if (min === max) {
|
| 35 |
+
ranges.push(min)
|
| 36 |
+
} else if (!max && min === v[0]) {
|
| 37 |
+
ranges.push('*')
|
| 38 |
+
} else if (!max) {
|
| 39 |
+
ranges.push(`>=${min}`)
|
| 40 |
+
} else if (min === v[0]) {
|
| 41 |
+
ranges.push(`<=${max}`)
|
| 42 |
+
} else {
|
| 43 |
+
ranges.push(`${min} - ${max}`)
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
const simplified = ranges.join(' || ')
|
| 47 |
+
const original = typeof range.raw === 'string' ? range.raw : String(range)
|
| 48 |
+
return simplified.length < original.length ? simplified : range
|
| 49 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/sub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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const Range = require('../classes/range.js')
|
| 4 |
+
const Comparator = require('../classes/comparator.js')
|
| 5 |
+
const { ANY } = Comparator
|
| 6 |
+
const satisfies = require('../functions/satisfies.js')
|
| 7 |
+
const compare = require('../functions/compare.js')
|
| 8 |
+
|
| 9 |
+
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
|
| 10 |
+
// - Every simple range `r1, r2, ...` is a null set, OR
|
| 11 |
+
// - Every simple range `r1, r2, ...` which is not a null set is a subset of
|
| 12 |
+
// some `R1, R2, ...`
|
| 13 |
+
//
|
| 14 |
+
// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
|
| 15 |
+
// - If c is only the ANY comparator
|
| 16 |
+
// - If C is only the ANY comparator, return true
|
| 17 |
+
// - Else if in prerelease mode, return false
|
| 18 |
+
// - else replace c with `[>=0.0.0]`
|
| 19 |
+
// - If C is only the ANY comparator
|
| 20 |
+
// - if in prerelease mode, return true
|
| 21 |
+
// - else replace C with `[>=0.0.0]`
|
| 22 |
+
// - Let EQ be the set of = comparators in c
|
| 23 |
+
// - If EQ is more than one, return true (null set)
|
| 24 |
+
// - Let GT be the highest > or >= comparator in c
|
| 25 |
+
// - Let LT be the lowest < or <= comparator in c
|
| 26 |
+
// - If GT and LT, and GT.semver > LT.semver, return true (null set)
|
| 27 |
+
// - If any C is a = range, and GT or LT are set, return false
|
| 28 |
+
// - If EQ
|
| 29 |
+
// - If GT, and EQ does not satisfy GT, return true (null set)
|
| 30 |
+
// - If LT, and EQ does not satisfy LT, return true (null set)
|
| 31 |
+
// - If EQ satisfies every C, return true
|
| 32 |
+
// - Else return false
|
| 33 |
+
// - If GT
|
| 34 |
+
// - If GT.semver is lower than any > or >= comp in C, return false
|
| 35 |
+
// - If GT is >=, and GT.semver does not satisfy every C, return false
|
| 36 |
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
| 37 |
+
// - If no C has a prerelease and the GT.semver tuple, return false
|
| 38 |
+
// - If LT
|
| 39 |
+
// - If LT.semver is greater than any < or <= comp in C, return false
|
| 40 |
+
// - If LT is <=, and LT.semver does not satisfy every C, return false
|
| 41 |
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
| 42 |
+
// - If no C has a prerelease and the LT.semver tuple, return false
|
| 43 |
+
// - Else return true
|
| 44 |
+
|
| 45 |
+
const subset = (sub, dom, options = {}) => {
|
| 46 |
+
if (sub === dom) {
|
| 47 |
+
return true
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
sub = new Range(sub, options)
|
| 51 |
+
dom = new Range(dom, options)
|
| 52 |
+
let sawNonNull = false
|
| 53 |
+
|
| 54 |
+
OUTER: for (const simpleSub of sub.set) {
|
| 55 |
+
for (const simpleDom of dom.set) {
|
| 56 |
+
const isSub = simpleSubset(simpleSub, simpleDom, options)
|
| 57 |
+
sawNonNull = sawNonNull || isSub !== null
|
| 58 |
+
if (isSub) {
|
| 59 |
+
continue OUTER
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
// the null set is a subset of everything, but null simple ranges in
|
| 63 |
+
// a complex range should be ignored. so if we saw a non-null range,
|
| 64 |
+
// then we know this isn't a subset, but if EVERY simple range was null,
|
| 65 |
+
// then it is a subset.
|
| 66 |
+
if (sawNonNull) {
|
| 67 |
+
return false
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
return true
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
const minimumVersionWithPreRelease = [new Comparator('>=0.0.0-0')]
|
| 74 |
+
const minimumVersion = [new Comparator('>=0.0.0')]
|
| 75 |
+
|
| 76 |
+
const simpleSubset = (sub, dom, options) => {
|
| 77 |
+
if (sub === dom) {
|
| 78 |
+
return true
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
| 82 |
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
| 83 |
+
return true
|
| 84 |
+
} else if (options.includePrerelease) {
|
| 85 |
+
sub = minimumVersionWithPreRelease
|
| 86 |
+
} else {
|
| 87 |
+
sub = minimumVersion
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
| 92 |
+
if (options.includePrerelease) {
|
| 93 |
+
return true
|
| 94 |
+
} else {
|
| 95 |
+
dom = minimumVersion
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
const eqSet = new Set()
|
| 100 |
+
let gt, lt
|
| 101 |
+
for (const c of sub) {
|
| 102 |
+
if (c.operator === '>' || c.operator === '>=') {
|
| 103 |
+
gt = higherGT(gt, c, options)
|
| 104 |
+
} else if (c.operator === '<' || c.operator === '<=') {
|
| 105 |
+
lt = lowerLT(lt, c, options)
|
| 106 |
+
} else {
|
| 107 |
+
eqSet.add(c.semver)
|
| 108 |
+
}
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
if (eqSet.size > 1) {
|
| 112 |
+
return null
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
let gtltComp
|
| 116 |
+
if (gt && lt) {
|
| 117 |
+
gtltComp = compare(gt.semver, lt.semver, options)
|
| 118 |
+
if (gtltComp > 0) {
|
| 119 |
+
return null
|
| 120 |
+
} else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
|
| 121 |
+
return null
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
// will iterate one or zero times
|
| 126 |
+
for (const eq of eqSet) {
|
| 127 |
+
if (gt && !satisfies(eq, String(gt), options)) {
|
| 128 |
+
return null
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
if (lt && !satisfies(eq, String(lt), options)) {
|
| 132 |
+
return null
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
for (const c of dom) {
|
| 136 |
+
if (!satisfies(eq, String(c), options)) {
|
| 137 |
+
return false
|
| 138 |
+
}
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
return true
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
let higher, lower
|
| 145 |
+
let hasDomLT, hasDomGT
|
| 146 |
+
// if the subset has a prerelease, we need a comparator in the superset
|
| 147 |
+
// with the same tuple and a prerelease, or it's not a subset
|
| 148 |
+
let needDomLTPre = lt &&
|
| 149 |
+
!options.includePrerelease &&
|
| 150 |
+
lt.semver.prerelease.length ? lt.semver : false
|
| 151 |
+
let needDomGTPre = gt &&
|
| 152 |
+
!options.includePrerelease &&
|
| 153 |
+
gt.semver.prerelease.length ? gt.semver : false
|
| 154 |
+
// exception: <1.2.3-0 is the same as <1.2.3
|
| 155 |
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
|
| 156 |
+
lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
|
| 157 |
+
needDomLTPre = false
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
for (const c of dom) {
|
| 161 |
+
hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='
|
| 162 |
+
hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='
|
| 163 |
+
if (gt) {
|
| 164 |
+
if (needDomGTPre) {
|
| 165 |
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
| 166 |
+
c.semver.major === needDomGTPre.major &&
|
| 167 |
+
c.semver.minor === needDomGTPre.minor &&
|
| 168 |
+
c.semver.patch === needDomGTPre.patch) {
|
| 169 |
+
needDomGTPre = false
|
| 170 |
+
}
|
| 171 |
+
}
|
| 172 |
+
if (c.operator === '>' || c.operator === '>=') {
|
| 173 |
+
higher = higherGT(gt, c, options)
|
| 174 |
+
if (higher === c && higher !== gt) {
|
| 175 |
+
return false
|
| 176 |
+
}
|
| 177 |
+
} else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
|
| 178 |
+
return false
|
| 179 |
+
}
|
| 180 |
+
}
|
| 181 |
+
if (lt) {
|
| 182 |
+
if (needDomLTPre) {
|
| 183 |
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
| 184 |
+
c.semver.major === needDomLTPre.major &&
|
| 185 |
+
c.semver.minor === needDomLTPre.minor &&
|
| 186 |
+
c.semver.patch === needDomLTPre.patch) {
|
| 187 |
+
needDomLTPre = false
|
| 188 |
+
}
|
| 189 |
+
}
|
| 190 |
+
if (c.operator === '<' || c.operator === '<=') {
|
| 191 |
+
lower = lowerLT(lt, c, options)
|
| 192 |
+
if (lower === c && lower !== lt) {
|
| 193 |
+
return false
|
| 194 |
+
}
|
| 195 |
+
} else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
|
| 196 |
+
return false
|
| 197 |
+
}
|
| 198 |
+
}
|
| 199 |
+
if (!c.operator && (lt || gt) && gtltComp !== 0) {
|
| 200 |
+
return false
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
// if there was a < or >, and nothing in the dom, then must be false
|
| 205 |
+
// UNLESS it was limited by another range in the other direction.
|
| 206 |
+
// Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
|
| 207 |
+
if (gt && hasDomLT && !lt && gtltComp !== 0) {
|
| 208 |
+
return false
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
if (lt && hasDomGT && !gt && gtltComp !== 0) {
|
| 212 |
+
return false
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
// we needed a prerelease range in a specific tuple, but didn't get one
|
| 216 |
+
// then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
|
| 217 |
+
// because it includes prereleases in the 1.2.3 tuple
|
| 218 |
+
if (needDomGTPre || needDomLTPre) {
|
| 219 |
+
return false
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
return true
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
// >=1.2.3 is lower than >1.2.3
|
| 226 |
+
const higherGT = (a, b, options) => {
|
| 227 |
+
if (!a) {
|
| 228 |
+
return b
|
| 229 |
+
}
|
| 230 |
+
const comp = compare(a.semver, b.semver, options)
|
| 231 |
+
return comp > 0 ? a
|
| 232 |
+
: comp < 0 ? b
|
| 233 |
+
: b.operator === '>' && a.operator === '>=' ? b
|
| 234 |
+
: a
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
// <=1.2.3 is higher than <1.2.3
|
| 238 |
+
const lowerLT = (a, b, options) => {
|
| 239 |
+
if (!a) {
|
| 240 |
+
return b
|
| 241 |
+
}
|
| 242 |
+
const comp = compare(a.semver, b.semver, options)
|
| 243 |
+
return comp < 0 ? a
|
| 244 |
+
: comp > 0 ? b
|
| 245 |
+
: b.operator === '<' && a.operator === '<=' ? b
|
| 246 |
+
: a
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
module.exports = subset
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/to-comparators.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const Range = require('../classes/range')
|
| 4 |
+
|
| 5 |
+
// Mostly just for testing and legacy API reasons
|
| 6 |
+
const toComparators = (range, options) =>
|
| 7 |
+
new Range(range, options).set
|
| 8 |
+
.map(comp => comp.map(c => c.value).join(' ').trim().split(' '))
|
| 9 |
+
|
| 10 |
+
module.exports = toComparators
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/typescript-estree/node_modules/semver/ranges/valid.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'use strict'
|
| 2 |
+
|
| 3 |
+
const Range = require('../classes/range')
|
| 4 |
+
const validRange = (range, options) => {
|
| 5 |
+
try {
|
| 6 |
+
// Return '*' instead of '' so that truthiness works.
|
| 7 |
+
// This will throw if it's invalid anyway
|
| 8 |
+
return new Range(range, options).range || '*'
|
| 9 |
+
} catch (er) {
|
| 10 |
+
return null
|
| 11 |
+
}
|
| 12 |
+
}
|
| 13 |
+
module.exports = validRange
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface PatternMatcher {
|
| 2 |
+
/**
|
| 3 |
+
* Replace all matched parts by a given replacer.
|
| 4 |
+
*
|
| 5 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-symbol-replace}
|
| 6 |
+
* @example
|
| 7 |
+
* const { PatternMatcher } = require("eslint-utils")
|
| 8 |
+
* const matcher = new PatternMatcher(/\\p{Script=Greek}/g)
|
| 9 |
+
*
|
| 10 |
+
* module.exports = {
|
| 11 |
+
* meta: {},
|
| 12 |
+
* create(context) {
|
| 13 |
+
* return {
|
| 14 |
+
* "Literal[regex]"(node) {
|
| 15 |
+
* const replacedPattern = node.regex.pattern.replace(
|
| 16 |
+
* matcher,
|
| 17 |
+
* "[\\u0370-\\u0373\\u0375-\\u0377\\u037A-\\u037D\\u037F\\u0384\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03E1\\u03F0-\\u03FF\\u1D26-\\u1D2A\\u1D5D-\\u1D61\\u1D66-\\u1D6A\\u1DBF\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FC4\\u1FC6-\\u1FD3\\u1FD6-\\u1FDB\\u1FDD-\\u1FEF\\u1FF2-\\u1FF4\\u1FF6-\\u1FFE\\u2126\\uAB65]|\\uD800[\\uDD40-\\uDD8E\\uDDA0]|\\uD834[\\uDE00-\\uDE45]"
|
| 18 |
+
* )
|
| 19 |
+
* },
|
| 20 |
+
* }
|
| 21 |
+
* },
|
| 22 |
+
* }
|
| 23 |
+
*/
|
| 24 |
+
[Symbol.replace](str: string, replacer: string | ((...strs: string[]) => string)): string;
|
| 25 |
+
/**
|
| 26 |
+
* Iterate all matched parts in a given string.
|
| 27 |
+
*
|
| 28 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-execall}
|
| 29 |
+
*/
|
| 30 |
+
execAll(str: string): IterableIterator<RegExpExecArray>;
|
| 31 |
+
/**
|
| 32 |
+
* Check whether this pattern matches a given string or not.
|
| 33 |
+
*
|
| 34 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-test}
|
| 35 |
+
*/
|
| 36 |
+
test(str: string): boolean;
|
| 37 |
+
}
|
| 38 |
+
/**
|
| 39 |
+
* The class to find a pattern in strings as handling escape sequences.
|
| 40 |
+
* It ignores the found pattern if it's escaped with `\`.
|
| 41 |
+
*
|
| 42 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class}
|
| 43 |
+
*/
|
| 44 |
+
export declare const PatternMatcher: new (pattern: RegExp, options?: {
|
| 45 |
+
escaped?: boolean;
|
| 46 |
+
}) => PatternMatcher;
|
| 47 |
+
export {};
|
| 48 |
+
//# sourceMappingURL=PatternMatcher.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"PatternMatcher.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GACjD,MAAM,CAAC;IAEV;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAiC,KAC1D,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5B,cAAc,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
| 14 |
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
| 15 |
+
}) : function(o, v) {
|
| 16 |
+
o["default"] = v;
|
| 17 |
+
});
|
| 18 |
+
var __importStar = (this && this.__importStar) || (function () {
|
| 19 |
+
var ownKeys = function(o) {
|
| 20 |
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
| 21 |
+
var ar = [];
|
| 22 |
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
| 23 |
+
return ar;
|
| 24 |
+
};
|
| 25 |
+
return ownKeys(o);
|
| 26 |
+
};
|
| 27 |
+
return function (mod) {
|
| 28 |
+
if (mod && mod.__esModule) return mod;
|
| 29 |
+
var result = {};
|
| 30 |
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
| 31 |
+
__setModuleDefault(result, mod);
|
| 32 |
+
return result;
|
| 33 |
+
};
|
| 34 |
+
})();
|
| 35 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 36 |
+
exports.PatternMatcher = void 0;
|
| 37 |
+
const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
| 38 |
+
/**
|
| 39 |
+
* The class to find a pattern in strings as handling escape sequences.
|
| 40 |
+
* It ignores the found pattern if it's escaped with `\`.
|
| 41 |
+
*
|
| 42 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class}
|
| 43 |
+
*/
|
| 44 |
+
exports.PatternMatcher = eslintUtils.PatternMatcher;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type * as TSESLint from '../../ts-eslint';
|
| 2 |
+
import type { TSESTree } from '../../ts-estree';
|
| 3 |
+
declare const ReferenceTrackerREAD: unique symbol;
|
| 4 |
+
declare const ReferenceTrackerCALL: unique symbol;
|
| 5 |
+
declare const ReferenceTrackerCONSTRUCT: unique symbol;
|
| 6 |
+
declare const ReferenceTrackerESM: unique symbol;
|
| 7 |
+
interface ReferenceTracker {
|
| 8 |
+
/**
|
| 9 |
+
* Iterate the references that the given `traceMap` determined.
|
| 10 |
+
* This method starts to search from `require()` expression.
|
| 11 |
+
*
|
| 12 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iteratecjsreferences}
|
| 13 |
+
*/
|
| 14 |
+
iterateCjsReferences<T>(traceMap: ReferenceTracker.TraceMap<T>): IterableIterator<ReferenceTracker.FoundReference<T>>;
|
| 15 |
+
/**
|
| 16 |
+
* Iterate the references that the given `traceMap` determined.
|
| 17 |
+
* This method starts to search from `import`/`export` declarations.
|
| 18 |
+
*
|
| 19 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateesmreferences}
|
| 20 |
+
*/
|
| 21 |
+
iterateEsmReferences<T>(traceMap: ReferenceTracker.TraceMap<T>): IterableIterator<ReferenceTracker.FoundReference<T>>;
|
| 22 |
+
/**
|
| 23 |
+
* Iterate the references that the given `traceMap` determined.
|
| 24 |
+
* This method starts to search from global variables.
|
| 25 |
+
*
|
| 26 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateglobalreferences}
|
| 27 |
+
*/
|
| 28 |
+
iterateGlobalReferences<T>(traceMap: ReferenceTracker.TraceMap<T>): IterableIterator<ReferenceTracker.FoundReference<T>>;
|
| 29 |
+
}
|
| 30 |
+
interface ReferenceTrackerStatic {
|
| 31 |
+
readonly CALL: typeof ReferenceTrackerCALL;
|
| 32 |
+
readonly CONSTRUCT: typeof ReferenceTrackerCONSTRUCT;
|
| 33 |
+
readonly ESM: typeof ReferenceTrackerESM;
|
| 34 |
+
new (globalScope: TSESLint.Scope.Scope, options?: {
|
| 35 |
+
/**
|
| 36 |
+
* The name list of Global Object. Optional. Default is `["global", "globalThis", "self", "window"]`.
|
| 37 |
+
*/
|
| 38 |
+
globalObjectNames?: readonly string[];
|
| 39 |
+
/**
|
| 40 |
+
* The mode which determines how the `tracker.iterateEsmReferences()` method scans CommonJS modules.
|
| 41 |
+
* If this is `"strict"`, the method binds CommonJS modules to the default export. Otherwise, the method binds
|
| 42 |
+
* CommonJS modules to both the default export and named exports. Optional. Default is `"strict"`.
|
| 43 |
+
*/
|
| 44 |
+
mode?: 'legacy' | 'strict';
|
| 45 |
+
}): ReferenceTracker;
|
| 46 |
+
readonly READ: typeof ReferenceTrackerREAD;
|
| 47 |
+
}
|
| 48 |
+
declare namespace ReferenceTracker {
|
| 49 |
+
type READ = ReferenceTrackerStatic['READ'];
|
| 50 |
+
type CALL = ReferenceTrackerStatic['CALL'];
|
| 51 |
+
type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT'];
|
| 52 |
+
type ESM = ReferenceTrackerStatic['ESM'];
|
| 53 |
+
type ReferenceType = CALL | CONSTRUCT | READ;
|
| 54 |
+
type TraceMap<T = any> = Record<string, TraceMapElement<T>>;
|
| 55 |
+
interface TraceMapElement<T> {
|
| 56 |
+
[key: string]: TraceMapElement<T>;
|
| 57 |
+
[ReferenceTrackerCALL]?: T;
|
| 58 |
+
[ReferenceTrackerCONSTRUCT]?: T;
|
| 59 |
+
[ReferenceTrackerESM]?: true;
|
| 60 |
+
[ReferenceTrackerREAD]?: T;
|
| 61 |
+
}
|
| 62 |
+
interface FoundReference<T = any> {
|
| 63 |
+
info: T;
|
| 64 |
+
node: TSESTree.Node;
|
| 65 |
+
path: readonly string[];
|
| 66 |
+
type: ReferenceType;
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
/**
|
| 70 |
+
* The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules.
|
| 71 |
+
*
|
| 72 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class}
|
| 73 |
+
*/
|
| 74 |
+
export declare const ReferenceTracker: ReferenceTrackerStatic;
|
| 75 |
+
export {};
|
| 76 |
+
//# sourceMappingURL=ReferenceTracker.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"ReferenceTracker.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,oBAAoB,EAAE,OAAO,MAA0C,CAAC;AAC9E,QAAA,MAAM,yBAAyB,EAAE,OAAO,MACA,CAAC;AACzC,QAAA,MAAM,mBAAmB,EAAE,OAAO,MAAyC,CAAC;AAE5E,UAAU,gBAAgB;IACxB;;;;;OAKG;IACH,oBAAoB,CAAC,CAAC,EACpB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CA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C,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,UAAiB,eAAe,CAAC,CAAC;QAChC,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC;QAChC,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC;QAC7B,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5B;IAED,UAAiB,cAAc,CAAC,CAAC,GAAG,GAAG;QACrC,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;QACpB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC;KACrB;CACF;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EACK,sBAAsB,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
| 14 |
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
| 15 |
+
}) : function(o, v) {
|
| 16 |
+
o["default"] = v;
|
| 17 |
+
});
|
| 18 |
+
var __importStar = (this && this.__importStar) || (function () {
|
| 19 |
+
var ownKeys = function(o) {
|
| 20 |
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
| 21 |
+
var ar = [];
|
| 22 |
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
| 23 |
+
return ar;
|
| 24 |
+
};
|
| 25 |
+
return ownKeys(o);
|
| 26 |
+
};
|
| 27 |
+
return function (mod) {
|
| 28 |
+
if (mod && mod.__esModule) return mod;
|
| 29 |
+
var result = {};
|
| 30 |
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
| 31 |
+
__setModuleDefault(result, mod);
|
| 32 |
+
return result;
|
| 33 |
+
};
|
| 34 |
+
})();
|
| 35 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 36 |
+
exports.ReferenceTracker = void 0;
|
| 37 |
+
/* eslint-disable @typescript-eslint/no-namespace */
|
| 38 |
+
const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
| 39 |
+
const ReferenceTrackerREAD = eslintUtils.ReferenceTracker.READ;
|
| 40 |
+
const ReferenceTrackerCALL = eslintUtils.ReferenceTracker.CALL;
|
| 41 |
+
const ReferenceTrackerCONSTRUCT = eslintUtils.ReferenceTracker.CONSTRUCT;
|
| 42 |
+
const ReferenceTrackerESM = eslintUtils.ReferenceTracker.ESM;
|
| 43 |
+
/**
|
| 44 |
+
* The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules.
|
| 45 |
+
*
|
| 46 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class}
|
| 47 |
+
*/
|
| 48 |
+
exports.ReferenceTracker = eslintUtils.ReferenceTracker;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type * as TSESLint from '../../ts-eslint';
|
| 2 |
+
import type { TSESTree } from '../../ts-estree';
|
| 3 |
+
/**
|
| 4 |
+
* Get the proper location of a given function node to report.
|
| 5 |
+
*
|
| 6 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation}
|
| 7 |
+
*/
|
| 8 |
+
export declare const getFunctionHeadLocation: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation;
|
| 9 |
+
/**
|
| 10 |
+
* Get the name and kind of a given function node.
|
| 11 |
+
*
|
| 12 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind}
|
| 13 |
+
*/
|
| 14 |
+
export declare const getFunctionNameWithKind: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode?: TSESLint.SourceCode) => string;
|
| 15 |
+
/**
|
| 16 |
+
* Get the property name of a given property node.
|
| 17 |
+
* If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.
|
| 18 |
+
*
|
| 19 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname}
|
| 20 |
+
* @returns The property name of the node. If the property name is not constant then it returns `null`.
|
| 21 |
+
*/
|
| 22 |
+
export declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.MethodDefinition | TSESTree.Property | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null;
|
| 23 |
+
/**
|
| 24 |
+
* Get the value of a given node if it can decide the value statically.
|
| 25 |
+
* If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
|
| 26 |
+
* given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have
|
| 27 |
+
* not been modified.
|
| 28 |
+
* For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static.
|
| 29 |
+
*
|
| 30 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue}
|
| 31 |
+
* @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
|
| 32 |
+
* static value of the node, it returns `null`.
|
| 33 |
+
*/
|
| 34 |
+
export declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => {
|
| 35 |
+
value: unknown;
|
| 36 |
+
} | null;
|
| 37 |
+
/**
|
| 38 |
+
* Get the string value of a given node.
|
| 39 |
+
* This function is a tiny wrapper of the getStaticValue function.
|
| 40 |
+
*
|
| 41 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant}
|
| 42 |
+
*/
|
| 43 |
+
export declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null;
|
| 44 |
+
/**
|
| 45 |
+
* Check whether a given node has any side effect or not.
|
| 46 |
+
* The side effect means that it may modify a certain variable or object member. This function considers the node which
|
| 47 |
+
* contains the following types as the node which has side effects:
|
| 48 |
+
* - `AssignmentExpression`
|
| 49 |
+
* - `AwaitExpression`
|
| 50 |
+
* - `CallExpression`
|
| 51 |
+
* - `ImportExpression`
|
| 52 |
+
* - `NewExpression`
|
| 53 |
+
* - `UnaryExpression([operator = "delete"])`
|
| 54 |
+
* - `UpdateExpression`
|
| 55 |
+
* - `YieldExpression`
|
| 56 |
+
* - When `options.considerGetters` is `true`:
|
| 57 |
+
* - `MemberExpression`
|
| 58 |
+
* - When `options.considerImplicitTypeConversion` is `true`:
|
| 59 |
+
* - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])`
|
| 60 |
+
* - `MemberExpression([computed = true])`
|
| 61 |
+
* - `MethodDefinition([computed = true])`
|
| 62 |
+
* - `Property([computed = true])`
|
| 63 |
+
* - `UnaryExpression([operator = "-" | "+" | "!" | "~"])`
|
| 64 |
+
*
|
| 65 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect}
|
| 66 |
+
*/
|
| 67 |
+
export declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: {
|
| 68 |
+
considerGetters?: boolean;
|
| 69 |
+
considerImplicitTypeConversion?: boolean;
|
| 70 |
+
}) => boolean;
|
| 71 |
+
export declare const isParenthesized: {
|
| 72 |
+
(times: number, node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean;
|
| 73 |
+
/**
|
| 74 |
+
* Check whether a given node is parenthesized or not.
|
| 75 |
+
* This function detects it correctly even if it's parenthesized by specific syntax.
|
| 76 |
+
*
|
| 77 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#isparenthesized}
|
| 78 |
+
* @returns `true` if the node is parenthesized.
|
| 79 |
+
* If `times` was given, it returns `true` only if the node is parenthesized the `times` times.
|
| 80 |
+
* For example, `isParenthesized(2, node, sourceCode)` returns true for `((foo))`, but not for `(foo)`.
|
| 81 |
+
*/
|
| 82 |
+
(node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean;
|
| 83 |
+
};
|
| 84 |
+
//# sourceMappingURL=astUtilities.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"astUtilities.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAA0C,CAC5E,IAAI,EACA,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,EAC/B,UAAU,EAAE,QAAQ,C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EAAE,QAAQ,CAAC,IAAI,EACnB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAC9B,OAAO,CAAC;IAEX;;;;;;;;OAQG;IACH,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,OAAO,CAAC;CACjE,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
| 14 |
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
| 15 |
+
}) : function(o, v) {
|
| 16 |
+
o["default"] = v;
|
| 17 |
+
});
|
| 18 |
+
var __importStar = (this && this.__importStar) || (function () {
|
| 19 |
+
var ownKeys = function(o) {
|
| 20 |
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
| 21 |
+
var ar = [];
|
| 22 |
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
| 23 |
+
return ar;
|
| 24 |
+
};
|
| 25 |
+
return ownKeys(o);
|
| 26 |
+
};
|
| 27 |
+
return function (mod) {
|
| 28 |
+
if (mod && mod.__esModule) return mod;
|
| 29 |
+
var result = {};
|
| 30 |
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
| 31 |
+
__setModuleDefault(result, mod);
|
| 32 |
+
return result;
|
| 33 |
+
};
|
| 34 |
+
})();
|
| 35 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 36 |
+
exports.isParenthesized = exports.hasSideEffect = exports.getStringIfConstant = exports.getStaticValue = exports.getPropertyName = exports.getFunctionNameWithKind = exports.getFunctionHeadLocation = void 0;
|
| 37 |
+
const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
| 38 |
+
/**
|
| 39 |
+
* Get the proper location of a given function node to report.
|
| 40 |
+
*
|
| 41 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation}
|
| 42 |
+
*/
|
| 43 |
+
exports.getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation;
|
| 44 |
+
/**
|
| 45 |
+
* Get the name and kind of a given function node.
|
| 46 |
+
*
|
| 47 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind}
|
| 48 |
+
*/
|
| 49 |
+
exports.getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind;
|
| 50 |
+
/**
|
| 51 |
+
* Get the property name of a given property node.
|
| 52 |
+
* If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.
|
| 53 |
+
*
|
| 54 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname}
|
| 55 |
+
* @returns The property name of the node. If the property name is not constant then it returns `null`.
|
| 56 |
+
*/
|
| 57 |
+
exports.getPropertyName = eslintUtils.getPropertyName;
|
| 58 |
+
/**
|
| 59 |
+
* Get the value of a given node if it can decide the value statically.
|
| 60 |
+
* If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
|
| 61 |
+
* given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have
|
| 62 |
+
* not been modified.
|
| 63 |
+
* For example, it considers `Symbol.iterator`, `Symbol.for('k')`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static, but `Symbol('k')` is not static.
|
| 64 |
+
*
|
| 65 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue}
|
| 66 |
+
* @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
|
| 67 |
+
* static value of the node, it returns `null`.
|
| 68 |
+
*/
|
| 69 |
+
exports.getStaticValue = eslintUtils.getStaticValue;
|
| 70 |
+
/**
|
| 71 |
+
* Get the string value of a given node.
|
| 72 |
+
* This function is a tiny wrapper of the getStaticValue function.
|
| 73 |
+
*
|
| 74 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant}
|
| 75 |
+
*/
|
| 76 |
+
exports.getStringIfConstant = eslintUtils.getStringIfConstant;
|
| 77 |
+
/**
|
| 78 |
+
* Check whether a given node has any side effect or not.
|
| 79 |
+
* The side effect means that it may modify a certain variable or object member. This function considers the node which
|
| 80 |
+
* contains the following types as the node which has side effects:
|
| 81 |
+
* - `AssignmentExpression`
|
| 82 |
+
* - `AwaitExpression`
|
| 83 |
+
* - `CallExpression`
|
| 84 |
+
* - `ImportExpression`
|
| 85 |
+
* - `NewExpression`
|
| 86 |
+
* - `UnaryExpression([operator = "delete"])`
|
| 87 |
+
* - `UpdateExpression`
|
| 88 |
+
* - `YieldExpression`
|
| 89 |
+
* - When `options.considerGetters` is `true`:
|
| 90 |
+
* - `MemberExpression`
|
| 91 |
+
* - When `options.considerImplicitTypeConversion` is `true`:
|
| 92 |
+
* - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])`
|
| 93 |
+
* - `MemberExpression([computed = true])`
|
| 94 |
+
* - `MethodDefinition([computed = true])`
|
| 95 |
+
* - `Property([computed = true])`
|
| 96 |
+
* - `UnaryExpression([operator = "-" | "+" | "!" | "~"])`
|
| 97 |
+
*
|
| 98 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect}
|
| 99 |
+
*/
|
| 100 |
+
exports.hasSideEffect = eslintUtils.hasSideEffect;
|
| 101 |
+
exports.isParenthesized = eslintUtils.isParenthesized;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export * from './astUtilities';
|
| 2 |
+
export * from './PatternMatcher';
|
| 3 |
+
export * from './predicates';
|
| 4 |
+
export * from './ReferenceTracker';
|
| 5 |
+
export * from './scopeAnalysis';
|
| 6 |
+
//# sourceMappingURL=index.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
| 14 |
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
| 15 |
+
};
|
| 16 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 17 |
+
__exportStar(require("./astUtilities"), exports);
|
| 18 |
+
__exportStar(require("./PatternMatcher"), exports);
|
| 19 |
+
__exportStar(require("./predicates"), exports);
|
| 20 |
+
__exportStar(require("./ReferenceTracker"), exports);
|
| 21 |
+
__exportStar(require("./scopeAnalysis"), exports);
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { TSESTree } from '../../ts-estree';
|
| 2 |
+
type IsSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is SpecificToken;
|
| 3 |
+
type IsNotSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is Exclude<TSESTree.Token, SpecificToken>;
|
| 4 |
+
type PunctuatorTokenWithValue<Value extends string> = {
|
| 5 |
+
value: Value;
|
| 6 |
+
} & TSESTree.PunctuatorToken;
|
| 7 |
+
type IsPunctuatorTokenWithValueFunction<Value extends string> = IsSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
| 8 |
+
type IsNotPunctuatorTokenWithValueFunction<Value extends string> = IsNotSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
| 9 |
+
export declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">;
|
| 10 |
+
export declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">;
|
| 11 |
+
export declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">;
|
| 12 |
+
export declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">;
|
| 13 |
+
export declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">;
|
| 14 |
+
export declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">;
|
| 15 |
+
export declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">;
|
| 16 |
+
export declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">;
|
| 17 |
+
export declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">;
|
| 18 |
+
export declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">;
|
| 19 |
+
export declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">;
|
| 20 |
+
export declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">;
|
| 21 |
+
export declare const isCommentToken: IsSpecificTokenFunction<TSESTree.Comment>;
|
| 22 |
+
export declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
|
| 23 |
+
export declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">;
|
| 24 |
+
export declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">;
|
| 25 |
+
export declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">;
|
| 26 |
+
export declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">;
|
| 27 |
+
export declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">;
|
| 28 |
+
export declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">;
|
| 29 |
+
export declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">;
|
| 30 |
+
export declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">;
|
| 31 |
+
export {};
|
| 32 |
+
//# sourceMappingURL=predicates.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,uBAAuB,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACnE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,aAAa,CAAC;AAE5B,KAAK,0BAA0B,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACtE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAErD,KAAK,wBAAwB,CAAC,KAAK,SAAS,MAAM,IAAI;IACpD,KAAK,EAAE,KAAK,CAAC;CACd,GAAG,QAAQ,CAAC,eAAe,CAAC;AAC7B,KAAK,kCAAkC,CAAC,KAAK,SAAS,MAAM,IAC1D,uBAAuB,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,KAAK,qCAAqC,CAAC,KAAK,SAAS,MAAM,IAC7D,0BAA0B,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,EACK,kCAAkC,CAAC,IAAI,CAAC,CAAC;AACvE,eAAO,MAAM,eAAe,EACK,qCAAqC,CAAC,IAAI,CAAC,CAAC;AAE7E,eAAO,MAAM,mBAAmB,EACK,kCAAkC,CAAC,GAAG,CAAC,CAAC;AAC7E,eAAO,MAAM,sBAAsB,EACK,qCAAqC,CAAC,GAAG,CAAC,CAAC;AAEnF,eAAO,MAAM,qBA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dist/ast-utils/eslint-utils/predicates.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
| 14 |
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
| 15 |
+
}) : function(o, v) {
|
| 16 |
+
o["default"] = v;
|
| 17 |
+
});
|
| 18 |
+
var __importStar = (this && this.__importStar) || (function () {
|
| 19 |
+
var ownKeys = function(o) {
|
| 20 |
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
| 21 |
+
var ar = [];
|
| 22 |
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
| 23 |
+
return ar;
|
| 24 |
+
};
|
| 25 |
+
return ownKeys(o);
|
| 26 |
+
};
|
| 27 |
+
return function (mod) {
|
| 28 |
+
if (mod && mod.__esModule) return mod;
|
| 29 |
+
var result = {};
|
| 30 |
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
| 31 |
+
__setModuleDefault(result, mod);
|
| 32 |
+
return result;
|
| 33 |
+
};
|
| 34 |
+
})();
|
| 35 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 36 |
+
exports.isNotSemicolonToken = exports.isSemicolonToken = exports.isNotOpeningParenToken = exports.isOpeningParenToken = exports.isNotOpeningBracketToken = exports.isOpeningBracketToken = exports.isNotOpeningBraceToken = exports.isOpeningBraceToken = exports.isNotCommentToken = exports.isCommentToken = exports.isNotCommaToken = exports.isCommaToken = exports.isNotColonToken = exports.isColonToken = exports.isNotClosingParenToken = exports.isClosingParenToken = exports.isNotClosingBracketToken = exports.isClosingBracketToken = exports.isNotClosingBraceToken = exports.isClosingBraceToken = exports.isNotArrowToken = exports.isArrowToken = void 0;
|
| 37 |
+
const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
| 38 |
+
exports.isArrowToken = eslintUtils.isArrowToken;
|
| 39 |
+
exports.isNotArrowToken = eslintUtils.isNotArrowToken;
|
| 40 |
+
exports.isClosingBraceToken = eslintUtils.isClosingBraceToken;
|
| 41 |
+
exports.isNotClosingBraceToken = eslintUtils.isNotClosingBraceToken;
|
| 42 |
+
exports.isClosingBracketToken = eslintUtils.isClosingBracketToken;
|
| 43 |
+
exports.isNotClosingBracketToken = eslintUtils.isNotClosingBracketToken;
|
| 44 |
+
exports.isClosingParenToken = eslintUtils.isClosingParenToken;
|
| 45 |
+
exports.isNotClosingParenToken = eslintUtils.isNotClosingParenToken;
|
| 46 |
+
exports.isColonToken = eslintUtils.isColonToken;
|
| 47 |
+
exports.isNotColonToken = eslintUtils.isNotColonToken;
|
| 48 |
+
exports.isCommaToken = eslintUtils.isCommaToken;
|
| 49 |
+
exports.isNotCommaToken = eslintUtils.isNotCommaToken;
|
| 50 |
+
exports.isCommentToken = eslintUtils.isCommentToken;
|
| 51 |
+
exports.isNotCommentToken = eslintUtils.isNotCommentToken;
|
| 52 |
+
exports.isOpeningBraceToken = eslintUtils.isOpeningBraceToken;
|
| 53 |
+
exports.isNotOpeningBraceToken = eslintUtils.isNotOpeningBraceToken;
|
| 54 |
+
exports.isOpeningBracketToken = eslintUtils.isOpeningBracketToken;
|
| 55 |
+
exports.isNotOpeningBracketToken = eslintUtils.isNotOpeningBracketToken;
|
| 56 |
+
exports.isOpeningParenToken = eslintUtils.isOpeningParenToken;
|
| 57 |
+
exports.isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken;
|
| 58 |
+
exports.isSemicolonToken = eslintUtils.isSemicolonToken;
|
| 59 |
+
exports.isNotSemicolonToken = eslintUtils.isNotSemicolonToken;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type * as TSESLint from '../../ts-eslint';
|
| 2 |
+
import type { TSESTree } from '../../ts-estree';
|
| 3 |
+
/**
|
| 4 |
+
* Get the variable of a given name.
|
| 5 |
+
*
|
| 6 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
|
| 7 |
+
*/
|
| 8 |
+
export declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null;
|
| 9 |
+
/**
|
| 10 |
+
* Get the innermost scope which contains a given node.
|
| 11 |
+
*
|
| 12 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope}
|
| 13 |
+
* @returns The innermost scope which contains the given node.
|
| 14 |
+
* If such scope doesn't exist then it returns the 1st argument `initialScope`.
|
| 15 |
+
*/
|
| 16 |
+
export declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope;
|
| 17 |
+
//# sourceMappingURL=scopeAnalysis.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"scopeAnalysis.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAA+B,CACtD,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,KACrC,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAoC,CAChE,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAChB,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
| 14 |
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
| 15 |
+
}) : function(o, v) {
|
| 16 |
+
o["default"] = v;
|
| 17 |
+
});
|
| 18 |
+
var __importStar = (this && this.__importStar) || (function () {
|
| 19 |
+
var ownKeys = function(o) {
|
| 20 |
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
| 21 |
+
var ar = [];
|
| 22 |
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
| 23 |
+
return ar;
|
| 24 |
+
};
|
| 25 |
+
return ownKeys(o);
|
| 26 |
+
};
|
| 27 |
+
return function (mod) {
|
| 28 |
+
if (mod && mod.__esModule) return mod;
|
| 29 |
+
var result = {};
|
| 30 |
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
| 31 |
+
__setModuleDefault(result, mod);
|
| 32 |
+
return result;
|
| 33 |
+
};
|
| 34 |
+
})();
|
| 35 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 36 |
+
exports.getInnermostScope = exports.findVariable = void 0;
|
| 37 |
+
const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
| 38 |
+
/**
|
| 39 |
+
* Get the variable of a given name.
|
| 40 |
+
*
|
| 41 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
|
| 42 |
+
*/
|
| 43 |
+
exports.findVariable = eslintUtils.findVariable;
|
| 44 |
+
/**
|
| 45 |
+
* Get the innermost scope which contains a given node.
|
| 46 |
+
*
|
| 47 |
+
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope}
|
| 48 |
+
* @returns The innermost scope which contains the given node.
|
| 49 |
+
* If such scope doesn't exist then it returns the 1st argument `initialScope`.
|
| 50 |
+
*/
|
| 51 |
+
exports.getInnermostScope = eslintUtils.getInnermostScope;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree';
|
| 2 |
+
export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
| 3 |
+
type: NodeType;
|
| 4 |
+
}>;
|
| 5 |
+
export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]>(nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
| 6 |
+
type: NodeTypes[number];
|
| 7 |
+
}>;
|
| 8 |
+
export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPES, ExtractedNode extends Extract<TSESTree.Node, {
|
| 9 |
+
type: NodeType;
|
| 10 |
+
}>, Conditions extends Partial<ExtractedNode>>(nodeType: NodeType, conditions: Conditions) => ((node: TSESTree.Node | null | undefined) => node is Conditions & ExtractedNode);
|
| 11 |
+
export declare const isTokenOfTypeWithConditions: <TokenType extends AST_TOKEN_TYPES, ExtractedToken extends Extract<TSESTree.Token, {
|
| 12 |
+
type: TokenType;
|
| 13 |
+
}>, Conditions extends Partial<{
|
| 14 |
+
type: TokenType;
|
| 15 |
+
} & TSESTree.Token>>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Conditions & ExtractedToken);
|
| 16 |
+
export declare const isNotTokenOfTypeWithConditions: <TokenType extends AST_TOKEN_TYPES, ExtractedToken extends Extract<TSESTree.Token, {
|
| 17 |
+
type: TokenType;
|
| 18 |
+
}>, Conditions extends Partial<ExtractedToken>>(tokenType: TokenType, conditions: Conditions) => ((token: TSESTree.Token | null | undefined) => token is Exclude<TSESTree.Token, Conditions & ExtractedToken>);
|
| 19 |
+
//# sourceMappingURL=helpers.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAA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cAAc,CAUxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAEvC,SAAS,SAAS,eAAe,EACjC,cAAc,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EACnE,UAAU,SAAS,OAAO,CAAC,cAAc,CAAC,EAE1C,WAAW,SAAS,EACpB,YAAY,UAAU,KACrB,CAAC,CACF,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,KACrC,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CAAC,CAEN,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.isNotTokenOfTypeWithConditions = exports.isTokenOfTypeWithConditions = exports.isNodeOfTypeWithConditions = exports.isNodeOfTypes = exports.isNodeOfType = void 0;
|
| 4 |
+
const isNodeOfType = (nodeType) => (node) => node?.type === nodeType;
|
| 5 |
+
exports.isNodeOfType = isNodeOfType;
|
| 6 |
+
const isNodeOfTypes = (nodeTypes) => (node) => !!node && nodeTypes.includes(node.type);
|
| 7 |
+
exports.isNodeOfTypes = isNodeOfTypes;
|
| 8 |
+
const isNodeOfTypeWithConditions = (nodeType, conditions) => {
|
| 9 |
+
const entries = Object.entries(conditions);
|
| 10 |
+
return (node) => node?.type === nodeType &&
|
| 11 |
+
entries.every(([key, value]) => node[key] === value);
|
| 12 |
+
};
|
| 13 |
+
exports.isNodeOfTypeWithConditions = isNodeOfTypeWithConditions;
|
| 14 |
+
const isTokenOfTypeWithConditions = (tokenType, conditions) => {
|
| 15 |
+
const entries = Object.entries(conditions);
|
| 16 |
+
return (token) => token?.type === tokenType &&
|
| 17 |
+
entries.every(([key, value]) => token[key] === value);
|
| 18 |
+
};
|
| 19 |
+
exports.isTokenOfTypeWithConditions = isTokenOfTypeWithConditions;
|
| 20 |
+
const isNotTokenOfTypeWithConditions = (tokenType, conditions) => (token) => !(0, exports.isTokenOfTypeWithConditions)(tokenType, conditions)(token);
|
| 21 |
+
exports.isNotTokenOfTypeWithConditions = isNotTokenOfTypeWithConditions;
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export * from './eslint-utils';
|
| 2 |
+
export * from './helpers';
|
| 3 |
+
export * from './misc';
|
| 4 |
+
export * from './predicates';
|
| 5 |
+
//# sourceMappingURL=index.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 3 |
+
if (k2 === undefined) k2 = k;
|
| 4 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 5 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 6 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 7 |
+
}
|
| 8 |
+
Object.defineProperty(o, k2, desc);
|
| 9 |
+
}) : (function(o, m, k, k2) {
|
| 10 |
+
if (k2 === undefined) k2 = k;
|
| 11 |
+
o[k2] = m[k];
|
| 12 |
+
}));
|
| 13 |
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
| 14 |
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
| 15 |
+
};
|
| 16 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 17 |
+
__exportStar(require("./eslint-utils"), exports);
|
| 18 |
+
__exportStar(require("./helpers"), exports);
|
| 19 |
+
__exportStar(require("./misc"), exports);
|
| 20 |
+
__exportStar(require("./predicates"), exports);
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { TSESTree } from '../ts-estree';
|
| 2 |
+
export declare const LINEBREAK_MATCHER: RegExp;
|
| 3 |
+
/**
|
| 4 |
+
* Determines whether two adjacent tokens are on the same line
|
| 5 |
+
*/
|
| 6 |
+
export declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean;
|
| 7 |
+
//# sourceMappingURL=misc.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,iBAAiB,QAA4B,CAAC;AAE3D;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO,CAET"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.LINEBREAK_MATCHER = void 0;
|
| 4 |
+
exports.isTokenOnSameLine = isTokenOnSameLine;
|
| 5 |
+
exports.LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
|
| 6 |
+
/**
|
| 7 |
+
* Determines whether two adjacent tokens are on the same line
|
| 8 |
+
*/
|
| 9 |
+
function isTokenOnSameLine(left, right) {
|
| 10 |
+
return left.loc.end.line === right.loc.start.line;
|
| 11 |
+
}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { TSESTree } from '../ts-estree';
|
| 2 |
+
export declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
| 3 |
+
value: "?.";
|
| 4 |
+
} & TSESTree.PunctuatorToken;
|
| 5 |
+
export declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PrivateIdentifierToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken;
|
| 6 |
+
export declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
| 7 |
+
value: "!";
|
| 8 |
+
} & TSESTree.PunctuatorToken;
|
| 9 |
+
export declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PrivateIdentifierToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken;
|
| 10 |
+
/**
|
| 11 |
+
* Returns true if and only if the node represents: foo?.() or foo.bar?.()
|
| 12 |
+
*/
|
| 13 |
+
export declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is {
|
| 14 |
+
optional: boolean;
|
| 15 |
+
} & TSESTree.CallExpression;
|
| 16 |
+
/**
|
| 17 |
+
* Returns true if and only if the node represents logical OR
|
| 18 |
+
*/
|
| 19 |
+
export declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.LogicalExpression> & TSESTree.LogicalExpression;
|
| 20 |
+
/**
|
| 21 |
+
* Checks if a node is a type assertion:
|
| 22 |
+
* ```
|
| 23 |
+
* x as foo
|
| 24 |
+
* <foo>x
|
| 25 |
+
* ```
|
| 26 |
+
*/
|
| 27 |
+
export declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion;
|
| 28 |
+
export declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.VariableDeclaratorDefiniteAssignment | TSESTree.VariableDeclaratorMaybeInit | TSESTree.VariableDeclaratorNoInit | TSESTree.UsingInForOfDeclarator | TSESTree.UsingInNormalContextDeclarator;
|
| 29 |
+
export declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression;
|
| 30 |
+
export declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
| 31 |
+
export declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
| 32 |
+
export declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSFunctionType;
|
| 33 |
+
export declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSConstructorType;
|
| 34 |
+
export declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is TSESTree.FunctionExpression | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAbstractPropertyDefinitionComputedName | TSESTree.TSAbstractPropertyDefinitionNonComputedName | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSIndexSignature | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName;
|
| 35 |
+
/**
|
| 36 |
+
* Checks if a node is a constructor method.
|
| 37 |
+
*/
|
| 38 |
+
export declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName> & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName);
|
| 39 |
+
/**
|
| 40 |
+
* Checks if a node is a setter method.
|
| 41 |
+
*/
|
| 42 |
+
export declare function isSetter(node: TSESTree.Node | undefined): node is {
|
| 43 |
+
kind: 'set';
|
| 44 |
+
} & (TSESTree.MethodDefinition | TSESTree.Property);
|
| 45 |
+
export declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.Identifier;
|
| 46 |
+
/**
|
| 47 |
+
* Checks if a node represents an `await …` expression.
|
| 48 |
+
*/
|
| 49 |
+
export declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.AwaitExpression;
|
| 50 |
+
/**
|
| 51 |
+
* Checks if a possible token is the `await` keyword.
|
| 52 |
+
*/
|
| 53 |
+
export declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
| 54 |
+
value: "await";
|
| 55 |
+
} & TSESTree.IdentifierToken;
|
| 56 |
+
/**
|
| 57 |
+
* Checks if a possible token is the `type` keyword.
|
| 58 |
+
*/
|
| 59 |
+
export declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
| 60 |
+
value: "type";
|
| 61 |
+
} & TSESTree.IdentifierToken;
|
| 62 |
+
/**
|
| 63 |
+
* Checks if a possible token is the `import` keyword.
|
| 64 |
+
*/
|
| 65 |
+
export declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
| 66 |
+
value: "import";
|
| 67 |
+
} & TSESTree.KeywordToken;
|
| 68 |
+
export declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement;
|
| 69 |
+
//# sourceMappingURL=predicates.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.isLoop = exports.isImportKeyword = exports.isTypeKeyword = exports.isAwaitKeyword = exports.isAwaitExpression = exports.isIdentifier = exports.isConstructor = exports.isClassOrTypeElement = exports.isTSConstructorType = exports.isTSFunctionType = exports.isFunctionOrFunctionType = exports.isFunctionType = exports.isFunction = exports.isVariableDeclarator = exports.isTypeAssertion = exports.isLogicalOrOperator = exports.isOptionalCallExpression = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isNotOptionalChainPunctuator = exports.isOptionalChainPunctuator = void 0;
|
| 4 |
+
exports.isSetter = isSetter;
|
| 5 |
+
const ts_estree_1 = require("../ts-estree");
|
| 6 |
+
const helpers_1 = require("./helpers");
|
| 7 |
+
exports.isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
|
| 8 |
+
exports.isNotOptionalChainPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
|
| 9 |
+
exports.isNonNullAssertionPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
|
| 10 |
+
exports.isNotNonNullAssertionPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
|
| 11 |
+
/**
|
| 12 |
+
* Returns true if and only if the node represents: foo?.() or foo.bar?.()
|
| 13 |
+
*/
|
| 14 |
+
exports.isOptionalCallExpression = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.CallExpression,
|
| 15 |
+
// this flag means the call expression itself is option
|
| 16 |
+
// i.e. it is foo.bar?.() and not foo?.bar()
|
| 17 |
+
{ optional: true });
|
| 18 |
+
/**
|
| 19 |
+
* Returns true if and only if the node represents logical OR
|
| 20 |
+
*/
|
| 21 |
+
exports.isLogicalOrOperator = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' });
|
| 22 |
+
/**
|
| 23 |
+
* Checks if a node is a type assertion:
|
| 24 |
+
* ```
|
| 25 |
+
* x as foo
|
| 26 |
+
* <foo>x
|
| 27 |
+
* ```
|
| 28 |
+
*/
|
| 29 |
+
exports.isTypeAssertion = (0, helpers_1.isNodeOfTypes)([
|
| 30 |
+
ts_estree_1.AST_NODE_TYPES.TSAsExpression,
|
| 31 |
+
ts_estree_1.AST_NODE_TYPES.TSTypeAssertion,
|
| 32 |
+
]);
|
| 33 |
+
exports.isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator);
|
| 34 |
+
const functionTypes = [
|
| 35 |
+
ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression,
|
| 36 |
+
ts_estree_1.AST_NODE_TYPES.FunctionDeclaration,
|
| 37 |
+
ts_estree_1.AST_NODE_TYPES.FunctionExpression,
|
| 38 |
+
];
|
| 39 |
+
exports.isFunction = (0, helpers_1.isNodeOfTypes)(functionTypes);
|
| 40 |
+
const functionTypeTypes = [
|
| 41 |
+
ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
|
| 42 |
+
ts_estree_1.AST_NODE_TYPES.TSConstructorType,
|
| 43 |
+
ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration,
|
| 44 |
+
ts_estree_1.AST_NODE_TYPES.TSDeclareFunction,
|
| 45 |
+
ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,
|
| 46 |
+
ts_estree_1.AST_NODE_TYPES.TSFunctionType,
|
| 47 |
+
ts_estree_1.AST_NODE_TYPES.TSMethodSignature,
|
| 48 |
+
];
|
| 49 |
+
exports.isFunctionType = (0, helpers_1.isNodeOfTypes)(functionTypeTypes);
|
| 50 |
+
exports.isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([
|
| 51 |
+
...functionTypes,
|
| 52 |
+
...functionTypeTypes,
|
| 53 |
+
]);
|
| 54 |
+
exports.isTSFunctionType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSFunctionType);
|
| 55 |
+
exports.isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType);
|
| 56 |
+
exports.isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([
|
| 57 |
+
// ClassElement
|
| 58 |
+
ts_estree_1.AST_NODE_TYPES.PropertyDefinition,
|
| 59 |
+
ts_estree_1.AST_NODE_TYPES.FunctionExpression,
|
| 60 |
+
ts_estree_1.AST_NODE_TYPES.MethodDefinition,
|
| 61 |
+
ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition,
|
| 62 |
+
ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition,
|
| 63 |
+
ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,
|
| 64 |
+
ts_estree_1.AST_NODE_TYPES.TSIndexSignature,
|
| 65 |
+
// TypeElement
|
| 66 |
+
ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
|
| 67 |
+
ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration,
|
| 68 |
+
// AST_NODE_TYPES.TSIndexSignature,
|
| 69 |
+
ts_estree_1.AST_NODE_TYPES.TSMethodSignature,
|
| 70 |
+
ts_estree_1.AST_NODE_TYPES.TSPropertySignature,
|
| 71 |
+
]);
|
| 72 |
+
/**
|
| 73 |
+
* Checks if a node is a constructor method.
|
| 74 |
+
*/
|
| 75 |
+
exports.isConstructor = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' });
|
| 76 |
+
/**
|
| 77 |
+
* Checks if a node is a setter method.
|
| 78 |
+
*/
|
| 79 |
+
function isSetter(node) {
|
| 80 |
+
return (!!node &&
|
| 81 |
+
(node.type === ts_estree_1.AST_NODE_TYPES.MethodDefinition ||
|
| 82 |
+
node.type === ts_estree_1.AST_NODE_TYPES.Property) &&
|
| 83 |
+
node.kind === 'set');
|
| 84 |
+
}
|
| 85 |
+
exports.isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier);
|
| 86 |
+
/**
|
| 87 |
+
* Checks if a node represents an `await …` expression.
|
| 88 |
+
*/
|
| 89 |
+
exports.isAwaitExpression = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.AwaitExpression);
|
| 90 |
+
/**
|
| 91 |
+
* Checks if a possible token is the `await` keyword.
|
| 92 |
+
*/
|
| 93 |
+
exports.isAwaitKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { value: 'await' });
|
| 94 |
+
/**
|
| 95 |
+
* Checks if a possible token is the `type` keyword.
|
| 96 |
+
*/
|
| 97 |
+
exports.isTypeKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { value: 'type' });
|
| 98 |
+
/**
|
| 99 |
+
* Checks if a possible token is the `import` keyword.
|
| 100 |
+
*/
|
| 101 |
+
exports.isImportKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Keyword, { value: 'import' });
|
| 102 |
+
exports.isLoop = (0, helpers_1.isNodeOfTypes)([
|
| 103 |
+
ts_estree_1.AST_NODE_TYPES.DoWhileStatement,
|
| 104 |
+
ts_estree_1.AST_NODE_TYPES.ForStatement,
|
| 105 |
+
ts_estree_1.AST_NODE_TYPES.ForInStatement,
|
| 106 |
+
ts_estree_1.AST_NODE_TYPES.ForOfStatement,
|
| 107 |
+
ts_estree_1.AST_NODE_TYPES.WhileStatement,
|
| 108 |
+
]);
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
|
| 2 |
+
/**
|
| 3 |
+
* Uses type inference to fetch the Options type from the given RuleModule
|
| 4 |
+
*/
|
| 5 |
+
export type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _MessageIds, infer Options> ? Options : T extends RuleCreateFunction<infer _MessageIds, infer Options> ? Options : unknown;
|
| 6 |
+
/**
|
| 7 |
+
* Uses type inference to fetch the MessageIds type from the given RuleModule
|
| 8 |
+
*/
|
| 9 |
+
export type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer MessageIds, infer _TOptions> ? MessageIds : T extends RuleCreateFunction<infer MessageIds, infer _TOptions> ? MessageIds : unknown;
|
| 10 |
+
//# sourceMappingURL=InferTypesFromRule.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,IACpC,CAAC,SAAS,UAAU,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAClD,OAAO,GACP,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAC5D,OAAO,GACP,OAAO,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,2BAA2B,CAAC,CAAC,IACvC,CAAC,SAAS,UAAU,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GACnD,UAAU,GACV,CAAC,SAAS,kBAAkB,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GAC7D,UAAU,GACV,OAAO,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule';
|
| 2 |
+
export type NamedCreateRuleMetaDocs = Omit<RuleMetaDataDocs, 'url'>;
|
| 3 |
+
export type NamedCreateRuleMeta<MessageIds extends string, PluginDocs = unknown, Options extends readonly unknown[] = []> = {
|
| 4 |
+
docs: PluginDocs & RuleMetaDataDocs;
|
| 5 |
+
} & Omit<RuleMetaData<MessageIds, PluginDocs, Options>, 'docs'>;
|
| 6 |
+
export interface RuleCreateAndOptions<Options extends readonly unknown[], MessageIds extends string> {
|
| 7 |
+
create: (context: Readonly<RuleContext<MessageIds, Options>>, optionsWithDefault: Readonly<Options>) => RuleListener;
|
| 8 |
+
defaultOptions: Readonly<Options>;
|
| 9 |
+
}
|
| 10 |
+
export interface RuleWithMeta<Options extends readonly unknown[], MessageIds extends string, Docs = unknown> extends RuleCreateAndOptions<Options, MessageIds> {
|
| 11 |
+
meta: RuleMetaData<MessageIds, Docs, Options>;
|
| 12 |
+
}
|
| 13 |
+
export interface RuleWithMetaAndName<Options extends readonly unknown[], MessageIds extends string, Docs = unknown> extends RuleCreateAndOptions<Options, MessageIds> {
|
| 14 |
+
meta: NamedCreateRuleMeta<MessageIds, Docs, Options>;
|
| 15 |
+
name: string;
|
| 16 |
+
}
|
| 17 |
+
/**
|
| 18 |
+
* Creates reusable function to create rules with default options and docs URLs.
|
| 19 |
+
*
|
| 20 |
+
* @param urlCreator Creates a documentation URL for a given rule name.
|
| 21 |
+
* @returns Function to create a rule with the docs URL format.
|
| 22 |
+
*/
|
| 23 |
+
export declare function RuleCreator<PluginDocs = unknown>(urlCreator: (ruleName: string) => string): <Options extends readonly unknown[], MessageIds extends string>({ meta, name, ...rule }: Readonly<RuleWithMetaAndName<Options, MessageIds, PluginDocs>>) => RuleModule<MessageIds, Options, PluginDocs>;
|
| 24 |
+
export declare namespace RuleCreator {
|
| 25 |
+
var withoutDocs: <Options extends readonly unknown[], MessageIds extends string>(args: Readonly<RuleWithMeta<Options, MessageIds>>) => RuleModule<MessageIds, Options>;
|
| 26 |
+
}
|
| 27 |
+
export { type RuleListener, type RuleModule } from '../ts-eslint/Rule';
|
| 28 |
+
//# sourceMappingURL=RuleCreator.d.ts.map
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"RuleCreator.d.ts","sourceRoot":"","sources":["../../src/eslint-ut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E,OAAO,CAAC,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,GAAG,OAAO,EAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,IAKtC,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,EACzB,yBAIC,QAAQ,CACT,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC,CACrD,KAAG,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAYhD;yBA1Be,WAAW;sBA0DzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,QAEnB,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,KAChD,UAAU,CAAC,UAAU,EAAE,OAAO,CAAC;;AAIlC,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 3 |
+
exports.RuleCreator = RuleCreator;
|
| 4 |
+
const applyDefault_1 = require("./applyDefault");
|
| 5 |
+
/**
|
| 6 |
+
* Creates reusable function to create rules with default options and docs URLs.
|
| 7 |
+
*
|
| 8 |
+
* @param urlCreator Creates a documentation URL for a given rule name.
|
| 9 |
+
* @returns Function to create a rule with the docs URL format.
|
| 10 |
+
*/
|
| 11 |
+
function RuleCreator(urlCreator) {
|
| 12 |
+
// This function will get much easier to call when this is merged https://github.com/Microsoft/TypeScript/pull/26349
|
| 13 |
+
// TODO - when the above PR lands; add type checking for the context.report `data` property
|
| 14 |
+
return function createNamedRule({ meta, name, ...rule }) {
|
| 15 |
+
return createRule({
|
| 16 |
+
meta: {
|
| 17 |
+
...meta,
|
| 18 |
+
docs: {
|
| 19 |
+
...meta.docs,
|
| 20 |
+
url: urlCreator(name),
|
| 21 |
+
},
|
| 22 |
+
},
|
| 23 |
+
...rule,
|
| 24 |
+
});
|
| 25 |
+
};
|
| 26 |
+
}
|
| 27 |
+
function createRule({ create, defaultOptions, meta, }) {
|
| 28 |
+
return {
|
| 29 |
+
create(context) {
|
| 30 |
+
const optionsWithDefault = (0, applyDefault_1.applyDefault)(defaultOptions, context.options);
|
| 31 |
+
return create(context, optionsWithDefault);
|
| 32 |
+
},
|
| 33 |
+
defaultOptions,
|
| 34 |
+
meta,
|
| 35 |
+
};
|
| 36 |
+
}
|
| 37 |
+
/**
|
| 38 |
+
* Creates a well-typed TSESLint custom ESLint rule without a docs URL.
|
| 39 |
+
*
|
| 40 |
+
* @returns Well-typed TSESLint custom ESLint rule.
|
| 41 |
+
* @remarks It is generally better to provide a docs URL function to RuleCreator.
|
| 42 |
+
*/
|
| 43 |
+
RuleCreator.withoutDocs = function withoutDocs(args) {
|
| 44 |
+
return createRule(args);
|
| 45 |
+
};
|
platform/dbops/archive/databases_old/data/home/x/india-h200-1-workspace/claude-code-router/ui/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Pure function - doesn't mutate either parameter!
|
| 3 |
+
* Uses the default options and overrides with the options provided by the user
|
| 4 |
+
* @param defaultOptions the defaults
|
| 5 |
+
* @param userOptions the user opts
|
| 6 |
+
* @returns the options with defaults
|
| 7 |
+
*/
|
| 8 |
+
export declare function applyDefault<User extends readonly unknown[], Default extends User>(defaultOptions: Readonly<Default>, userOptions: Readonly<User> | null): Default;
|
| 9 |
+
//# sourceMappingURL=applyDefault.d.ts.map
|