@veryfront/ext-auth-jwt 0.1.1270-rc.22342 → 0.1.1270-rc.22352
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/esm/_dnt.polyfills.d.ts +49 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +36 -0
- package/package.json +3 -3
package/esm/_dnt.polyfills.d.ts
CHANGED
|
@@ -135,4 +135,53 @@ declare global {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
export {};
|
|
138
|
+
declare global {
|
|
139
|
+
interface Array<T> {
|
|
140
|
+
/**
|
|
141
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
142
|
+
* otherwise.
|
|
143
|
+
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
144
|
+
* order, until it finds one where predicate returns true. If such an element is found, find
|
|
145
|
+
* immediately returns that element value. Otherwise, find returns undefined.
|
|
146
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
147
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
148
|
+
*/
|
|
149
|
+
findLast<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
|
|
150
|
+
findLast(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
153
|
+
* otherwise.
|
|
154
|
+
* @param predicate find calls predicate once for each element of the array, in ascending
|
|
155
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
156
|
+
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
157
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
158
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
159
|
+
*/
|
|
160
|
+
findLastIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
|
|
161
|
+
}
|
|
162
|
+
interface Uint8Array {
|
|
163
|
+
/**
|
|
164
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
165
|
+
* otherwise.
|
|
166
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
167
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
168
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
169
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
170
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
171
|
+
*/
|
|
172
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
|
|
173
|
+
findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
176
|
+
* otherwise.
|
|
177
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
178
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
179
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
180
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
181
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
182
|
+
*/
|
|
183
|
+
findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
export {};
|
|
138
187
|
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK;QACb,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB;CACF;AAED,OAAO,EAAE,CAAC;AAgBV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAA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,EAAE,KAAK,OAAO,EACzD,OAAO,CAAC,EAAE,GAAG,GACZ,CAAC,GAAG,SAAS,CAAC;QAEjB;;;;;;;;WAQG;QACH,aAAa,CACX,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,OAAO,EACzD,OAAO,CAAC,EAAE,GAAG,GACZ,MAAM,CAAC;KACX;IACD,UAAU,UAAU;QAClB;;;;;;;;WAQG;QACH,QAAQ,CAAC,CAAC,SAAS,MAAM,EACvB,SAAS,EAAE,CACP,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,UAAU,KAChB,KAAK,IAAI,CAAC,EACf,OAAO,CAAC,EAAE,GAAG,GACZ,CAAC,GAAG,SAAS,CAAC;QACjB,QAAQ,CACJ,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,OAAO,EACvE,OAAO,CAAC,EAAE,GAAG,GACd,MAAM,GAAG,SAAS,CAAC;QAEtB;;;;;;;;WAQG;QACH,aAAa,CACT,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,OAAO,EACvE,OAAO,CAAC,EAAE,GAAG,GACd,MAAM,CAAC;KACX;CACF;AA4CD,OAAO,EAAE,CAAC"}
|
package/esm/_dnt.polyfills.js
CHANGED
|
@@ -262,3 +262,39 @@ async function fromAsync(items, mapfn, thisArg) {
|
|
|
262
262
|
if (!Array.fromAsync) {
|
|
263
263
|
Array.fromAsync = fromAsync;
|
|
264
264
|
}
|
|
265
|
+
function findLastIndex(self, callbackfn, that) {
|
|
266
|
+
const boundFunc = that === undefined ? callbackfn : callbackfn.bind(that);
|
|
267
|
+
let index = self.length - 1;
|
|
268
|
+
while (index >= 0) {
|
|
269
|
+
const result = boundFunc(self[index], index, self);
|
|
270
|
+
if (result) {
|
|
271
|
+
return index;
|
|
272
|
+
}
|
|
273
|
+
index--;
|
|
274
|
+
}
|
|
275
|
+
return -1;
|
|
276
|
+
}
|
|
277
|
+
function findLast(self, callbackfn, that) {
|
|
278
|
+
const index = self.findLastIndex(callbackfn, that);
|
|
279
|
+
return index === -1 ? undefined : self[index];
|
|
280
|
+
}
|
|
281
|
+
if (!Array.prototype.findLastIndex) {
|
|
282
|
+
Array.prototype.findLastIndex = function (callbackfn, that) {
|
|
283
|
+
return findLastIndex(this, callbackfn, that);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
if (!Array.prototype.findLast) {
|
|
287
|
+
Array.prototype.findLast = function (callbackfn, that) {
|
|
288
|
+
return findLast(this, callbackfn, that);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
if (!Uint8Array.prototype.findLastIndex) {
|
|
292
|
+
Uint8Array.prototype.findLastIndex = function (callbackfn, that) {
|
|
293
|
+
return findLastIndex(this, callbackfn, that);
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
if (!Uint8Array.prototype.findLast) {
|
|
297
|
+
Uint8Array.prototype.findLast = function (callbackfn, that) {
|
|
298
|
+
return findLast(this, callbackfn, that);
|
|
299
|
+
};
|
|
300
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-auth-jwt",
|
|
3
|
-
"version": "0.1.1270-rc.
|
|
3
|
+
"version": "0.1.1270-rc.22352",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-auth-jwt",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"jose": "5.9.6"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"veryfront": "^0.1.1270-rc.
|
|
57
|
+
"veryfront": "^0.1.1270-rc.22352"
|
|
58
58
|
},
|
|
59
59
|
"type": "module",
|
|
60
60
|
"types": "./esm/extensions/ext-auth-jwt/src/index.d.ts",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"NOTICE",
|
|
65
65
|
"README.md"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "a30ad67e1fd3d837f46273c79e479bf4612cfd6b"
|
|
68
68
|
}
|