diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 5fd884a..f42dcc7 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -96,94 +96,3 @@ Escapes the input text. #### Return - **String** The escpaed HTML output. -### `linkify(txt)` -Adds HTML link elements. - -#### Params - -- **String** `txt`: The input text. - -#### Return -- **String** The HTML output containing link elements. - -### `ansiToHtml(txt, options)` -Converts ANSI input into HTML output. - -#### Params - -- **String** `txt`: The input text. -- **Object** `options`: The options passed ot the `process` method. - -#### Return -- **String** The HTML output. - -### `ansiToJson(txt, options)` -Converts ANSI input into HTML output. - -#### Params - -- **String** `txt`: The input text. -- **Object** `options`: The options passed ot the `process` method. - -#### Return -- **String** The JSON output. - -### `ansiToText(txt)` -Converts ANSI input into HTML output. - -#### Params - -- **String** `txt`: The input text. - -#### Return -- **String** The text output. - -### `process(txt, options, markup)` -Processes the input. - -#### Params - -- **String** `txt`: The input text. -- **Object** `options`: An object passed to `processChunk` method, extended with: - - `json` (Boolean): If `true`, the result will be an object. - - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. -- **Boolean** `markup`: - -### `processChunkJson(text, options, markup)` -Processes the current chunk into json output. - -#### Params - -- **String** `text`: The input text. -- **Object** `options`: An object containing the following fields: - - `json` (Boolean): If `true`, the result will be an object. - - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. -- **Boolean** `markup`: If false, the colors will not be parsed. - -#### Return -- **Object** The result object: - - `content` (String): The text. - - `fg` (String|null): The foreground color. - - `bg` (String|null): The background color. - - `fg_truecolor` (String|null): The foreground true color (if 16m color is enabled). - - `bg_truecolor` (String|null): The background true color (if 16m color is enabled). - - `clearLine` (Boolean): `true` if a carriageReturn \r was fount at end of line. - - `was_processed` (Bolean): `true` if the colors were processed, `false` otherwise. - - `isEmpty` (Function): A function returning `true` if the content is empty, or `false` otherwise. - -Add several widely used style codes - -### `processChunk(text, options, markup)` -Processes the current chunk of text. - -#### Params - -- **String** `text`: The input text. -- **Object** `options`: An object containing the following fields: - - `json` (Boolean): If `true`, the result will be an object. - - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. -- **Boolean** `markup`: If false, the colors will not be parsed. - -#### Return -- **Object|String** The result (object if `json` is wanted back or string otherwise). - diff --git a/LICENSE b/LICENSE index 3f569bb..2c95ac4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2012-21 Ionică Bizău (https://ionicabizau.net) +Copyright (c) 2012-22 Ionică Bizău (https://ionicabizau.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 12cdc3c..f4e54e7 100644 --- a/README.md +++ b/README.md @@ -280,97 +280,6 @@ Escapes the input text. #### Return - **String** The escpaed HTML output. -### `linkify(txt)` -Adds HTML link elements. - -#### Params - -- **String** `txt`: The input text. - -#### Return -- **String** The HTML output containing link elements. - -### `ansiToHtml(txt, options)` -Converts ANSI input into HTML output. - -#### Params - -- **String** `txt`: The input text. -- **Object** `options`: The options passed ot the `process` method. - -#### Return -- **String** The HTML output. - -### `ansiToJson(txt, options)` -Converts ANSI input into HTML output. - -#### Params - -- **String** `txt`: The input text. -- **Object** `options`: The options passed ot the `process` method. - -#### Return -- **String** The JSON output. - -### `ansiToText(txt)` -Converts ANSI input into HTML output. - -#### Params - -- **String** `txt`: The input text. - -#### Return -- **String** The text output. - -### `process(txt, options, markup)` -Processes the input. - -#### Params - -- **String** `txt`: The input text. -- **Object** `options`: An object passed to `processChunk` method, extended with: - - `json` (Boolean): If `true`, the result will be an object. - - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. -- **Boolean** `markup`: - -### `processChunkJson(text, options, markup)` -Processes the current chunk into json output. - -#### Params - -- **String** `text`: The input text. -- **Object** `options`: An object containing the following fields: - - `json` (Boolean): If `true`, the result will be an object. - - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. -- **Boolean** `markup`: If false, the colors will not be parsed. - -#### Return -- **Object** The result object: - - `content` (String): The text. - - `fg` (String|null): The foreground color. - - `bg` (String|null): The background color. - - `fg_truecolor` (String|null): The foreground true color (if 16m color is enabled). - - `bg_truecolor` (String|null): The background true color (if 16m color is enabled). - - `clearLine` (Boolean): `true` if a carriageReturn \r was fount at end of line. - - `was_processed` (Bolean): `true` if the colors were processed, `false` otherwise. - - `isEmpty` (Function): A function returning `true` if the content is empty, or `false` otherwise. - -Add several widely used style codes - -### `processChunk(text, options, markup)` -Processes the current chunk of text. - -#### Params - -- **String** `text`: The input text. -- **Object** `options`: An object containing the following fields: - - `json` (Boolean): If `true`, the result will be an object. - - `use_classes` (Boolean): If `true`, HTML classes will be appended to the HTML output. -- **Boolean** `markup`: If false, the colors will not be parsed. - -#### Return -- **Object|String** The result (object if `json` is wanted back or string otherwise). - @@ -442,19 +351,19 @@ If you are using this library in one of your projects, add it in this list. :spa - `@viankakrisna/react-dev-utils` - `ansi-to-json` - `redux-devtools-trace-monitor` + - `@opensumi/ide-debug` - `@kui-shell/plugin-client-common` - `react-webpack-build-helper` - `timer-react-dev-utils` - `react-native-macos` - `@axio/react-dev-utils` - `react-dev-utils-extra` - - `webpack-isomorphic-dev-middleware` - `ansi-html-themed` + - `webpack-isomorphic-dev-middleware` - `react-native-okhttp-fork` - `uyun-react-dev-utils` - `ipynb2html-fix` - `react-dev-utils-sebfl-update` - - `@jjavery/react-error-overlay` - `lambda-dev-utils` - `ipynb2html` - `react-error-overlay-canary` @@ -464,7 +373,6 @@ If you are using this library in one of your projects, add it in this list. :spa - `native-kakao-login` - `linklog` - `react-native-ytximkit` - - `@mindinventory/rn-top-navbar` - `cycle-dev-utils` - `@viankakrisna/react-error-overlay` - `callstack-task-react-dev-utils` @@ -474,32 +382,38 @@ If you are using this library in one of your projects, add it in this list. :spa - `@hemith/react-native-tnk` - `react-native-contact-list` - `react-native-is7` - - `@nib/e2e-core` - `react-native-biometric-authenticate` + - `react-native-tvos-nz` + - `@mindinventory/rn-top-navbar` + - `rn-adyen-dropin` + - `@classyllama/code-style` + - `react-native-ansi-view` - `@corelmax/react-native-my2c2p-sdk` - `@proteria/react-scripts` - - `@prague-digi/react-error-overlay` - `native-apple-login` - `react-ansi` - `rn-custom-tabview` - `@felipesimmi/react-native-datalogic-module` - `@blkmarketco/components-library` - - `@datalogic/react-native-datalogic-module` - `ansi-to-react-with-options` - `callstack-task-react-error-overlay` + - `@datalogic/react-native-datalogic-module` + - `@tasumaniadiabori/react-native-draggable-flatlist` - `react-native-flyy` + - `@prague-digi/react-error-overlay` - `@geeky-apo/react-native-advanced-clipboard` - `@apardellass/react-native-audio-stream` - `kunai` - `react-native-responsive-size` - - `singularityui-tailer` - `rn-flatlist-fork` - `@unforgiven/react-native` - - `ansi-to-react-with-classes` - `react-native-dsphoto-module` - - `react-native-tvos` - `react-error-guard` + - `react-native-sayhello-module` - `@plansys/react-dev-utils` + - `singularityui-tailer` + - `react-native-tvos` + - `@saad27/react-native-bottom-tab-tour` - `react-native-plugpag-wrapper` - `react-native-pulsator-native` - `react-native-hlf-wrapper` @@ -510,6 +424,7 @@ If you are using this library in one of your projects, add it in this list. :spa - `@ehyland-org/react-error-overlay` - `@naze/error` - `ada-pack` + - `@jjavery/react-error-overlay` - `@office-iss/react-native-win32` - `react-native-sf` - `native-google-login` @@ -521,6 +436,7 @@ If you are using this library in one of your projects, add it in this list. :spa - `react-native-modal-progress-bar` - `stack-frame-overlay` - `@digibear/socket-bridge` + - `userfetch` diff --git a/lib/index.js b/lib/index.js index 80027e0..6318160 100644 --- a/lib/index.js +++ b/lib/index.js @@ -178,8 +178,9 @@ class Anser { * @returns {String} The escpaed HTML output. */ escapeForHtml (txt) { - return txt.replace(/[&<>]/gm, str => + return txt.replace(/[&<>\"]/gm, str => str == "&" ? "&" : + str == '"' ? """ : str == "<" ? "<" : str == ">" ? ">" : "" ); diff --git a/package-lock.json b/package-lock.json index b102ac2..a0e30c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,8 +1,575 @@ { "name": "anser", - "version": "2.1.0", - "lockfileVersion": 1, + "version": "2.1.1", + "lockfileVersion": 2, "requires": true, + "packages": { + "": { + "name": "anser", + "version": "2.1.1", + "license": "MIT", + "devDependencies": { + "jshint": "*", + "jslint": "*", + "mocha": "*", + "should": "*" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "node_modules/buffer-shims": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz", + "integrity": "sha1-mXjOMXOIxkmth5MCjDR37wRKi1E=", + "dev": true + }, + "node_modules/cli": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz", + "integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=", + "dev": true, + "dependencies": { + "exit": "0.1.2", + "glob": "^7.1.1" + }, + "engines": { + "node": ">=0.2.5" + } + }, + "node_modules/commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "node_modules/console-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", + "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", + "dev": true, + "dependencies": { + "date-now": "^0.1.4" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "node_modules/date-now": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", + "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", + "dev": true + }, + "node_modules/debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dom-serializer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", + "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", + "dev": true, + "dependencies": { + "domelementtype": "~1.1.1", + "entities": "~1.1.1" + } + }, + "node_modules/dom-serializer/node_modules/domelementtype": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", + "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", + "dev": true + }, + "node_modules/dom-serializer/node_modules/entities": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", + "dev": true + }, + "node_modules/domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true + }, + "node_modules/domhandler": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", + "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", + "dev": true, + "dependencies": { + "domelementtype": "1" + } + }, + "node_modules/domutils": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", + "dev": true, + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/entities": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", + "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", + "dev": true + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "node_modules/glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/growl": { + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", + "dev": true, + "engines": { + "node": ">=4.x" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", + "dev": true, + "bin": { + "he": "bin/he" + } + }, + "node_modules/htmlparser2": { + "version": "3.8.3", + "resolved": "http://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", + "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", + "dev": true, + "dependencies": { + "domelementtype": "1", + "domhandler": "2.3", + "domutils": "1.5", + "entities": "1.0", + "readable-stream": "1.1" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "node_modules/jshint": { + "version": "2.9.7", + "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.9.7.tgz", + "integrity": "sha512-Q8XN38hGsVQhdlM+4gd1Xl7OB1VieSuCJf+fEJjpo59JH99bVJhXRXAh26qQ15wfdd1VPMuDWNeSWoNl53T4YA==", + "dev": true, + "dependencies": { + "cli": "~1.0.0", + "console-browserify": "1.1.x", + "exit": "0.1.x", + "htmlparser2": "3.8.x", + "lodash": "~4.17.10", + "minimatch": "~3.0.2", + "shelljs": "0.3.x", + "strip-json-comments": "1.0.x" + }, + "bin": { + "jshint": "bin/jshint" + } + }, + "node_modules/jslint": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/jslint/-/jslint-0.12.0.tgz", + "integrity": "sha512-RoCsyICcKA+6TFsbys9DpKTfPVaC71Mm5QSjvrWA0lDVN+LIvx6apa42FFisMqmCTvJ8DxkcoQGJ0j7m3kTVow==", + "dev": true, + "dependencies": { + "exit": "~0.1.2", + "glob": "~7.1.2", + "nopt": "~3.0.1", + "readable-stream": "~2.1.5" + }, + "bin": { + "jslint": "bin/jslint.js" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/jslint/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "node_modules/jslint/node_modules/readable-stream": { + "version": "2.1.5", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.1.5.tgz", + "integrity": "sha1-ZvqLcg4UOLNkaB8q0aY8YYRIydA=", + "dev": true, + "dependencies": { + "buffer-shims": "^1.0.0", + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "0.0.8", + "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "node_modules/mkdirp": { + "version": "0.5.1", + "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "deprecated": "Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)", + "dev": true, + "dependencies": { + "minimist": "0.0.8" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/mocha": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", + "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", + "dev": true, + "dependencies": { + "browser-stdout": "1.3.1", + "commander": "2.15.1", + "debug": "3.1.0", + "diff": "3.5.0", + "escape-string-regexp": "1.0.5", + "glob": "7.1.2", + "growl": "1.10.5", + "he": "1.1.1", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "supports-color": "5.4.0" + }, + "bin": { + "_mocha": "bin/_mocha", + "mocha": "bin/mocha" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/mocha/node_modules/glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "node_modules/nopt": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "dev": true + }, + "node_modules/readable-stream": { + "version": "1.1.14", + "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/shelljs": { + "version": "0.3.0", + "resolved": "http://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", + "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", + "dev": true, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/should": { + "version": "13.2.3", + "resolved": "https://registry.npmjs.org/should/-/should-13.2.3.tgz", + "integrity": "sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ==", + "dev": true, + "dependencies": { + "should-equal": "^2.0.0", + "should-format": "^3.0.3", + "should-type": "^1.4.0", + "should-type-adaptors": "^1.0.1", + "should-util": "^1.0.0" + } + }, + "node_modules/should-equal": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/should-equal/-/should-equal-2.0.0.tgz", + "integrity": "sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA==", + "dev": true, + "dependencies": { + "should-type": "^1.4.0" + } + }, + "node_modules/should-format": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/should-format/-/should-format-3.0.3.tgz", + "integrity": "sha1-m/yPdPo5IFxT04w01xcwPidxJPE=", + "dev": true, + "dependencies": { + "should-type": "^1.3.0", + "should-type-adaptors": "^1.0.1" + } + }, + "node_modules/should-type": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/should-type/-/should-type-1.4.0.tgz", + "integrity": "sha1-B1bYzoRt/QmEOmlHcZ36DUz/XPM=", + "dev": true + }, + "node_modules/should-type-adaptors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz", + "integrity": "sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA==", + "dev": true, + "dependencies": { + "should-type": "^1.3.0", + "should-util": "^1.0.0" + } + }, + "node_modules/should-util": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/should-util/-/should-util-1.0.0.tgz", + "integrity": "sha1-yYzaN0qmsZDfi6h8mInCtNtiAGM=", + "dev": true + }, + "node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + }, + "node_modules/strip-json-comments": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", + "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", + "dev": true, + "bin": { + "strip-json-comments": "cli.js" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + } + }, "dependencies": { "abbrev": { "version": "1.1.1", diff --git a/package.json b/package.json index 8089141..b4e08f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anser", - "version": "2.1.0", + "version": "2.1.1", "description": "A low level parser for ANSI sequences.", "keywords": [ "ansi", @@ -90,4 +90,4 @@ "bloggify.json", "bloggify/" ] -} +} \ No newline at end of file