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

@pluginjs/template

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluginjs/template - npm Package Compare versions

Comparing version 0.7.19 to 0.8.2

2

dist/template.common.js
/*!
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* @pluginjs/template v0.8.2 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

/*!
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* @pluginjs/template v0.8.2 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.
*/
"use strict";var utils=require("@pluginjs/utils"),pattern=/\{\s*([.0-9a-zA-Z_]+)\s*\}/g;function render(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return 1===t.length&&"object"==typeof t[0]&&(t=t[0]),t&&t.hasOwnProperty||(t={}),r.replace(pattern,(e,n,a)=>{var l=null;return"{"===r[a-1]&&"}"===r[a+e.length]?n:(Object.prototype.hasOwnProperty.call(t,n)?l=t[n]:-1!==n.indexOf(".")&&(l=utils.getValueByPath(t,n)),null==l?"":l)})}var main={render:render,compile:r=>(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return render(r,...t)}),parse(r){var e=r.match(pattern);if(null===e)return!1;for(var t=[],n=0;n<e.length;n++)e[n].match(/^\{\{.+\}\}$/g)||t.push(e[n].substring(1,e[n].length-1).trim());return t}};module.exports=main;
"use strict";var r=require("@pluginjs/utils"),e=/\{\s*([.0-9a-zA-Z_]+)\s*\}/g;function t(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),a=1;a<n;a++)l[a-1]=arguments[a];return 1===l.length&&"object"==typeof l[0]&&(l=l[0]),l&&l.hasOwnProperty||(l={}),t.replace(e,(e,n,a)=>{var u=null;return"{"===t[a-1]&&"}"===t[a+e.length]?n:(Object.prototype.hasOwnProperty.call(l,n)?u=l[n]:-1!==n.indexOf(".")&&(u=r.getValueByPath(l,n)),null==u?"":u)})}var n={render:t,compile:r=>function(){for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];return t(r,...n)},parse(r){var t=r.match(e);if(null===t)return!1;for(var n=[],l=0;l<t.length;l++)t[l].match(/^\{\{.+\}\}$/g)||n.push(t[l].substring(1,t[l].length-1).trim());return n}};module.exports=n;
/*!
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* @pluginjs/template v0.8.2 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

/*!
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* @pluginjs/template v0.8.2 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.
*/
import{getValueByPath as r}from"@pluginjs/utils";var e=/\{\s*([.0-9a-zA-Z_]+)\s*\}/g;function t(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),a=1;a<n;a++)l[a-1]=arguments[a];return 1===l.length&&"object"==typeof l[0]&&(l=l[0]),l&&l.hasOwnProperty||(l={}),t.replace(e,(e,n,a)=>{var o=null;return"{"===t[a-1]&&"}"===t[a+e.length]?n:(Object.prototype.hasOwnProperty.call(l,n)?o=l[n]:-1!==n.indexOf(".")&&(o=r(l,n)),null==o?"":o)})}var n={render:t,compile:r=>(function(){for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];return t(r,...n)}),parse(r){var t=r.match(e);if(null===t)return!1;for(var n=[],l=0;l<t.length;l++)t[l].match(/^\{\{.+\}\}$/g)||n.push(t[l].substring(1,t[l].length-1).trim());return n}};export default n;
import{getValueByPath as r}from"@pluginjs/utils";var e=/\{\s*([.0-9a-zA-Z_]+)\s*\}/g;function t(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),a=1;a<n;a++)l[a-1]=arguments[a];return 1===l.length&&"object"==typeof l[0]&&(l=l[0]),l&&l.hasOwnProperty||(l={}),t.replace(e,(e,n,a)=>{var o=null;return"{"===t[a-1]&&"}"===t[a+e.length]?n:(Object.prototype.hasOwnProperty.call(l,n)?o=l[n]:-1!==n.indexOf(".")&&(o=r(l,n)),null==o?"":o)})}var n={render:t,compile:r=>function(){for(var e=arguments.length,n=new Array(e),l=0;l<e;l++)n[l]=arguments[l];return t(r,...n)},parse(r){var t=r.match(e);if(null===t)return!1;for(var n=[],l=0;l<t.length;l++)t[l].match(/^\{\{.+\}\}$/g)||n.push(t[l].substring(1,t[l].length-1).trim());return n}};export default n;
/*!
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* @pluginjs/template v0.8.2 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited

@@ -13,2 +13,4 @@ * Released under the GPL-3.0 License.

function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {

@@ -15,0 +17,0 @@ _typeof = function (obj) {

/*!
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* @pluginjs/template v0.8.2 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

@@ -14,3 +14,3 @@ {

},
"version": "0.7.19",
"version": "0.8.2",
"category": "core",

@@ -40,5 +40,7 @@ "main": "dist/template.common.js",

"devDependencies": {
"@babel/core": "^7.7.5",
"@pluginjs/browserslist-config": "^1.2.14",
"@pluginjs/cli": "^0.7.15",
"@babel/core": "^7.8.4",
"@pluginjs/browserslist-config": "^1.3.0",
"@pluginjs/cli": "^0.7.16",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"babel-jest": "*",

@@ -48,6 +50,4 @@ "jest": "*",

"rename": "^1.0.4",
"rollup": "*",
"rollup": "^1.31.0",
"rollup-plugin-babel": "*",
"rollup-plugin-commonjs": "*",
"rollup-plugin-node-resolve": "*",
"rollup-plugin-terser": "*"

@@ -70,4 +70,4 @@ },

],
"gitHead": "45f59203aaa9720d1fb61f5e96cde6d73b4cf2c8",
"gitHead": "b723884335c3cdfd997b4f553ec4259fa7013b6f",
"title": "Plugin"
}
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