Skip to content

Commit

Permalink
updated js-yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianpraja committed Nov 7, 2021
1 parent cc3793e commit 3eb6108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Lambda.prototype._parse_config_file = function( program ) {
var $config;
try {
//var $config = JSON.parse(fs.readFileSync( config_file, "utf8"))
$config = yaml.safeLoad(fs.readFileSync( config_file, "utf8"), {
$config = yaml.load(fs.readFileSync( config_file, "utf8"), {
schema: buildYamlSchema(),
onWarning: function(warning) {
console.error(warning);
Expand Down Expand Up @@ -126,7 +126,7 @@ Lambda.prototype.deploy = function( program ) {

try {
//var $config = JSON.parse(fs.readFileSync( config_file, "utf8"))
var $config = yaml.safeLoad(fs.readFileSync( config_file, "utf8"), {
var $config = yaml.load(fs.readFileSync( config_file, "utf8"), {
schema: buildYamlSchema(),
onWarning: function(warning) {
console.error(warning);
Expand Down Expand Up @@ -368,7 +368,7 @@ Lambda.prototype.delete = function( program ) {

try {
//var $config = JSON.parse(fs.readFileSync( config_file, "utf8"))
var $config = yaml.safeLoad(fs.readFileSync( config_file, "utf8"), {
var $config = yaml.load(fs.readFileSync( config_file, "utf8"), {
schema: buildYamlSchema(),
onWarning: function(warning) {
console.error(warning);
Expand Down Expand Up @@ -446,7 +446,7 @@ Lambda.prototype.invoke = function( program ) {

try {
//var $config = JSON.parse(fs.readFileSync( config_file, "utf8"))
var $config = yaml.safeLoad(fs.readFileSync( config_file, "utf8"), {
var $config = yaml.load(fs.readFileSync( config_file, "utf8"), {
schema: buildYamlSchema(),
onWarning: function(warning) {
console.error(warning);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"aws-sdk": "*",
"js-yaml": "^3.13.1",
"js-yaml": "^4.1.0",
"watchpack": "^2.0.0-beta.10",
"commander": "^3.0.2"
},
Expand Down

0 comments on commit 3eb6108

Please sign in to comment.