ng-openapi 0.0.25-alpha.8 → 0.0.25-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +1 -10
- package/index.js +1 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1120,13 +1120,6 @@ var BaseInterceptorGenerator = class {
|
|
|
1120
1120
|
"HttpInterceptor"
|
|
1121
1121
|
],
|
|
1122
1122
|
properties: [
|
|
1123
|
-
{
|
|
1124
|
-
name: "clientName",
|
|
1125
|
-
type: "string",
|
|
1126
|
-
scope: import_ts_morph4.Scope.Private,
|
|
1127
|
-
isReadonly: true,
|
|
1128
|
-
initializer: `'${this.#clientName}'`
|
|
1129
|
-
},
|
|
1130
1123
|
{
|
|
1131
1124
|
name: "httpInterceptors",
|
|
1132
1125
|
type: "HttpInterceptor[]",
|
|
@@ -1158,9 +1151,7 @@ var BaseInterceptorGenerator = class {
|
|
|
1158
1151
|
returnType: "Observable<HttpEvent<any>>",
|
|
1159
1152
|
statements: `
|
|
1160
1153
|
// Check if this request belongs to this client using HttpContext
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
if (requestClientName.localeCompare(this.clientName) === 0) {
|
|
1154
|
+
if (!req.context.has(this.clientContextToken)) {
|
|
1164
1155
|
// This request doesn't belong to this client, pass it through
|
|
1165
1156
|
return next.handle(req);
|
|
1166
1157
|
}
|
package/index.js
CHANGED
|
@@ -1163,13 +1163,6 @@ var _BaseInterceptorGenerator = class _BaseInterceptorGenerator {
|
|
|
1163
1163
|
"HttpInterceptor"
|
|
1164
1164
|
],
|
|
1165
1165
|
properties: [
|
|
1166
|
-
{
|
|
1167
|
-
name: "clientName",
|
|
1168
|
-
type: "string",
|
|
1169
|
-
scope: import_ts_morph4.Scope.Private,
|
|
1170
|
-
isReadonly: true,
|
|
1171
|
-
initializer: `'${__privateGet(this, _clientName)}'`
|
|
1172
|
-
},
|
|
1173
1166
|
{
|
|
1174
1167
|
name: "httpInterceptors",
|
|
1175
1168
|
type: "HttpInterceptor[]",
|
|
@@ -1201,9 +1194,7 @@ var _BaseInterceptorGenerator = class _BaseInterceptorGenerator {
|
|
|
1201
1194
|
returnType: "Observable<HttpEvent<any>>",
|
|
1202
1195
|
statements: `
|
|
1203
1196
|
// Check if this request belongs to this client using HttpContext
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
if (requestClientName.localeCompare(this.clientName) === 0) {
|
|
1197
|
+
if (!req.context.has(this.clientContextToken)) {
|
|
1207
1198
|
// This request doesn't belong to this client, pass it through
|
|
1208
1199
|
return next.handle(req);
|
|
1209
1200
|
}
|