mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
feat: add @actions/cache
This commit is contained in:
parent
b15fb7d098
commit
16e8c96a41
1932 changed files with 261172 additions and 10 deletions
34
node_modules/xml2js/lib/processors.js
generated
vendored
Normal file
34
node_modules/xml2js/lib/processors.js
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
// Generated by CoffeeScript 1.12.7
|
||||
(function() {
|
||||
"use strict";
|
||||
var prefixMatch;
|
||||
|
||||
prefixMatch = new RegExp(/(?!xmlns)^.*:/);
|
||||
|
||||
exports.normalize = function(str) {
|
||||
return str.toLowerCase();
|
||||
};
|
||||
|
||||
exports.firstCharLowerCase = function(str) {
|
||||
return str.charAt(0).toLowerCase() + str.slice(1);
|
||||
};
|
||||
|
||||
exports.stripPrefix = function(str) {
|
||||
return str.replace(prefixMatch, '');
|
||||
};
|
||||
|
||||
exports.parseNumbers = function(str) {
|
||||
if (!isNaN(str)) {
|
||||
str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str);
|
||||
}
|
||||
return str;
|
||||
};
|
||||
|
||||
exports.parseBooleans = function(str) {
|
||||
if (/^(?:true|false)$/i.test(str)) {
|
||||
str = str.toLowerCase() === 'true';
|
||||
}
|
||||
return str;
|
||||
};
|
||||
|
||||
}).call(this);
|
Loading…
Add table
Add a link
Reference in a new issue