This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
"use strict";var l=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var a=(e,n)=>{for(var r in n)l(e,r,{get:n[r],enumerable:!0})},h=(e,n,r,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of o(n))!s.call(e,t)&&t!==r&&l(e,t,{get:()=>n[t],enumerable:!(u=i(n,t))||u.enumerable});return e};var f=e=>h(l({},"__esModule",{value:!0}),e);var p={};a(p,{luhnCheck:()=>g,luhnCheckValue:()=>m});module.exports=f(p);function g(e){return c(e)===0}function m(e){const n=c(e.replace(/L?$/,"0"));return n===0?0:10-n}function c(e){e=e.replace(/[\s-]/g,"");let n=0,r=!1;for(let u=e.length-1;u>=0;u--){let t=parseInt(e.substring(u,u+1));r&&(t*=2,t>9&&(t=t%10+1)),n+=t,r=!r}return n%10}0&&(module.exports={luhnCheck,luhnCheckValue});
+6
View File
@@ -0,0 +1,6 @@
"use strict";var m=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var K=(r,e)=>{for(var t in e)m(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of l(e))!b.call(r,n)&&n!==t&&m(r,n,{get:()=>e[n],enumerable:!(o=f(e,n))||o.enumerable});return r};var g=r=>h(m({},"__esModule",{value:!0}),r);var M={};K(M,{exec:()=>T});module.exports=g(M);var x=require("../../errors/faker-error");function p(r,e){return r[e]===void 0?-1:0}function R(r,e,t,o,n){throw console.error("Error",t),console.log(`Found ${Object.keys(o).length} unique entries before throwing error.
retried: ${n}
total time: ${e-r}ms`),new x.FakerError(`${t} for uniqueness check.
May not be able to generate any more unique values with current settings.
Try adjusting maxTime or maxRetries parameters for faker.helpers.unique().`)}function T(r,e,t={}){const o=Date.now(),{startTime:n=Date.now(),maxTime:i=50,maxRetries:s=50,currentIterations:a=0,compare:y=p,store:d}=t;let{exclude:u}=t;if(t.currentIterations=a,Array.isArray(u)||(u=[u]),o-n>=i)return R(n,o,`Exceeded maxTime: ${i}`,d,a);if(a>=s)return R(n,o,`Exceeded maxRetries: ${s}`,d,a);const c=r(...e);return y(d,c)===-1&&!u.includes(c)?(d[c]=c,t.currentIterations=0,c):(t.currentIterations++,T(r,e,{...t,startTime:n,maxTime:i,maxRetries:s,compare:y,exclude:u}))}0&&(module.exports={exec});