arylo-init
Advanced tools
Comparing version 2.1.11 to 2.1.13
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs = require("fs"); | ||
const YAML = require("yaml"); | ||
// import YAML = require("yaml"); | ||
const YAML = require("js-yaml"); | ||
const constants_1 = require("../constants"); | ||
@@ -14,3 +15,3 @@ const config_1 = require("./config"); | ||
try { | ||
return YAML.parse(fs.readFileSync(filePath, constants_1.FILE_OPTIONS)); | ||
return YAML.safeLoad(fs.readFileSync(filePath, constants_1.FILE_OPTIONS)); | ||
} | ||
@@ -22,3 +23,3 @@ catch (error) { | ||
write: (p, data) => { | ||
fs.writeFileSync(p, YAML.stringify(data), constants_1.FILE_OPTIONS); | ||
fs.writeFileSync(p, YAML.safeDump(data), constants_1.FILE_OPTIONS); | ||
} | ||
@@ -25,0 +26,0 @@ }; |
import * as fs from "fs"; | ||
import YAML = require("yaml"); | ||
// import YAML = require("yaml"); | ||
import YAML = require("js-yaml"); | ||
import { FILE_OPTIONS } from "../constants"; | ||
@@ -14,3 +15,3 @@ import { IAdapter } from "./adapter.d"; | ||
try { | ||
return YAML.parse(fs.readFileSync(filePath, FILE_OPTIONS)); | ||
return YAML.safeLoad(fs.readFileSync(filePath, FILE_OPTIONS)); | ||
} catch (error) { | ||
@@ -21,3 +22,3 @@ return null; | ||
write: (p, data) => { | ||
fs.writeFileSync(p, YAML.stringify(data), FILE_OPTIONS); | ||
fs.writeFileSync(p, YAML.safeDump(data), FILE_OPTIONS); | ||
} | ||
@@ -24,0 +25,0 @@ }; |
{ | ||
"name": "arylo-init", | ||
"version": "2.1.11", | ||
"version": "2.1.13", | ||
"description": "Initial Node.js Project for Arylo Edition", | ||
@@ -31,3 +31,14 @@ "main": "./dist/index.js", | ||
"arylo", | ||
"init" | ||
"init", | ||
"cli", | ||
"cli-app", | ||
"easy to use", | ||
"tool", | ||
"generator", | ||
"generate", | ||
"scaffold", | ||
"command", | ||
"command-line", | ||
"template", | ||
"codemod" | ||
], | ||
@@ -47,6 +58,6 @@ "files": [ | ||
"chalk": "^2.4.1", | ||
"js-yaml": "^3.12.0", | ||
"make-dir": "^1.3.0", | ||
"rimraf": "^2.6.2", | ||
"update-notifier": "^2.5.0", | ||
"yaml": "^1.0.3" | ||
"update-notifier": "^2.5.0" | ||
}, | ||
@@ -57,4 +68,4 @@ "devDependencies": { | ||
"@commitlint/lint": "^7.2.1", | ||
"@types/chalk": "^2.2.0", | ||
"@types/glob": "^7.1.1", | ||
"@types/js-yaml": "^3.11.2", | ||
"@types/make-dir": "^1.0.3", | ||
@@ -61,0 +72,0 @@ "@types/node": "^10.1.2", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73337
79
1821
+ Addedjs-yaml@^3.12.0
+ Addedargparse@1.0.10(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedsprintf-js@1.0.3(transitive)
- Removedyaml@^1.0.3
- Removedyaml@1.10.2(transitive)