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

sf-sketch-rpc

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sf-sketch-rpc - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

15

lib/scripts.js

@@ -28,17 +28,2 @@ Object.defineProperty(exports, "__esModule", {

/*
const templates = {
'bootstrap-plugin-instance': require('raw-loader!./templates/bootstrap-plugin-instance.js'),
'coscript-executor': require('raw-loader!./templates/coscript-executor.js'),
'plugin-command-executor': require('raw-loader!./templates/plugin-command-executor.js'),
};
*/
/*
const readTemplateNamed = (name) => {
let script = templates[name];
return _.replace(_.replace(script,/"<</g,''),/>>"/g,'');
};
*/
var readTemplateNamed = function readTemplateNamed(name) {

@@ -45,0 +30,0 @@ var script = _fs2['default'].readFileSync(_path2['default'].join(_path2['default'].resolve(__dirname, 'templates'), String(name) + '.js'), 'utf8');

2

package.json
{
"name": "sf-sketch-rpc",
"version": "1.0.3",
"version": "1.0.4",
"description": "RPC module based on `coscript` cli for running scripts in Sketch runtime on node.js platform",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -8,18 +8,3 @@

/*
const templates = {
'bootstrap-plugin-instance': require('raw-loader!./templates/bootstrap-plugin-instance.js'),
'coscript-executor': require('raw-loader!./templates/coscript-executor.js'),
'plugin-command-executor': require('raw-loader!./templates/plugin-command-executor.js'),
};
*/
/*
const readTemplateNamed = (name) => {
let script = templates[name];
return _.replace(_.replace(script,/"<</g,''),/>>"/g,'');
};
*/
const readTemplateNamed = (name) => {
let script = fs.readFileSync(path.join(path.resolve(__dirname,'templates'),`${name}.js`),'utf8');

@@ -26,0 +11,0 @@ return _.replace(_.replace(script,/"<</g,''),/>>"/g,'');

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