Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arylo-init

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arylo-init - npm Package Compare versions

Comparing version 2.1.11 to 2.1.13

dist/patches/2.1.13.js

7

dist/utils/yaml.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc