Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nrk/core-docs

Package Overview
Dependencies
Maintainers
140
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrk/core-docs - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0-0

20

lib/index.js

@@ -10,3 +10,2 @@ import 'raf/polyfill' // Fixes React

import marked from 'marked'
import { transform } from 'buble'

@@ -83,13 +82,8 @@ import 'code-prettify'

function chooseTransform (done) {
try {
transform('Object.assign({a:1}, {b:2})')
done((code) => transform(code, { objectAssign: 'Object.assign' }).code)
} catch (err) { /* use babel when buble fails in IE */
const script = document.createElement('script')
script.onload = () => done((code) => window.Babel.transform(code, { presets: ['es2015', 'react'] }).code)
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js'
script.setAttribute('charset', 'utf-8')
document.head.appendChild(script)
}
function loadTransform (done) {
const script = document.createElement('script')
script.onload = () => done((code) => window.Babel.transform(code, { presets: ['es2015', 'react'] }).code)
script.src = 'https://unpkg.com/@babel/standalone/babel.min.js'
script.setAttribute('charset', 'utf-8')
document.head.appendChild(script)
}

@@ -191,3 +185,3 @@

link.insertAdjacentHTML('afterend', generateSubmenu())
chooseTransform(transform => exec(queryAll('script', main), transform, onHash))
loadTransform(transform => exec(queryAll('script', main), transform, onHash))
}

@@ -194,0 +188,0 @@

@@ -6,3 +6,3 @@ {

"author": "NRK <opensource@nrk.no> (https://www.nrk.no/)",
"version": "2.0.5",
"version": "2.1.0-0",
"license": "MIT",

@@ -41,3 +41,2 @@ "scripts": {

"@webcomponents/custom-elements": "1.5.0",
"buble": "0.20.0",
"code-prettify": "0.1.0",

@@ -44,0 +43,0 @@ "core-js": "3.18.0",

@@ -36,3 +36,4 @@ import fs from 'fs'

contentBase: 'lib',
headers: { 'X-UA-Compatible': 'IE=edge' }
headers: { 'X-UA-Compatible': 'IE=edge' },
port: 10002
})

@@ -39,0 +40,0 @@ ]

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc