Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fictional

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fictional - npm Package Compare versions

Comparing version 0.4.8 to 0.4.11

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### [0.4.11](https://github.com/oftherivier/fictional/compare/v0.4.10...v0.4.11) (2022-05-02)
### [0.4.10](https://github.com/oftherivier/fictional/compare/v0.4.9...v0.4.10) (2022-05-02)
### [0.4.9](https://github.com/oftherivier/fictional/compare/v0.4.8...v0.4.9) (2022-05-02)
### [0.4.8](https://github.com/oftherivier/fictional/compare/v0.4.7...v0.4.8) (2022-04-30)

@@ -7,0 +13,0 @@

2

dist/umd/fictional.js

@@ -1,2 +0,2 @@

!function(n,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.fictional=r():n.fictional=r()}(this,(function(){return function(n){var r={};function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,r){if(1&r&&(n=t(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var o in n)t.d(e,o,function(r){return n[r]}.bind(null,o));return e},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},t.p="",t(t.s=11)}([function(n,r,t){var e=t(12),o=t(15),i=t(16);function u(n){return o(e(i(n)+"chino"))}u.hash2=function(n,r){return u(u(n)+u(r))},u.hash3=function(n,r,t){return u(u(n)+u(r)+u(t))},n.exports=u},function(n,r){n.exports=function(n,r,t){var e,o;return r=r||0,null==t?n>r?n:n+r:r===(t=Math.max(t,r))?r:r<=n&&n<=t?n:(o=0,(e=Math.floor(n))!==n&&(o=function(n){var r=n.toString();return+("0"+r.slice(r.indexOf(".")))}(n),t-=1),e%(t+1-r)+r+o)}},function(n,r){var t=Object.prototype.hasOwnProperty;n.exports=function(n,r){var e,o={};if(n)for(e in n)t.call(n,e)&&(o[e]=n[e]);if(r)for(e in r)t.call(r,e)&&(o[e]=r[e]);return o}},function(n,r,t){var e=t(0);n.exports=function(n,r){return"function"==typeof r?r(e(n)):r}},function(n,r){n.exports=function(n,r){return null==n?r:n}},function(n,r){var t={utf8:{stringToBytes:function(n){return t.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(t.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],t=0;t<n.length;t++)r.push(255&n.charCodeAt(t));return r},bytesToString:function(n){for(var r=[],t=0;t<n.length;t++)r.push(String.fromCharCode(n[t]));return r.join("")}}};n.exports=t},function(n,r,t){var e=t(0),o=e.hash2,i=t(3);function u(n,r){for(var t=o(n,"tuple"),u=r.length,f=-1,a=[];++f<u;)t=e(t),a.push(i(t,r[f]));return a}n.exports=function(n,r){return null!=r?u(n,r):(t=n,function(n){return u(n,t)});var t}},function(n,r){n.exports=function(n,r){return 0!==(r=+r)&&(1===r||n%(1/r)<1)}},function(n,r,t){var e=t(0),o=e.hash2,i=t(2),u=t(1),f=t(7),a=t(30),s=t(4),c=["a","ka","ki","ke","ko","ta","chi","shi","so","na","ni","no","ra","ha","hy","ma","mi","mu","me","mo","yu","yo","kai","va","vi","kin","rae","cea"],l=c.length;function p(n,r){for(var t,i,p=s((r=r||0).capitalize,!0),v=s(r.minSyllables,2),g=s(r.maxSyllables,4),y=s(r.unicode,!0),d=o(n,"word"),m=u(d,v,g),x="",b="",w=-1;++w<m;){t=b;do{d=e(d),b=c[d%l]}while(!h(t,b));x+=b}return f(d,y)&&(x=a(d,x)),p&&(x=(i=x)[0].toUpperCase()+i.slice(1)),x}function h(n,r){var t=n[n.length-1];return n!==r&&t!==r[0]&&t!==r[1]}p.options=function(n){var r=this;return t.options=p.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=p},function(n,r,t){var e=t(0),o=e.hash3,i=t(2),u=t(1),f=t(4),a=t(8);function s(n,r){var t=f((r=r||0).minSyllables,1),s=f(r.capitalize,"first"),c=!0===s||"all"===s,l=c||"first"===s,p=f(r.min,2),h=f(r.max,3),v=e(n),g=u(v,p,h),y=0;v=o(v,"words",y);for(var d,m=i(r,{minSyllables:t,capitalize:l}),x=i(r,{minSyllables:t,capitalize:c}),b=a(v,m),w=b;++y<g;){d=w;do{v=o(v,"words",y),w=a(v,x)}while(w.length===d.length);b+=" "+w}return b}s.options=function(n){var r=this;return t.options=s.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=s},function(n,r,t){var e=t(0),o=e.hash2,i=t(2),u=t(1),f=t(4),a=t(9);function s(n,r){var t=f((r=r||0).minWords,5),s=f(r.maxWords,8),c=f(r.minClauses,1),l=f(r.maxClauses,2),p=f(r.unicode,.382),h=o(n,"sentence"),v=u(h,c,l),g=0;h=e(h);for(var y=i(r,{capitalize:"first",min:t,max:s,unicode:p}),d=i(y,{capitalize:!1}),m=a(h,y);++g<v;)h=e(h),m+=", "+a(h,d);return m+"."}s.options=function(n){var r=this;return t.options=s.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=s},function(n,r,t){r.hash=t(0),r.oneOf=t(17),r.someOf=t(18),r.tuple=t(6),r.shape=t(19),r.times=t(20),r.join=t(21),r.oneOfWeighted=t(23),r.int=t(24),r.float=t(25),r.char=t(26),r.word=t(8),r.words=t(9),r.sentence=t(10),r.paragraph=t(31),r.bool=t(32),r.dateString=t(33)},function(n,r,t){var e,o,i,u,f;e=t(13),o=t(5).utf8,i=t(14),u=t(5).bin,(f=function(n,r){n.constructor==String?n=r&&"binary"===r.encoding?u.stringToBytes(n):o.stringToBytes(n):i(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var t=e.bytesToWords(n),a=8*n.length,s=1732584193,c=-271733879,l=-1732584194,p=271733878,h=0;h<t.length;h++)t[h]=16711935&(t[h]<<8|t[h]>>>24)|4278255360&(t[h]<<24|t[h]>>>8);t[a>>>5]|=128<<a%32,t[14+(a+64>>>9<<4)]=a;var v=f._ff,g=f._gg,y=f._hh,d=f._ii;for(h=0;h<t.length;h+=16){var m=s,x=c,b=l,w=p;s=v(s,c,l,p,t[h+0],7,-680876936),p=v(p,s,c,l,t[h+1],12,-389564586),l=v(l,p,s,c,t[h+2],17,606105819),c=v(c,l,p,s,t[h+3],22,-1044525330),s=v(s,c,l,p,t[h+4],7,-176418897),p=v(p,s,c,l,t[h+5],12,1200080426),l=v(l,p,s,c,t[h+6],17,-1473231341),c=v(c,l,p,s,t[h+7],22,-45705983),s=v(s,c,l,p,t[h+8],7,1770035416),p=v(p,s,c,l,t[h+9],12,-1958414417),l=v(l,p,s,c,t[h+10],17,-42063),c=v(c,l,p,s,t[h+11],22,-1990404162),s=v(s,c,l,p,t[h+12],7,1804603682),p=v(p,s,c,l,t[h+13],12,-40341101),l=v(l,p,s,c,t[h+14],17,-1502002290),s=g(s,c=v(c,l,p,s,t[h+15],22,1236535329),l,p,t[h+1],5,-165796510),p=g(p,s,c,l,t[h+6],9,-1069501632),l=g(l,p,s,c,t[h+11],14,643717713),c=g(c,l,p,s,t[h+0],20,-373897302),s=g(s,c,l,p,t[h+5],5,-701558691),p=g(p,s,c,l,t[h+10],9,38016083),l=g(l,p,s,c,t[h+15],14,-660478335),c=g(c,l,p,s,t[h+4],20,-405537848),s=g(s,c,l,p,t[h+9],5,568446438),p=g(p,s,c,l,t[h+14],9,-1019803690),l=g(l,p,s,c,t[h+3],14,-187363961),c=g(c,l,p,s,t[h+8],20,1163531501),s=g(s,c,l,p,t[h+13],5,-1444681467),p=g(p,s,c,l,t[h+2],9,-51403784),l=g(l,p,s,c,t[h+7],14,1735328473),s=y(s,c=g(c,l,p,s,t[h+12],20,-1926607734),l,p,t[h+5],4,-378558),p=y(p,s,c,l,t[h+8],11,-2022574463),l=y(l,p,s,c,t[h+11],16,1839030562),c=y(c,l,p,s,t[h+14],23,-35309556),s=y(s,c,l,p,t[h+1],4,-1530992060),p=y(p,s,c,l,t[h+4],11,1272893353),l=y(l,p,s,c,t[h+7],16,-155497632),c=y(c,l,p,s,t[h+10],23,-1094730640),s=y(s,c,l,p,t[h+13],4,681279174),p=y(p,s,c,l,t[h+0],11,-358537222),l=y(l,p,s,c,t[h+3],16,-722521979),c=y(c,l,p,s,t[h+6],23,76029189),s=y(s,c,l,p,t[h+9],4,-640364487),p=y(p,s,c,l,t[h+12],11,-421815835),l=y(l,p,s,c,t[h+15],16,530742520),s=d(s,c=y(c,l,p,s,t[h+2],23,-995338651),l,p,t[h+0],6,-198630844),p=d(p,s,c,l,t[h+7],10,1126891415),l=d(l,p,s,c,t[h+14],15,-1416354905),c=d(c,l,p,s,t[h+5],21,-57434055),s=d(s,c,l,p,t[h+12],6,1700485571),p=d(p,s,c,l,t[h+3],10,-1894986606),l=d(l,p,s,c,t[h+10],15,-1051523),c=d(c,l,p,s,t[h+1],21,-2054922799),s=d(s,c,l,p,t[h+8],6,1873313359),p=d(p,s,c,l,t[h+15],10,-30611744),l=d(l,p,s,c,t[h+6],15,-1560198380),c=d(c,l,p,s,t[h+13],21,1309151649),s=d(s,c,l,p,t[h+4],6,-145523070),p=d(p,s,c,l,t[h+11],10,-1120210379),l=d(l,p,s,c,t[h+2],15,718787259),c=d(c,l,p,s,t[h+9],21,-343485551),s=s+m>>>0,c=c+x>>>0,l=l+b>>>0,p=p+w>>>0}return e.endian([s,c,l,p])})._ff=function(n,r,t,e,o,i,u){var f=n+(r&t|~r&e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._gg=function(n,r,t,e,o,i,u){var f=n+(r&e|t&~e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._hh=function(n,r,t,e,o,i,u){var f=n+(r^t^e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._ii=function(n,r,t,e,o,i,u){var f=n+(t^(r|~e))+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._blocksize=16,f._digestsize=16,n.exports=function(n,r){if(null==n)throw new Error("Illegal argument "+n);var t=e.wordsToBytes(f(n,r));return r&&r.asBytes?t:r&&r.asString?u.bytesToString(t):e.bytesToHex(t)}},function(n,r){var t,e;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(256*Math.random()));return r},bytesToWords:function(n){for(var r=[],t=0,e=0;t<n.length;t++,e+=8)r[e>>>5]|=n[t]<<24-e%32;return r},wordsToBytes:function(n){for(var r=[],t=0;t<32*n.length;t+=8)r.push(n[t>>>5]>>>24-t%32&255);return r},bytesToHex:function(n){for(var r=[],t=0;t<n.length;t++)r.push((n[t]>>>4).toString(16)),r.push((15&n[t]).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],t=0;t<n.length;t+=2)r.push(parseInt(n.substr(t,2),16));return r},bytesToBase64:function(n){for(var r=[],e=0;e<n.length;e+=3)for(var o=n[e]<<16|n[e+1]<<8|n[e+2],i=0;i<4;i++)8*e+6*i<=8*n.length?r.push(t.charAt(o>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],e=0,o=0;e<n.length;o=++e%4)0!=o&&r.push((t.indexOf(n.charAt(e-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(n.charAt(e))>>>6-2*o);return r}},n.exports=e},function(n,r){function t(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}
!function(n,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.fictional=r():n.fictional=r()}(this,(function(){return function(n){var r={};function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=n,t.c=r,t.d=function(n,r,e){t.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:e})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,r){if(1&r&&(n=t(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(t.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var o in n)t.d(e,o,function(r){return n[r]}.bind(null,o));return e},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},t.p="",t(t.s=11)}([function(n,r,t){var e=t(12),o=t(15),i=t(16);function u(n){return o(e(i(n)+"chino"))}u.hash2=function(n,r){return u(u(n)+u(r))},u.hash3=function(n,r,t){return u(u(n)+u(r)+u(t))},n.exports=u},function(n,r){n.exports=function(n,r,t){var e,o;return r=r||0,null==t?n>r?n:n+r:r===(t=Math.max(t,r))?r:r<=n&&n<=t?n:(o=0,(e=Math.floor(n))!==n&&(o=function(n){var r=n.toString();return+("0"+r.slice(r.indexOf(".")))}(n),t-=1),e%(t+1-r)+r+o)}},function(n,r){var t=Object.prototype.hasOwnProperty;n.exports=function(n,r){var e,o={};if(n)for(e in n)t.call(n,e)&&(o[e]=n[e]);if(r)for(e in r)t.call(r,e)&&(o[e]=r[e]);return o}},function(n,r,t){var e=t(0);n.exports=function(n,r){return"function"==typeof r?r(e(n)):r}},function(n,r){n.exports=function(n,r){return null==n?r:n}},function(n,r){var t={utf8:{stringToBytes:function(n){return t.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(t.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var r=[],t=0;t<n.length;t++)r.push(255&n.charCodeAt(t));return r},bytesToString:function(n){for(var r=[],t=0;t<n.length;t++)r.push(String.fromCharCode(n[t]));return r.join("")}}};n.exports=t},function(n,r,t){var e=t(0),o=e.hash2,i=t(3);function u(n,r){for(var t=o(n,"tuple"),u=r.length,f=-1,a=[];++f<u;)t=e(t),a.push(i(t,r[f]));return a}n.exports=function(n,r){return null!=r?u(n,r):(t=n,function(n){return u(n,t)});var t}},function(n,r){n.exports=function(n,r){return 0!==(r=+r)&&(1===r||n%(1/r)<1)}},function(n,r,t){var e=t(0),o=e.hash2,i=t(2),u=t(1),f=t(7),a=t(30),s=t(4),c=["a","ka","ki","ke","ko","ta","chi","shi","so","na","ni","no","ra","ha","hy","ma","mi","mu","me","mo","yu","yo","kai","va","vi","kin","rae","cea"],l=c.length;function p(n,r){for(var t,i,p=s((r=r||0).capitalize,!0),v=s(r.minSyllables,2),g=s(r.maxSyllables,4),y=s(r.unicode,!1),d=o(n,"word"),m=u(d,v,g),x="",b="",w=-1;++w<m;){t=b;do{d=e(d),b=c[d%l]}while(!h(t,b));x+=b}return f(d,y)&&(x=a(d,x)),p&&(x=(i=x)[0].toUpperCase()+i.slice(1)),x}function h(n,r){var t=n[n.length-1];return n!==r&&t!==r[0]&&t!==r[1]}p.options=function(n){var r=this;return t.options=p.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=p},function(n,r,t){var e=t(0),o=e.hash3,i=t(2),u=t(1),f=t(4),a=t(8);function s(n,r){var t=f((r=r||0).minSyllables,1),s=f(r.capitalize,"first"),c=!0===s||"all"===s,l=c||"first"===s,p=f(r.min,2),h=f(r.max,3),v=e(n),g=u(v,p,h),y=0;v=o(v,"words",y);for(var d,m=i(r,{minSyllables:t,capitalize:l}),x=i(r,{minSyllables:t,capitalize:c}),b=a(v,m),w=b;++y<g;){d=w;do{v=o(v,"words",y),w=a(v,x)}while(w.length===d.length);b+=" "+w}return b}s.options=function(n){var r=this;return t.options=s.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=s},function(n,r,t){var e=t(0),o=e.hash2,i=t(2),u=t(1),f=t(4),a=t(9);function s(n,r){var t=f((r=r||0).minWords,5),s=f(r.maxWords,8),c=f(r.minClauses,1),l=f(r.maxClauses,2),p=f(r.unicode,.382),h=o(n,"sentence"),v=u(h,c,l),g=0;h=e(h);for(var y=i(r,{capitalize:"first",min:t,max:s,unicode:p}),d=i(y,{capitalize:!1}),m=a(h,y);++g<v;)h=e(h),m+=", "+a(h,d);return m+"."}s.options=function(n){var r=this;return t.options=s.options,t;function t(t,e){return r(t,i(n,e))}},n.exports=s},function(n,r,t){r.hash=t(0),r.oneOf=t(17),r.someOf=t(18),r.tuple=t(6),r.shape=t(19),r.times=t(20),r.join=t(21),r.oneOfWeighted=t(23),r.int=t(24),r.float=t(25),r.char=t(26),r.word=t(8),r.words=t(9),r.sentence=t(10),r.paragraph=t(31),r.bool=t(32),r.dateString=t(33)},function(n,r,t){var e,o,i,u,f;e=t(13),o=t(5).utf8,i=t(14),u=t(5).bin,(f=function(n,r){n.constructor==String?n=r&&"binary"===r.encoding?u.stringToBytes(n):o.stringToBytes(n):i(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var t=e.bytesToWords(n),a=8*n.length,s=1732584193,c=-271733879,l=-1732584194,p=271733878,h=0;h<t.length;h++)t[h]=16711935&(t[h]<<8|t[h]>>>24)|4278255360&(t[h]<<24|t[h]>>>8);t[a>>>5]|=128<<a%32,t[14+(a+64>>>9<<4)]=a;var v=f._ff,g=f._gg,y=f._hh,d=f._ii;for(h=0;h<t.length;h+=16){var m=s,x=c,b=l,w=p;s=v(s,c,l,p,t[h+0],7,-680876936),p=v(p,s,c,l,t[h+1],12,-389564586),l=v(l,p,s,c,t[h+2],17,606105819),c=v(c,l,p,s,t[h+3],22,-1044525330),s=v(s,c,l,p,t[h+4],7,-176418897),p=v(p,s,c,l,t[h+5],12,1200080426),l=v(l,p,s,c,t[h+6],17,-1473231341),c=v(c,l,p,s,t[h+7],22,-45705983),s=v(s,c,l,p,t[h+8],7,1770035416),p=v(p,s,c,l,t[h+9],12,-1958414417),l=v(l,p,s,c,t[h+10],17,-42063),c=v(c,l,p,s,t[h+11],22,-1990404162),s=v(s,c,l,p,t[h+12],7,1804603682),p=v(p,s,c,l,t[h+13],12,-40341101),l=v(l,p,s,c,t[h+14],17,-1502002290),s=g(s,c=v(c,l,p,s,t[h+15],22,1236535329),l,p,t[h+1],5,-165796510),p=g(p,s,c,l,t[h+6],9,-1069501632),l=g(l,p,s,c,t[h+11],14,643717713),c=g(c,l,p,s,t[h+0],20,-373897302),s=g(s,c,l,p,t[h+5],5,-701558691),p=g(p,s,c,l,t[h+10],9,38016083),l=g(l,p,s,c,t[h+15],14,-660478335),c=g(c,l,p,s,t[h+4],20,-405537848),s=g(s,c,l,p,t[h+9],5,568446438),p=g(p,s,c,l,t[h+14],9,-1019803690),l=g(l,p,s,c,t[h+3],14,-187363961),c=g(c,l,p,s,t[h+8],20,1163531501),s=g(s,c,l,p,t[h+13],5,-1444681467),p=g(p,s,c,l,t[h+2],9,-51403784),l=g(l,p,s,c,t[h+7],14,1735328473),s=y(s,c=g(c,l,p,s,t[h+12],20,-1926607734),l,p,t[h+5],4,-378558),p=y(p,s,c,l,t[h+8],11,-2022574463),l=y(l,p,s,c,t[h+11],16,1839030562),c=y(c,l,p,s,t[h+14],23,-35309556),s=y(s,c,l,p,t[h+1],4,-1530992060),p=y(p,s,c,l,t[h+4],11,1272893353),l=y(l,p,s,c,t[h+7],16,-155497632),c=y(c,l,p,s,t[h+10],23,-1094730640),s=y(s,c,l,p,t[h+13],4,681279174),p=y(p,s,c,l,t[h+0],11,-358537222),l=y(l,p,s,c,t[h+3],16,-722521979),c=y(c,l,p,s,t[h+6],23,76029189),s=y(s,c,l,p,t[h+9],4,-640364487),p=y(p,s,c,l,t[h+12],11,-421815835),l=y(l,p,s,c,t[h+15],16,530742520),s=d(s,c=y(c,l,p,s,t[h+2],23,-995338651),l,p,t[h+0],6,-198630844),p=d(p,s,c,l,t[h+7],10,1126891415),l=d(l,p,s,c,t[h+14],15,-1416354905),c=d(c,l,p,s,t[h+5],21,-57434055),s=d(s,c,l,p,t[h+12],6,1700485571),p=d(p,s,c,l,t[h+3],10,-1894986606),l=d(l,p,s,c,t[h+10],15,-1051523),c=d(c,l,p,s,t[h+1],21,-2054922799),s=d(s,c,l,p,t[h+8],6,1873313359),p=d(p,s,c,l,t[h+15],10,-30611744),l=d(l,p,s,c,t[h+6],15,-1560198380),c=d(c,l,p,s,t[h+13],21,1309151649),s=d(s,c,l,p,t[h+4],6,-145523070),p=d(p,s,c,l,t[h+11],10,-1120210379),l=d(l,p,s,c,t[h+2],15,718787259),c=d(c,l,p,s,t[h+9],21,-343485551),s=s+m>>>0,c=c+x>>>0,l=l+b>>>0,p=p+w>>>0}return e.endian([s,c,l,p])})._ff=function(n,r,t,e,o,i,u){var f=n+(r&t|~r&e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._gg=function(n,r,t,e,o,i,u){var f=n+(r&e|t&~e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._hh=function(n,r,t,e,o,i,u){var f=n+(r^t^e)+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._ii=function(n,r,t,e,o,i,u){var f=n+(t^(r|~e))+(o>>>0)+u;return(f<<i|f>>>32-i)+r},f._blocksize=16,f._digestsize=16,n.exports=function(n,r){if(null==n)throw new Error("Illegal argument "+n);var t=e.wordsToBytes(f(n,r));return r&&r.asBytes?t:r&&r.asString?u.bytesToString(t):e.bytesToHex(t)}},function(n,r){var t,e;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(256*Math.random()));return r},bytesToWords:function(n){for(var r=[],t=0,e=0;t<n.length;t++,e+=8)r[e>>>5]|=n[t]<<24-e%32;return r},wordsToBytes:function(n){for(var r=[],t=0;t<32*n.length;t+=8)r.push(n[t>>>5]>>>24-t%32&255);return r},bytesToHex:function(n){for(var r=[],t=0;t<n.length;t++)r.push((n[t]>>>4).toString(16)),r.push((15&n[t]).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],t=0;t<n.length;t+=2)r.push(parseInt(n.substr(t,2),16));return r},bytesToBase64:function(n){for(var r=[],e=0;e<n.length;e+=3)for(var o=n[e]<<16|n[e+1]<<8|n[e+2],i=0;i<4;i++)8*e+6*i<=8*n.length?r.push(t.charAt(o>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],e=0,o=0;e<n.length;o=++e%4)0!=o&&r.push((t.indexOf(n.charAt(e-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(n.charAt(e))>>>6-2*o);return r}},n.exports=e},function(n,r){function t(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}
/*!

@@ -3,0 +3,0 @@ * Determine if an object is a Buffer

{
"name": "fictional",
"description": "Generate fake data deterministically from a given input",
"version": "0.4.8",
"version": "0.4.11",
"type": "commonjs",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -475,3 +475,3 @@ # `fictional`

letter
- **`unicode=true`:** whether or not the string should contain non-ascii unicode
- **`unicode=false`:** whether or not the string should contain non-ascii unicode
characters. If `true` is given, each returned word will always contain a

@@ -512,3 +512,3 @@ single unicode character. If `false` is given, each returned word will never

case letters. If `true` or `'all'` is given, each string returned will start with an upper case letter in each word. If `'first'` is given, for each string returned, only the first word will start with an upper case letter. If `false` is given, each string returned will always contain only lower case letters.
- **`unicode=true`:** whether or not the string should contain non-ascii unicode
- **`unicode=false`:** whether or not the string should contain non-ascii unicode
characters. If `true` is given, each returned word will always contain a

@@ -515,0 +515,0 @@ single unicode character. If `false` is given, each returned word will never

@@ -45,3 +45,3 @@ var hash = require('./hash')

var DEFAULT_CAPITALIZE = true
var DEFAULT_UNICODE = true
var DEFAULT_UNICODE = false

@@ -48,0 +48,0 @@ function word(input, opts) {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc