From d1b4d75412efd3b551e7b3d678e389189be568fd Mon Sep 17 00:00:00 2001 From: SaurabhKumar Date: Mon, 7 Aug 2023 19:22:33 +0530 Subject: [PATCH] AC-2783:Upgrade strip-json-comments library to the latest version --- dev/tests/js/jasmine/spec_runner/index.js | 4 ++-- package.json.sample | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/tests/js/jasmine/spec_runner/index.js b/dev/tests/js/jasmine/spec_runner/index.js index 732d412b8396e..652cabc2db8cf 100644 --- a/dev/tests/js/jasmine/spec_runner/index.js +++ b/dev/tests/js/jasmine/spec_runner/index.js @@ -10,14 +10,14 @@ var tasks = [], function init(grunt, options) { var _ = require('underscore'), - stripJsonComments = require('strip-json-comments'), + stripComments = require('strip-comments'), path = require('path'), config, themes, file; config = grunt.file.read(__dirname + '/settings.json'); - config = stripJsonComments(config); + config = stripComments(config); config = JSON.parse(config); themes = require(path.resolve(process.cwd(), config.themes)); diff --git a/package.json.sample b/package.json.sample index 93d6159d12ec0..146ac02aea265 100644 --- a/package.json.sample +++ b/package.json.sample @@ -34,7 +34,7 @@ "path": "~0.12.7", "serve-static": "~1.15.0", "squirejs": "~0.2.1", - "strip-json-comments": "~3.1.1", + "strip-comments": "~2.0.1", "time-grunt": "~2.0.0", "underscore": "1.13.3" }