@eggjs/core-decorator
Advanced tools
Comparing version 3.48.0 to 3.48.1
@@ -12,2 +12,3 @@ import type { EggProtoImplClass, QualifierAttribute, QualifierInfo, QualifierValue } from '@eggjs/tegg-types'; | ||
static equalQualifiers(clazzQualifiers: QualifierInfo[], requestQualifiers: QualifierInfo[]): boolean; | ||
static mergeQualifiers(...qualifiers: QualifierInfo[][]): QualifierInfo[]; | ||
} |
@@ -78,4 +78,20 @@ "use strict"; | ||
} | ||
static mergeQualifiers(...qualifiers) { | ||
const result = []; | ||
const temp = {}; | ||
for (const qualifierList of qualifiers) { | ||
for (const { attribute, value } of qualifierList) { | ||
temp[attribute] = value; | ||
} | ||
} | ||
for (const key of Reflect.ownKeys(temp)) { | ||
result.push({ | ||
attribute: key, | ||
value: temp[key], | ||
}); | ||
} | ||
return result; | ||
} | ||
} | ||
exports.QualifierUtil = QualifierUtil; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVhbGlmaWVyVXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlsL1F1YWxpZmllclV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOERBQStEO0FBQy9ELGtEQUFzRjtBQUV0RixpREFBOEM7QUFFOUMsTUFBYSxhQUFhO0lBQ3hCLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxLQUF3QixFQUFFLFNBQTZCLEVBQUUsS0FBcUI7UUFDckcsTUFBTSxVQUFVLEdBQUcsMkJBQVksQ0FBQyxrQkFBa0IsQ0FBQyxnQ0FBbUIsRUFBRSxLQUFLLEVBQUUsSUFBSSxHQUFHLEVBQXNDLENBQUMsQ0FBQztRQUM5SCxVQUFVLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUNuQyxDQUFDO0lBRUQsTUFBTSxDQUFDLGtCQUFrQixDQUFD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Q0FBQyxlQUFlLENBQUMsR0FBRyxVQUE2QjtRQUNyRCxNQUFNLE1BQU0sR0FBb0IsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxHQUErQyxFQUFFLENBQUM7UUFDNUQsS0FBSyxNQUFNLGFBQWEsSUFBSSxVQUFVLEVBQUUsQ0FBQztZQUN2QyxLQUFLLE1BQU0sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLElBQUksYUFBYSxFQUFFLENBQUM7Z0JBQ2pELElBQUksQ0FBQyxTQUFTLENBQUMsR0FBRyxLQUFLLENBQUM7WUFDMUIsQ0FBQztRQUNILENBQUM7UUFDRCxLQUFLLE1BQU0sR0FBRyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztZQUN4QyxNQUFNLENBQUMsSUFBSSxDQUFDO2dCQUNWLFNBQVMsRUFBRSxHQUFHO2dCQUNkLEtBQUssRUFBRSxJQUFJLENBQUMsR0FBRyxDQUFDO2FBQ2pCLENBQUMsQ0FBQztRQUNMLENBQUM7UUFDRCxPQUFPLE1BQU0sQ0FBQztJQUNoQixDQUFDO0NBQ0Y7QUE5RkQsc0NBOEZDIn0= |
{ | ||
"name": "@eggjs/core-decorator", | ||
"version": "3.48.0", | ||
"version": "3.48.1", | ||
"description": "tegg core decorator", | ||
@@ -39,4 +39,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@eggjs/tegg-common-util": "^3.48.0", | ||
"@eggjs/tegg-types": "^3.48.0", | ||
"@eggjs/tegg-common-util": "^3.48.1", | ||
"@eggjs/tegg-types": "^3.48.1", | ||
"reflect-metadata": "^0.1.13" | ||
@@ -55,3 +55,3 @@ }, | ||
}, | ||
"gitHead": "8acbcc4e472c95beb3955d3b75c9b458c9d32e0b" | ||
"gitHead": "e94c045e5928c1959bfa20a93fe1d74ff553793b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70587
846
Updated@eggjs/tegg-types@^3.48.1