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

fastestsmallesttextencoderdecoder

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastestsmallesttextencoderdecoder - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

EncoderDecoderTogether.min.js.map

5

EncoderDecoderTogether.min.js

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

'use strict';(function(f){function q(b){var a=b.charCodeAt(0)<<24,c=r(~a)|0,d=0,l=b.length|0,g="";if(5>c&&l>=c){a=a<<c>>>24+c;for(d=1;d<c;d=d+1|0)a=a<<6|b.charCodeAt(d)&63;65535>=a?g+=e(a):1114111>=a?(a=a-65536|0,g+=e((a>>10)+55296|0,(a&1023)+56320|0)):d=0}for(;d<l;d=d+1|0)g+="\ufffd";return g}function m(){}function t(b){var a=b.charCodeAt(0)|0;if(55296<=a&&56319>=a){var c=b.charCodeAt(1)|0;if(c===c&&56320<=c&&57343>=c){if(a=(a-55296<<10)+c-56320+65536|0,65535<a)return e(240|a>>>18,128|a>>>12&63,128|a>>>6&63,
128|a&63)}else return e(239,191,189)}return 127>=a?b:2047>=a?e(192|a>>>6,128|a&63):e(224|a>>>12,128|a>>>6&63,128|a&63)}function n(){}var u=Math.log,v=Math.LN2,r=Math.clz32||function(b){return 31-u(b>>>0)/v|0},e=String.fromCharCode,p={}.toString,h=f.Uint8Array,k=h||Array,w=p.call((f.ArrayBuffer||k).prototype);m.prototype.decode=function(b){b=b&&b.buffer||b;if(p.call(b)!==w)throw Error("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");
b=h?new k(b):b;for(var a="",c=0,d=b.length|0;c<d;c=c+32768|0)a+=e.apply(0,b[h?"subarray":"slice"](c,c+32768|0));return a.replace(/[\xc0-\xff][\x80-\xbf]*/g,q)};f.TextDecoder||(f.TextDecoder=m);n.prototype.encode=function(b){b=void 0===b?"":(""+b).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,t);for(var a=b.length|0,c=new k(a),d=0;d<a;d=d+1|0)c[d]=b.charCodeAt(d);return c};f.TextEncoder||(f.TextEncoder=n)})("undefined"==typeof global?"undefined"==typeof self?this:self:global);//AnonyCo
(function(a){function d(){}function e(){}var c={}.toString,b=a.SharedArrayBuffer;b&&c.call(b);var f=(b=a.Uint8Array)||Array;c.call((b?ArrayBuffer:f).prototype);a.TextDecoder||(a.TextDecoder=d);a.TextEncoder||(a.TextEncoder=e)})("undefined"==typeof global?"undefined"==typeof self?this:self:global);//AnonyCo
//# sourceMappingURL=EncoderDecoderTogether.min.js.map

4

NodeJS/EncoderAndDecoderNodeJS.min.js
'use strict';(function(f){var y=Math.log,z=Math.LN2,A=Math.clz32||function(b){return 31-y(b>>>0)/z|0},g=String.fromCharCode,k={}.toString,n=f.SharedArrayBuffer,B=n?k.call(n):"",h=f.Uint8Array,C=h?k.call(ArrayBuffer.prototype):"",e=f.Buffer;try{!e&&f.require&&(e=f.require("Buffer"));var p=e.prototype,D=e?k.call(p):""}catch(b){}var q=!!h&&!e,r=!e||!!h&&h.prototype.isPrototypeOf(p);if(q||e){var m=function(b){b.TextDecoder||(b.TextDecoder=t);b.TextEncoder||(b.TextEncoder=u);b!==f&&(b.decode=v,b.encode=
w);return b},w=function(b){b=void 0===b?"":(""+b).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,E);for(var a=b.length|0,c=q?new h(a):e.alloc?e.alloc(a):new e(a),d=0;d<a;d=d+1|0)c[d]=b.charCodeAt(d)|0;return c},u=function(){},E=function(b){var a=b.charCodeAt(0)|0;if(55296<=a&&56319>=a){var c=b.charCodeAt(1)|0;if(c===c&&56320<=c&&57343>=c){if(a=(a-55296<<10)+c-56320+65536|0,65535<a)return g(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|a&63)}else return g(239,191,189)}return 127>=
a?b:2047>=a?g(192|a>>>6,128|a&63):g(224|a>>>12,128|a>>>6&63,128|a&63)},v=function(b){b=b&&b.buffer||b;var a=k.call(b);if(a!==C&&a!==D&&a!==B)throw Error("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");b=r?new h(b):b;a="";for(var c=0,d=b.length|0;c<d;c=c+32768|0)a+=g.apply(0,b[r?"subarray":"slice"](c,c+32768|0));return a.replace(/[\xc0-\xff][\x80-\xbf]*/g,F)},t=function(){},F=function(b){var a=b.charCodeAt(0)<<24,c=A(~a)|0,d=0,x=
b.length|0,l="";if(5>c&&x>=c){a=a<<c>>>24+c;for(d=1;d<c;d=d+1|0)a=a<<6|b.charCodeAt(d)&63;65535>=a?l+=g(a):1114111>=a?(a=a-65536|0,l+=g((a>>10)+55296|0,(a&1023)+56320|0)):d=0}for(;d<x;d=d+1|0)l+="\ufffd";return l};t.prototype.decode=v;u.prototype.encode=w;typeof define==typeof m&&define.amd?define(function(){return m({})}):m("object"==typeof exports?exports:f)}})("undefined"==typeof global?"undefined"==typeof self?this:self:global);//AnonyCo
a?b:2047>=a?g(192|a>>>6,128|a&63):g(224|a>>>12,128|a>>>6&63,128|a&63)},v=function(b){b=b&&b.buffer||b;var a=k.call(b);if(a!==C&&a!==D&&a!==B&&"[object ArrayBuffer]"!==a)throw Error("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");b=r?new h(b):b;a="";for(var c=0,d=b.length|0;c<d;c=c+32768|0)a+=g.apply(0,b[r?"subarray":"slice"](c,c+32768|0));return a.replace(/[\xc0-\xff][\x80-\xbf]*/g,F)},t=function(){},F=function(b){var a=b.charCodeAt(0)<<
24,c=A(~a)|0,d=0,x=b.length|0,l="";if(5>c&&x>=c){a=a<<c>>>24+c;for(d=1;d<c;d=d+1|0)a=a<<6|b.charCodeAt(d)&63;65535>=a?l+=g(a):1114111>=a?(a=a-65536|0,l+=g((a>>10)+55296|0,(a&1023)+56320|0)):d=0}for(;d<x;d=d+1|0)l+="\ufffd";return l};t.prototype.decode=v;u.prototype.encode=w;typeof define==typeof m&&define.amd?define(function(){return m({})}):m("object"==typeof exports?exports:f)}})("undefined"==typeof global?"undefined"==typeof self?this:self:global);//AnonyCo
//# sourceMappingURL=EncoderAndDecoderNodeJS.min.js.map
'use strict';var e="undefined"==typeof global?self:global,f=Math.log,g=Math.LN2,h=Math.clz32||function(b){return 31-f(b>>>0)/g|0},k=String.fromCharCode,m={}.toString,n=e.SharedArrayBuffer,p=n?m.call(n):"",q=e.Uint8Array,r=q?m.call(ArrayBuffer.prototype):"",t=e.Buffer;try{!t&&e.require&&(t=e.require("Buffer"));var u=t.prototype,w=m.call(u)}catch(b){}var x=!!q&&!t,y=!t||!!q&&q.prototype.isPrototypeOf(u);
function z(b){var a=b.charCodeAt(0)<<24,c=h(~a)|0,d=0,v=b.length|0,l="";if(5>c&&v>=c){a=a<<c>>>24+c;for(d=1;d<c;d=d+1|0)a=a<<6|b.charCodeAt(d)&63;65535>=a?l+=k(a):1114111>=a?(a=a-65536|0,l+=k((a>>10)+55296|0,(a&1023)+56320|0)):d=0}for(;d<v;d=d+1|0)l+="\ufffd";return l}function A(){}
function B(b){b=b&&b.buffer||b;var a=m.call(b);if(a!==r&&a!==w&&a!==p)throw Error("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");b=y?new q(b):b;a="";for(var c=0,d=b.length|0;c<d;c=c+32768|0)a+=k.apply(0,b[y?"subarray":"slice"](c,c+32768|0));return a.replace(/[\xc0-\xff][\x80-\xbf]*/g,z)}A.prototype.decode=B;
function B(b){b=b&&b.buffer||b;var a=m.call(b);if(a!==r&&a!==w&&a!==p&&"[object ArrayBuffer]"!==a)throw Error("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'");b=y?new q(b):b;a="";for(var c=0,d=b.length|0;c<d;c=c+32768|0)a+=k.apply(0,b[y?"subarray":"slice"](c,c+32768|0));return a.replace(/[\xc0-\xff][\x80-\xbf]*/g,z)}A.prototype.decode=B;
function C(b){var a=b.charCodeAt(0)|0;if(55296<=a&&56319>=a){var c=b.charCodeAt(1)|0;if(c===c&&56320<=c&&57343>=c){if(a=(a-55296<<10)+c-56320+65536|0,65535<a)return k(240|a>>>18,128|a>>>12&63,128|a>>>6&63,128|a&63)}else return k(239,191,189)}return 127>=a?b:2047>=a?k(192|a>>>6,128|a&63):k(224|a>>>12,128|a>>>6&63,128|a&63)}function D(){}
function E(b){b=void 0===b?"":(""+b).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,C);for(var a=b.length|0,c=x?new q(a):t.alloc?t.alloc(a):new t(a),d=0;d<a;d=d+1|0)c[d]=b.charCodeAt(d)|0;return c}D.prototype.encode=E;var F=e.TextDecoder||A,G=e.TextEncoder||D;export var TextDecoder=F;export var TextEncoder=G;export var decode=F===A?B:new F.decode;export var encode=G===D?E:new G.encode;//AnonyCo
//# sourceMappingURL=EncoderAndDecoderNodeJS.min.module.js.map
{
"name": "fastestsmallesttextencoderdecoder",
"version": "1.0.11",
"version": "1.0.12",
"description": "The fastest smallest Javascript polyfill for the encode of TextEncoder and decode of TextDecoder for UTF-8 only. Made by AnonyCo with ❤️ from 🐕s.",

@@ -34,6 +34,7 @@ "keywords": [

"install-dev": "npm install; mkdir compiler-latest 2> /dev/null; wget -P ./compiler-latest/ 'https://dl.google.com/closure-compiler/compiler-latest.tar.gz'; unlink ./closure-compiler.jar 2> /dev/null; cd compiler-latest; tar xvzf compiler-latest.tar.gz; bash -c 'for j in closure-compiler-*; do mv -- \"$j\" \"../closure-compiler.jar\" 1> /dev/null; done' 1> /dev/null 2> /dev/null; cd ..; rm -rf compiler-latest 2> /dev/null",
"build": "npm run build-require; npm run build-module",
"build-require": "java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --source_map_format V3 --js './NodeJS/EncoderAndDecoderNodeJS.src.js' --js_output_file ./NodeJS/EncoderAndDecoderNodeJS.min.js --create_source_map ./NodeJS/EncoderAndDecoderNodeJS.min.js.map --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=EncoderAndDecoderNodeJS.min.js.map' --language_out ECMASCRIPT_2017",
"build-module": "java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --source_map_format V3 --js './NodeJS/EncoderAndDecoderNodeJS.src.module.js' --js_output_file ./NodeJS/EncoderAndDecoderNodeJS.min.module.js --create_source_map ./NodeJS/EncoderAndDecoderNodeJS.min.module.js.map --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=EncoderAndDecoderNodeJS.min.module.js.map' --language_out ECMASCRIPT_2017; sed -i -e 's/window\\.export_/export var /g' './NodeJS/EncoderAndDecoderNodeJS.min.module.js'",
"build-es6": "java -Xms32M -Xmx1024M -jar ./closure_compiler.jar --source_map_format V3 --js './NodeJS/EncoderAndDecoderNodeJS.src.module.js' --js_output_file ./NodeJS/EncoderAndDecoderNodeJS.min.module.js --create_source_map ./NodeJS/EncoderAndDecoderNodeJS.min.module.js.map --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=EncoderAndDecoderNodeJS.min.module.js.map' --language_out ECMASCRIPT_2017; sed -i -e 's/window\\.export_/export var /g' './NodeJS/EncoderAndDecoderNodeJS.min.module.js'"
"build": "npm run build-browser; npm run build-require; npm run build-module",
"build-browser": "java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --source_map_format V3 --js './EncoderDecoderTogether.src.js' --js_output_file './EncoderDecoderTogether.min.js' --create_source_map './EncoderDecoderTogether.min.js.map' --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=EncoderDecoderTogether.min.js.map'; java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --source_map_format V3 --js './individual/FastestTextDecoderPolyfill.src.js' --js_output_file './individual/FastestTextDecoderPolyfill.min.js' --create_source_map './individual/FastestTextDecoderPolyfill.min.js.map' --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=FastestTextDecoderPolyfill.min.js.map'; java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --source_map_format V3 --js './individual/FastestTextEncoderPolyfill.src.js' --js_output_file './individual/FastestTextEncoderPolyfill.min.js' --create_source_map './individual/FastestTextEncoderPolyfill.min.js.map' --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=FastestTextEncoderPolyfill.min.js.map'",
"build-require": "java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --source_map_format V3 --js './NodeJS/EncoderAndDecoderNodeJS.src.js' --js_output_file ./NodeJS/EncoderAndDecoderNodeJS.min.js --create_source_map ./NodeJS/EncoderAndDecoderNodeJS.min.js.map --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=EncoderAndDecoderNodeJS.min.js.map' --language_out ECMASCRIPT_2017",
"build-module": "java -Xms32M -Xmx1024M -jar ./closure-compiler.jar --source_map_format V3 --js './NodeJS/EncoderAndDecoderNodeJS.src.module.js' --js_output_file ./NodeJS/EncoderAndDecoderNodeJS.min.module.js --create_source_map ./NodeJS/EncoderAndDecoderNodeJS.min.module.js.map --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=EncoderAndDecoderNodeJS.min.module.js.map' --language_out ECMASCRIPT_2017; sed -i -e 's/window\\.export_/export var /g' './NodeJS/EncoderAndDecoderNodeJS.min.module.js'",
"build-es6": "java -Xms32M -Xmx1024M -jar ./closure_compiler.jar --source_map_format V3 --js './NodeJS/EncoderAndDecoderNodeJS.src.module.js' --js_output_file ./NodeJS/EncoderAndDecoderNodeJS.min.module.js --create_source_map ./NodeJS/EncoderAndDecoderNodeJS.min.module.js.map --compilation_level ADVANCED_OPTIMIZATIONS --output_wrapper '%output%//AnonyCo\n//# sourceMappingURL=EncoderAndDecoderNodeJS.min.module.js.map' --language_out ECMASCRIPT_2017; sed -i -e 's/window\\.export_/export var /g' './NodeJS/EncoderAndDecoderNodeJS.min.module.js'"
},

@@ -56,3 +57,3 @@ "license": "Unlicense",

"EncoderDecoderTogether.min.js",
"EncoderDecoderTogether.src.js",
"EncoderDecoderTogether.min.js.map",
"NodeJS/EncoderAndDecoderNodeJS.min.js",

@@ -59,0 +60,0 @@ "NodeJS/EncoderAndDecoderNodeJS.min.js.map",

Sorry, the diff of this file is not supported yet

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