Skip to content

Commit

Permalink
master
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdne committed Mar 23, 2022
1 parent e5cb05f commit 215da86
Show file tree
Hide file tree
Showing 163 changed files with 66,040 additions and 66,919 deletions.
629 changes: 629 additions & 0 deletions opal/master/await.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions opal/master/await.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added opal/master/await.min.js.gz
Binary file not shown.
61 changes: 26 additions & 35 deletions opal/master/base64.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* Generated by Opal 1.3.0.dev */
Opal.modules["base64"] = function(Opal) {
var self = Opal.top, $nesting = [], nil = Opal.nil, $$$ = Opal.$$$, $$ = Opal.$$, $module = Opal.module, $hash2 = Opal.hash2, $truthy = Opal.truthy;
Opal.modules["base64"] = function(Opal) {/* Generated by Opal 1.5.0.dev */
var $nesting = [], nil = Opal.nil, $module = Opal.module, $defs = Opal.defs, $hash2 = Opal.hash2, $truthy = Opal.truthy;

Opal.add_stubs(['$raise', '$delete']);
Opal.add_stubs('raise,delete');
return (function($base, $parent_nesting) {
var self = $module($base, 'Base64');

var $nesting = [self].concat($parent_nesting), $Base64_decode64$1, $Base64_encode64$2, $Base64_strict_decode64$3, $Base64_strict_encode64$4, $Base64_urlsafe_decode64$5, $Base64_urlsafe_encode64$6;
var $nesting = [self].concat($parent_nesting), $$ = Opal.$r($nesting);



Expand All @@ -30,7 +29,7 @@ Opal.modules["base64"] = function(Opal) {
) {
charCode = str.charCodeAt(idx += 3/4);
if (charCode > 0xFF) {
self.$raise($$($nesting, 'ArgumentError'), "invalid character (failed: The string to be encoded contains characters outside of the Latin1 range.)");
self.$raise($$('ArgumentError'), "invalid character (failed: The string to be encoded contains characters outside of the Latin1 range.)");
}
block = block << 8 | charCode;
}
Expand All @@ -43,7 +42,7 @@ Opal.modules["base64"] = function(Opal) {
decode = function (input) {
var str = String(input).replace(/=+$/, '');
if (str.length % 4 == 1) {
self.$raise($$($nesting, 'ArgumentError'), "invalid base64 (failed: The string to be decoded is not correctly encoded.)");
self.$raise($$('ArgumentError'), "invalid base64 (failed: The string to be decoded is not correctly encoded.)");
}
/* eslint-disable */
for (
Expand All @@ -64,33 +63,28 @@ Opal.modules["base64"] = function(Opal) {
/* eslint-enable */
};
;
Opal.defs(self, '$decode64', $Base64_decode64$1 = function $$decode64(string) {
var self = this;

$defs(self, '$decode64', function $$decode64(string) {

return decode(string.replace(/\r?\n/g, ''));
}, $Base64_decode64$1.$$arity = 1);
Opal.defs(self, '$encode64', $Base64_encode64$2 = function $$encode64(string) {
var self = this;

}, 1);
$defs(self, '$encode64', function $$encode64(string) {

return encode(string).replace(/(.{60})/g, "$1\n").replace(/([^\n])$/g, "$1\n");
}, $Base64_encode64$2.$$arity = 1);
Opal.defs(self, '$strict_decode64', $Base64_strict_decode64$3 = function $$strict_decode64(string) {
var self = this;

}, 1);
$defs(self, '$strict_decode64', function $$strict_decode64(string) {

return decode(string);
}, $Base64_strict_decode64$3.$$arity = 1);
Opal.defs(self, '$strict_encode64', $Base64_strict_encode64$4 = function $$strict_encode64(string) {
var self = this;

}, 1);
$defs(self, '$strict_encode64', function $$strict_encode64(string) {

return encode(string);
}, $Base64_strict_encode64$4.$$arity = 1);
Opal.defs(self, '$urlsafe_decode64', $Base64_urlsafe_decode64$5 = function $$urlsafe_decode64(string) {
var self = this;

}, 1);
$defs(self, '$urlsafe_decode64', function $$urlsafe_decode64(string) {

return decode(string.replace(/\-/g, '+').replace(/_/g, '/'));
}, $Base64_urlsafe_decode64$5.$$arity = 1);
return (Opal.defs(self, '$urlsafe_encode64', $Base64_urlsafe_encode64$6 = function $$urlsafe_encode64(string, $kwargs) {
var padding, self = this, str = nil;
}, 1);
return $defs(self, '$urlsafe_encode64', function $$urlsafe_encode64(string, $kwargs) {
var padding, str = nil;



Expand All @@ -101,15 +95,12 @@ Opal.modules["base64"] = function(Opal) {
};

padding = $kwargs.$$smap["padding"];
if (padding == null) {
padding = true
};
if (padding == null) padding = true;
str = encode(string).replace(/\+/g, '-').replace(/\//g, '_');
if ($truthy(padding)) {
} else {
if (!$truthy(padding)) {
str = str.$delete("=")
};
return str;
}, $Base64_urlsafe_encode64$6.$$arity = -2), nil) && 'urlsafe_encode64';
}, -2);
})($nesting[0], $nesting)
};
Loading

0 comments on commit 215da86

Please sign in to comment.