diff --git a/package.json b/package.json index a54e944..5fb4c48 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,10 @@ { - "name": "hypernova", + "name": "@shopify/hypernova", "version": "2.5.0", "description": "A service for server-side rendering your JavaScript views", + "publishConfig": { + "access": "restricted" + }, "main": "lib/index.js", "scripts": { "prepublish": "not-in-publish || safe-publish-latest && npm run build", diff --git a/src/index.js b/src/index.js index 824a5fe..591be6b 100644 --- a/src/index.js +++ b/src/index.js @@ -6,6 +6,8 @@ const RIGHT = '-->'; const ENCODE = [ ['&', '&'], ['>', '>'], + ['<', '<'], + ['/', '/'], ]; const DATA_KEY = 'hypernova-key'; diff --git a/test/escape-test.js b/test/escape-test.js index a856983..3fe326a 100644 --- a/test/escape-test.js +++ b/test/escape-test.js @@ -7,7 +7,7 @@ describe('escaping', () => { it('escapes', () => { const html = serialize('foo', '', { foo: '', bar: '>' }); - assert.include(html, '