Skip to content
This repository was archived by the owner on Sep 16, 2019. It is now read-only.

Commit 70abebb

Browse files
authored
Merge pull request #229 from yhatt/0.0.13
[Security update] 0.0.13
2 parents e0eb239 + e372ee3 commit 70abebb

File tree

7 files changed

+48
-29
lines changed

7 files changed

+48
-29
lines changed

.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

coffee/classes/mds_markdown.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ module.exports = class MdsMarkdown
4848
(md) ->
4949
mdElm = $("<div>#{md.parsed}</div>")
5050

51-
# Sanitize HTML import
52-
mdElm.find('link[rel="import"]').remove()
51+
# Sanitize link tag
52+
mdElm.find('link:not([rel="stylesheet"])').remove()
5353

5454
mdElm.find('p > img[alt~="bg"]').each ->
5555
$t = $(@)

gulp.bat

Lines changed: 0 additions & 5 deletions
This file was deleted.

gulpfile.coffee

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ packageOpts =
1515
out: 'packages'
1616
name: config.productName
1717
version: config.devDependencies['electron']
18-
prune: true
19-
packageManager: 'yarn'
18+
prune: false
2019
overwrite: true
2120
'app-bundle-id': 'jp.yhatt.marp'
2221
'app-version': config.version
@@ -115,7 +114,7 @@ gulp.task 'dist', ['clean:dist'], ->
115114
.pipe $.install
116115
commands:
117116
'package.json': 'yarn'
118-
yarn: ['--production']
117+
yarn: ['--production', '--ignore-optional', '--no-bin-links']
119118

120119
gulp.task 'package', ['clean:packages', 'dist'], (done) ->
121120
runSequence 'package:win32', 'package:darwin', 'package:linux', done
@@ -172,7 +171,7 @@ gulp.task 'archive:darwin', (done) ->
172171
null
173172

174173
unless appdmg
175-
$.util.log 'Archiving for darwin is supported only OSX.'
174+
$.util.log 'Archiving for darwin is supported only macOS.'
176175
return done()
177176

178177
globFolders 'packages/*-darwin-*', (path, globDone) ->

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "marp",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"private": true,
55
"description": "Markdown Presentation Writer (Powered by Electron)",
66
"productName": "Marp",
@@ -16,7 +16,6 @@
1616
"author": "Yuki Hattori",
1717
"license": "MIT",
1818
"devDependencies": {
19-
"appdmg": "^0.5.2",
2019
"coffee-script": "^1.10.0",
2120
"del": "^3.0.0",
2221
"electron": "1.8.4",
@@ -54,5 +53,8 @@
5453
"path": "^0.12.7",
5554
"photon": "github:connors/photon",
5655
"twemoji": "^2.5.1"
56+
},
57+
"optionalDependencies": {
58+
"appdmg": "^0.5.2"
5759
}
5860
}

slide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta http-equiv="Content-Security-Policy" content="connect-src http: https:; child-src http: https:;" />
5+
<meta http-equiv="Content-Security-Policy" content="connect-src http: https:; child-src http: https:; script-src http: https: 'unsafe-inline';" />
66

77
<title>Marp presentation</title>
88

yarn.lock

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -397,24 +397,24 @@ browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6:
397397
caniuse-db "^1.0.30000639"
398398
electron-to-chromium "^1.2.7"
399399

400-
buffer-alloc-unsafe@^0.1.0:
401-
version "0.1.1"
402-
resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.1.tgz#ffe1f67551dd055737de253337bfe853dfab1a6a"
400+
buffer-alloc-unsafe@^1.1.0:
401+
version "1.1.0"
402+
resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0"
403403

404404
buffer-alloc@^1.1.0:
405-
version "1.1.0"
406-
resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.1.0.tgz#05514d33bf1656d3540c684f65b1202e90eca303"
405+
version "1.2.0"
406+
resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec"
407407
dependencies:
408-
buffer-alloc-unsafe "^0.1.0"
409-
buffer-fill "^0.1.0"
408+
buffer-alloc-unsafe "^1.1.0"
409+
buffer-fill "^1.0.0"
410410

411411
buffer-crc32@^0.2.1, buffer-crc32@~0.2.3:
412412
version "0.2.13"
413413
resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
414414

415-
buffer-fill@^0.1.0:
416-
version "0.1.1"
417-
resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-0.1.1.tgz#76d825c4d6e50e06b7a31eb520c04d08cc235071"
415+
buffer-fill@^1.0.0:
416+
version "1.0.0"
417+
resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c"
418418

419419
buffer-from@^0.1.1:
420420
version "0.1.2"
@@ -2380,8 +2380,8 @@ lru-cache@2:
23802380
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952"
23812381

23822382
lru-cache@^4.0.0:
2383-
version "4.1.2"
2384-
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f"
2383+
version "4.1.3"
2384+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.3.tgz#a1175cf3496dfc8436c156c334b4955992bce69c"
23852385
dependencies:
23862386
pseudomap "^1.0.2"
23872387
yallist "^2.1.2"
@@ -3390,7 +3390,7 @@ readable-stream@^2.0.0, readable-stream@^2.0.5, readable-stream@^2.0.6, readable
33903390
string_decoder "~1.0.0"
33913391
util-deprecate "~1.0.1"
33923392

3393-
readable-stream@^2.0.1, readable-stream@^2.1.4, readable-stream@^2.1.5, readable-stream@^2.3.5:
3393+
readable-stream@^2.0.1, readable-stream@^2.1.5, readable-stream@^2.3.5:
33943394
version "2.3.5"
33953395
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.5.tgz#b4f85003a938cbb6ecbce2a124fb1012bd1a838d"
33963396
dependencies:
@@ -3402,6 +3402,18 @@ readable-stream@^2.0.1, readable-stream@^2.1.4, readable-stream@^2.1.5, readable
34023402
string_decoder "~1.0.3"
34033403
util-deprecate "~1.0.1"
34043404

3405+
readable-stream@^2.1.4:
3406+
version "2.3.6"
3407+
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf"
3408+
dependencies:
3409+
core-util-is "~1.0.0"
3410+
inherits "~2.0.3"
3411+
isarray "~1.0.0"
3412+
process-nextick-args "~2.0.0"
3413+
safe-buffer "~5.1.1"
3414+
string_decoder "~1.1.1"
3415+
util-deprecate "~1.0.1"
3416+
34053417
rechoir@^0.6.2:
34063418
version "0.6.2"
34073419
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
@@ -3752,6 +3764,12 @@ string_decoder@~1.0.0, string_decoder@~1.0.3:
37523764
dependencies:
37533765
safe-buffer "~5.1.0"
37543766

3767+
string_decoder@~1.1.1:
3768+
version "1.1.1"
3769+
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8"
3770+
dependencies:
3771+
safe-buffer "~5.1.0"
3772+
37553773
stringstream@~0.0.4:
37563774
version "0.0.5"
37573775
resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
@@ -4126,12 +4144,18 @@ which@1, which@^1.2.12, which@^1.2.9:
41264144
dependencies:
41274145
isexe "^2.0.0"
41284146

4129-
which@^1.2.14, which@^1.2.8:
4147+
which@^1.2.14:
41304148
version "1.3.0"
41314149
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
41324150
dependencies:
41334151
isexe "^2.0.0"
41344152

4153+
which@^1.2.8:
4154+
version "1.3.1"
4155+
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
4156+
dependencies:
4157+
isexe "^2.0.0"
4158+
41354159
wide-align@^1.1.0:
41364160
version "1.1.2"
41374161
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710"

0 commit comments

Comments
 (0)