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.18 to 0.7.19

4

dist/template.common.js
/*!
* @pluginjs/template v0.7.18 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.

@@ -5,0 +5,0 @@ */

/*!
* @pluginjs/template v0.7.18 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/template v0.7.19 (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;
/*!
* @pluginjs/template v0.7.18 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.

@@ -5,0 +5,0 @@ */

/*!
* @pluginjs/template v0.7.18 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/template v0.7.19 (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;
/*!
* @pluginjs/template v0.7.18 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* @pluginjs/template v0.7.19 (https://pluginjs.com)
* Copyright 2020 Creation Studio Limited
* Released under the GPL-3.0 License.

@@ -5,0 +5,0 @@ */

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

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

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

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

"dependencies": {
"@pluginjs/utils": "^0.7.18"
"@pluginjs/utils": "^0.7.19"
},
"devDependencies": {
"@babel/core": "^7.7.5",
"@pluginjs/browserslist-config": "^1.2.12",
"@pluginjs/browserslist-config": "^1.2.14",
"@pluginjs/cli": "^0.7.15",

@@ -69,4 +69,4 @@ "babel-jest": "*",

],
"gitHead": "f0767d4ff57027169d885ad7a3a46dbc4ff5cf7f",
"gitHead": "45f59203aaa9720d1fb61f5e96cde6d73b4cf2c8",
"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