New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@the-grid/ed

Package Overview
Dependencies
Maintainers
23
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@the-grid/ed - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

13

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.0.20",
"version": "0.0.21",
"description": "the grid api with prosemirror",

@@ -13,3 +13,3 @@ "main": "lib/ed.js",

"builddemo": "export DEMO=true; webpack",
"clean": "rm -rf build",
"clean": "rm -rf dist",
"test": "echo 'todo' && npm run lint",

@@ -37,2 +37,10 @@ "lint": "eslint src demo",

},
"widgets": {
"@the-grid/ced": {
"include": [
"/editor",
"/lib/mount.js"
]
}
},
"devDependencies": {

@@ -44,2 +52,3 @@ "babel-core": "^6.4.0",

"bob-ross-lipsum": "^1.1.1",
"copy-webpack-plugin": "^0.3.3",
"eslint": "^1.10.3",

@@ -46,0 +55,0 @@ "eslint-config-standard": "^4.4.0",

4

README.md

@@ -99,4 +99,4 @@ `npm start`

`npm build`
`npm run build`
Outputs minified ed.js to /lib
Outputs minified dist/ed.js and copies widgets defined in [package.json](./package.json).
var webpack = require('webpack')
var path = require('path')
var CopyWebpackPlugin = require('copy-webpack-plugin')
var packageWidgets = require('./package.json').widgets
var __DEV = (process.env.DEV === 'true')

@@ -16,2 +19,20 @@ var __DEMO = (process.env.DEMO === 'true')

if (!__DEV) {
var copyPatterns = [{
from: 'targets/web.html',
to: 'index.html'
}]
// Copy iframe widgets to dist, whitelisted files and directories only
Object.keys(packageWidgets).forEach(function (key) {
var widget = packageWidgets[key]
widget.include.forEach(function (include) {
copyPatterns.push({
from: 'node_modules/' + key + include,
to: 'node_modules/' + key + include
})
})
})
plugins.push(new CopyWebpackPlugin(copyPatterns))
}
module.exports = {

@@ -21,3 +42,3 @@ entry: entry,

output: {
path: './lib/',
path: './dist/',
publicPath: '/webpack/',

@@ -24,0 +45,0 @@ filename: '[name].js',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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