first commit

This commit is contained in:
DanielRamirezGe
2020-01-14 20:43:08 -06:00
parent 3557894f7f
commit 5eecfbf6cd
26326 changed files with 2434803 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 Adam Miller
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+5
View File
@@ -0,0 +1,5 @@
# document.currentScript Polyfill
#### An exceptionally slim (~310kb minified) polyfill for document.currentScript in IE9+
This polyfill may not adhere strictly to spec when called in async code or in a callback. In these situations the spec calls for document.currentScript to return null. However, for the grand majority of your document.currentScript needs, this polyfill will do the job!
+36
View File
@@ -0,0 +1,36 @@
// document.currentScript polyfill by Adam Miller
// MIT license
(function(document){
var currentScript = "currentScript",
scripts = document.getElementsByTagName('script'); // Live NodeList collection
// If browser needs currentScript polyfill, add get currentScript() to the document object
if (!(currentScript in document)) {
Object.defineProperty(document, currentScript, {
get: function(){
// IE 6-10 supports script readyState
// IE 10+ support stack trace
try { throw new Error(); }
catch (err) {
// Find the second match for the "at" string to get file src url from stack.
// Specifically works with the format of stack traces in IE.
var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
// For all scripts on the page, if src matches or if ready state is interactive, return the script tag
for(i in scripts){
if(scripts[i].src == res || scripts[i].readyState == "interactive"){
return scripts[i];
}
}
// If no match, return null
return null;
}
}
});
}
})(document);
+46
View File
@@ -0,0 +1,46 @@
{
"_from": "current-script-polyfill@^1.0.0",
"_id": "current-script-polyfill@1.0.0",
"_inBundle": false,
"_integrity": "sha1-8xz35PPiGLBybnOMqSoC00iO9hU=",
"_location": "/current-script-polyfill",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "current-script-polyfill@^1.0.0",
"name": "current-script-polyfill",
"escapedName": "current-script-polyfill",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/@vue/cli-service"
],
"_resolved": "https://registry.npmjs.org/current-script-polyfill/-/current-script-polyfill-1.0.0.tgz",
"_shasum": "f31cf7e4f3e218b0726e738ca92a02d3488ef615",
"_spec": "current-script-polyfill@^1.0.0",
"_where": "/home/george/citwa/red_de_investigacion_front/first/node_modules/@vue/cli-service",
"author": {
"name": "Adam Miller"
},
"bugs": {
"url": "https://github.com/epicmiller/currentScript-polyfill/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "An exceptionally slim (~310kb minified) polyfill for document.currentScript in IE9+",
"devDependencies": {},
"homepage": "https://github.com/epicmiller/currentScript-polyfill#readme",
"license": "MIT",
"main": "currentScript.js",
"name": "current-script-polyfill",
"repository": {
"type": "git",
"url": "git+https://github.com/epicmiller/currentScript-polyfill.git"
},
"scripts": {},
"version": "1.0.0"
}