build: replace circular-json with flatted

Fixes #2
This commit is contained in:
Karl-Philipp Wulfert
2019-02-14 13:20:36 +01:00
parent f26153d970
commit 2b54af6c7e
3 changed files with 387 additions and 441 deletions

780
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,6 +10,7 @@
"scripts": { "scripts": {
"build": "npm run tslint && npm run compile && npm run documentation", "build": "npm run tslint && npm run compile && npm run documentation",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"check-configuration": "openstapps-configuration",
"compile": "tsc", "compile": "tsc",
"documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src", "documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src",
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
@@ -24,45 +25,48 @@
"typings": "./lib/Logger.d.ts", "typings": "./lib/Logger.d.ts",
"main": "./lib/Logger.js", "main": "./lib/Logger.js",
"nyc": { "nyc": {
"all": true,
"branches": 95,
"check-coverage": true, "check-coverage": true,
"per-file": true, "exclude": [
"lines": 0, "src/test/**/*.spec.ts",
"statements": 0, "src/cli.ts"
"functions": 0,
"branches": 0,
"include": [
"src"
], ],
"extension": [ "extension": [
".ts" ".ts"
], ],
"functions": 95,
"include": [
"src"
],
"lines": 95,
"per-file": true,
"reporter": [ "reporter": [
"html", "html",
"text-summary" "text-summary"
], ],
"all": true "statements": 95
}, },
"devDependencies": { "devDependencies": {
"@openstapps/configuration": "0.5.0", "@openstapps/configuration": "0.6.0",
"@types/chai": "4.1.7", "@types/chai": "4.1.7",
"@types/mocha": "5.2.5", "@types/mocha": "5.2.6",
"@types/sinon": "7.0.3", "@types/sinon": "7.0.6",
"chai": "4.2.0", "chai": "4.2.0",
"conventional-changelog-cli": "2.0.11", "conventional-changelog-cli": "2.0.11",
"mocha": "5.2.0", "mocha": "5.2.0",
"mocha-typescript": "1.1.17", "mocha-typescript": "1.1.17",
"nyc": "13.1.0", "nyc": "13.2.0",
"sinon": "7.2.2", "sinon": "7.2.3",
"ts-node": "7.0.1", "ts-node": "8.0.2",
"tslint": "5.12.0", "tslint": "5.12.1",
"typedoc": "0.14.0", "typedoc": "0.14.2",
"typescript": "3.2.2" "typescript": "3.3.3"
}, },
"dependencies": { "dependencies": {
"@types/circular-json": "0.4.0", "@types/node": "11.9.3",
"@types/node": "10.12.18", "@types/nodemailer": "4.6.6",
"@types/nodemailer": "4.6.5", "flatted": "2.0.0",
"circular-json": "0.5.9",
"nodemailer": "5.1.1" "nodemailer": "5.1.1"
} }
} }

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with * You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>. * this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import {stringify} from 'circular-json'; import {stringify} from 'flatted';
import {Transport, TransportWithVerification} from './Transport'; import {Transport, TransportWithVerification} from './Transport';
/** /**