@envelop/response-cache 4.0.5-alpha-20230201175418-7a7fc4b0 → 4.0.5
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/cjs/plugin.js +10 -10
- package/esm/plugin.js +10 -10
- package/package.json +1 -1
package/cjs/plugin.js
CHANGED
|
@@ -120,19 +120,19 @@ includeExtensionMetadata = typeof process !== 'undefined' ? process.env['NODE_EN
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
+
if (ignoredTypesMap.has(typename)) {
|
|
124
|
+
skip = true;
|
|
125
|
+
}
|
|
126
|
+
if (skip === true) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
types.add(typename);
|
|
130
|
+
if (typename in ttlPerType) {
|
|
131
|
+
currentTtl = calculateTtl(ttlPerType[typename], currentTtl);
|
|
132
|
+
}
|
|
123
133
|
if (idFields.includes(fieldName)) {
|
|
124
|
-
if (ignoredTypesMap.has(typename)) {
|
|
125
|
-
skip = true;
|
|
126
|
-
}
|
|
127
|
-
if (skip === true) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
134
|
return (id) => {
|
|
131
135
|
identifier.set(`${typename}:${id}`, { typename, id });
|
|
132
|
-
types.add(typename);
|
|
133
|
-
if (typename in ttlPerType) {
|
|
134
|
-
currentTtl = calculateTtl(ttlPerType[typename], currentTtl);
|
|
135
|
-
}
|
|
136
136
|
return id;
|
|
137
137
|
};
|
|
138
138
|
}
|
package/esm/plugin.js
CHANGED
|
@@ -114,19 +114,19 @@ includeExtensionMetadata = typeof process !== 'undefined' ? process.env['NODE_EN
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
+
if (ignoredTypesMap.has(typename)) {
|
|
118
|
+
skip = true;
|
|
119
|
+
}
|
|
120
|
+
if (skip === true) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
types.add(typename);
|
|
124
|
+
if (typename in ttlPerType) {
|
|
125
|
+
currentTtl = calculateTtl(ttlPerType[typename], currentTtl);
|
|
126
|
+
}
|
|
117
127
|
if (idFields.includes(fieldName)) {
|
|
118
|
-
if (ignoredTypesMap.has(typename)) {
|
|
119
|
-
skip = true;
|
|
120
|
-
}
|
|
121
|
-
if (skip === true) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
128
|
return (id) => {
|
|
125
129
|
identifier.set(`${typename}:${id}`, { typename, id });
|
|
126
|
-
types.add(typename);
|
|
127
|
-
if (typename in ttlPerType) {
|
|
128
|
-
currentTtl = calculateTtl(ttlPerType[typename], currentTtl);
|
|
129
|
-
}
|
|
130
130
|
return id;
|
|
131
131
|
};
|
|
132
132
|
}
|