From cc0451740ea6275363bfb3fb0d6179af4a9f662b Mon Sep 17 00:00:00 2001 From: StEve Young <2747745470@qq.com> Date: Wed, 22 Jul 2020 10:52:43 +0800 Subject: [PATCH] build: v0.5.2, codesandbox -> codesandbox-import-utils, to avoid security issues (#30) --- package.json | 4 ++-- src/utils.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 365bc07..8591806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vuepress-plugin-demo-code", - "version": "0.5.1", + "version": "0.5.2", "description": "📝 Demo and code plugin for vuepress", "main": "src/index.js", "files": [ @@ -31,7 +31,7 @@ ] }, "dependencies": { - "codesandbox": "2.1.16", + "codesandbox-import-utils": "^2.1.16", "markdown-it-container": "^3.0.0", "prismjs": "^1.20.0", "vuepress-plugin-code-copy": "^1.0.6" diff --git a/src/utils.js b/src/utils.js index d19915e..70b4456 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,4 @@ -const { getParameters } = require('codesandbox/lib/api/define') +const { getParameters } = require('codesandbox-import-utils/lib/api/define') const { CODE_SANDBOX_JS, CODE_SANDBOX_HTML,