diff options
| author | Kumar Priyansh <[email protected]> | 2020-01-03 18:34:23 +0530 |
|---|---|---|
| committer | Kumar Priyansh <[email protected]> | 2020-01-03 18:34:23 +0530 |
| commit | c3373becc9a1393b2e03c8cd6c154601481a60dd (patch) | |
| tree | a8a31f613aef864d8d481ed57dc2c97490dfd328 /cordova/node_modules/xml-escape | |
| parent | 2917c8eda330a126b530dd83573670cbc98a4206 (diff) | |
| download | WeatherApp-c3373becc9a1393b2e03c8cd6c154601481a60dd.tar.xz WeatherApp-c3373becc9a1393b2e03c8cd6c154601481a60dd.zip | |
Rewriting the app from scratch with Swift 5
Diffstat (limited to 'cordova/node_modules/xml-escape')
| -rwxr-xr-x | cordova/node_modules/xml-escape/.npmignore | 15 | ||||
| -rwxr-xr-x | cordova/node_modules/xml-escape/LICENSE | 20 | ||||
| -rwxr-xr-x | cordova/node_modules/xml-escape/README.md | 38 | ||||
| -rwxr-xr-x | cordova/node_modules/xml-escape/index.js | 22 | ||||
| -rwxr-xr-x | cordova/node_modules/xml-escape/package.json | 57 | ||||
| -rwxr-xr-x | cordova/node_modules/xml-escape/test.js | 29 |
6 files changed, 0 insertions, 181 deletions
diff --git a/cordova/node_modules/xml-escape/.npmignore b/cordova/node_modules/xml-escape/.npmignore deleted file mode 100755 index a72b52e..0000000 --- a/cordova/node_modules/xml-escape/.npmignore +++ /dev/null @@ -1,15 +0,0 @@ -lib-cov -*.seed -*.log -*.csv -*.dat -*.out -*.pid -*.gz - -pids -logs -results - -npm-debug.log -node_modules diff --git a/cordova/node_modules/xml-escape/LICENSE b/cordova/node_modules/xml-escape/LICENSE deleted file mode 100755 index bd261ef..0000000 --- a/cordova/node_modules/xml-escape/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Michael Hernandez - -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. diff --git a/cordova/node_modules/xml-escape/README.md b/cordova/node_modules/xml-escape/README.md deleted file mode 100755 index 5faf9f9..0000000 --- a/cordova/node_modules/xml-escape/README.md +++ /dev/null @@ -1,38 +0,0 @@ -xml-escape -========== - -Escape XML in javascript (NodeJS) - -npm install xml-escape - -```javascript -// Warning escape is a reserved word, so maybe best to use xmlescape for var name -var xmlescape = require('xml-escape'); - -xmlescape('"hello" \'world\' & false < true > -1'); - -// output -// '"hello" 'world' & false < true > -1' - -// don't escape some characters -xmlescape('"hello" \'world\' & false < true > -1', '>"&') - -// output -// '"hello" 'world' & false < true > -1' -``` - - -There is also now an ignore function thanks to @jayflo - -```javascript -esc = require('./'); - -ignore = '"<&' -// note you should never ignore an & -output = esc('I am "<¬>" escaped', ignore) -console.log(output) - -//I am "<¬>" escaped -``` - -[](https://bitdeli.com/free "Bitdeli Badge") diff --git a/cordova/node_modules/xml-escape/index.js b/cordova/node_modules/xml-escape/index.js deleted file mode 100755 index 8c37325..0000000 --- a/cordova/node_modules/xml-escape/index.js +++ /dev/null @@ -1,22 +0,0 @@ - - -var escape = module.exports = function escape(string, ignore) { - var pattern; - - if (string === null || string === undefined) return; - - ignore = (ignore || '').replace(/[^&"<>\']/g, ''); - pattern = '([&"<>\'])'.replace(new RegExp('[' + ignore + ']', 'g'), ''); - - return string.replace(new RegExp(pattern, 'g'), function(str, item) { - return escape.map[item]; - }) -} - -var map = escape.map = { - '>': '>' - , '<': '<' - , "'": ''' - , '"': '"' - , '&': '&' -}
\ No newline at end of file diff --git a/cordova/node_modules/xml-escape/package.json b/cordova/node_modules/xml-escape/package.json deleted file mode 100755 index 22fe803..0000000 --- a/cordova/node_modules/xml-escape/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "_from": "[email protected]", - "_id": "[email protected]", - "_inBundle": true, - "_integrity": "sha1-OQTBQ/qOs6ADDsZG0pAqLxtwbEQ=", - "_location": "/cordova-ios/xml-escape", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "[email protected]", - "name": "xml-escape", - "escapedName": "xml-escape", - "rawSpec": "1.1.0", - "saveSpec": null, - "fetchSpec": "1.1.0" - }, - "_requiredBy": [ - "/cordova-ios" - ], - "_resolved": "https://registry.npmjs.org/xml-escape/-/xml-escape-1.1.0.tgz", - "_shasum": "3904c143fa8eb3a0030ec646d2902a2f1b706c44", - "_spec": "[email protected]", - "_where": "/Users/brodybits/Documents/cordova/cordova-ios", - "author": { - "name": "Michael Hernandez - [email protected]" - }, - "bugs": { - "url": "https://github.com/miketheprogrammer/xml-escape/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "Escape XML ", - "devDependencies": { - "tape": "~2.4.2" - }, - "homepage": "https://github.com/miketheprogrammer/xml-escape", - "keywords": [ - "Escape", - "XML", - "Unesacpe", - "encoding", - "xml-escape" - ], - "license": "MIT License", - "main": "index.js", - "name": "xml-escape", - "repository": { - "type": "git", - "url": "git://github.com/miketheprogrammer/xml-escape.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.1.0" -} diff --git a/cordova/node_modules/xml-escape/test.js b/cordova/node_modules/xml-escape/test.js deleted file mode 100755 index 21ad218..0000000 --- a/cordova/node_modules/xml-escape/test.js +++ /dev/null @@ -1,29 +0,0 @@ -var test = require('tape'); -var escape = require('./index'); -test("Characters should be escaped properly", function (t) { - t.plan(1); - - t.equals(escape('" \' < > &'), '" ' < > &'); -}) - -test("Module should respect ignore string", function (t) { - t.plan(3); - - t.equals(escape('" \' < > &', '"'), '" ' < > &'); - t.equals(escape('" \' < > &', '>&'), '" ' < > &'); - t.equals(escape('" \' < > &', '"\'<>&'), '" \' < > &'); -}) - -test("Module should not escape random characters", function (t) { - t.plan(1); - - t.equals(escape('<[whats up]>', '<]what'), '<[whats up]>'); -}) - -test("Module should not crash on null or undefined input", function (t) { - t.plan(3); - - t.equals((escape("")), ""); - t.doesNotThrow(function(){escape(null);}, TypeError); - t.doesNotThrow(function(){escape(undefined);}, TypeError); -}) |
