From 40da0065f97fd573f6d4dd5ff46e6f8f0e961169 Mon Sep 17 00:00:00 2001 From: shengyonggen Date: Fri, 22 Jul 2022 17:47:00 +0800 Subject: [PATCH] Release 1.17.11 --- plugins/set-referrer-path/set-referrer-path.cmd.min.js | 1 + plugins/set-referrer-path/set-referrer-path.esm.min.js | 1 + 2 files changed, 2 insertions(+) create mode 100644 plugins/set-referrer-path/set-referrer-path.cmd.min.js create mode 100644 plugins/set-referrer-path/set-referrer-path.esm.min.js diff --git a/plugins/set-referrer-path/set-referrer-path.cmd.min.js b/plugins/set-referrer-path/set-referrer-path.cmd.min.js new file mode 100644 index 0000000..59f5ab0 --- /dev/null +++ b/plugins/set-referrer-path/set-referrer-path.cmd.min.js @@ -0,0 +1 @@ +"use strict";var hasOwnProperty=Object.prototype.hasOwnProperty;function isFunction(e){if(!e)return!1;var t=Object.prototype.toString.call(e);return"[object Function]"==t||"[object AsyncFunction]"==t}function isObject(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)}function isString(e){return"[object String]"==toString.call(e)}function log(){if("object"==typeof console&&console.log){isString(arguments[0])&&(arguments[0]="sensors registerProperties————"+arguments[0]);try{return console.log.apply(console,arguments)}catch(e){console.log("sensors registerProperties————",arguments[0])}}}function extend(e){return each(Array.prototype.slice.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e}function each(e,t,r){var i=Array.prototype.forEach,n={};if(null==e)return!1;if(i&&e.forEach===i)e.forEach(t,r);else if(e.length===+e.length){for(var s=0,o=e.length;s0&®ister_list.push(e):_.log("\u53c2\u6570\u9519\u8bef\uff01")},RegisterProperties.hookRegister=function(e){_.isFunction(e)&®ister_list.push(e)};var setReferrerPath={name:"sa-set-referrer-path",init:function(e){if(!(sa=e))return console.log("\u5f53\u524d\u4e3bsdk \u521d\u59cb\u5316\u5931\u8d25\uff0c\u8bf7\u4f20\u5165\u6b63\u786e\u7684 sensors \u5bf9\u8c61\uff01"),!1;this.setRefPath()},setRefPath:function(){RegisterProperties.init(sa),RegisterProperties.hookRegister(function(e){var t="",r={};if(e&&e.properties&&(t=e.properties.$referrer||"",sa._.isString(t))){var i=t.indexOf("?");r={referrer_path:i>0?t.substring(0,i):t}}return r})}};module.exports=setReferrerPath; \ No newline at end of file diff --git a/plugins/set-referrer-path/set-referrer-path.esm.min.js b/plugins/set-referrer-path/set-referrer-path.esm.min.js new file mode 100644 index 0000000..447fac7 --- /dev/null +++ b/plugins/set-referrer-path/set-referrer-path.esm.min.js @@ -0,0 +1 @@ +var hasOwnProperty=Object.prototype.hasOwnProperty;function isFunction(e){if(!e)return!1;var t=Object.prototype.toString.call(e);return"[object Function]"==t||"[object AsyncFunction]"==t}function isObject(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)}function isString(e){return"[object String]"==toString.call(e)}function log(){if("object"==typeof console&&console.log){isString(arguments[0])&&(arguments[0]="sensors registerProperties————"+arguments[0]);try{return console.log.apply(console,arguments)}catch(e){console.log("sensors registerProperties————",arguments[0])}}}function extend(e){return each(Array.prototype.slice.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e}function each(e,t,r){var i=Array.prototype.forEach,n={};if(null==e)return!1;if(i&&e.forEach===i)e.forEach(t,r);else if(e.length===+e.length){for(var s=0,o=e.length;s0&®ister_list.push(e):_.log("\u53c2\u6570\u9519\u8bef\uff01")},RegisterProperties.hookRegister=function(e){_.isFunction(e)&®ister_list.push(e)};var setReferrerPath={name:"sa-set-referrer-path",init:function(e){if(!(sa=e))return console.log("\u5f53\u524d\u4e3bsdk \u521d\u59cb\u5316\u5931\u8d25\uff0c\u8bf7\u4f20\u5165\u6b63\u786e\u7684 sensors \u5bf9\u8c61\uff01"),!1;this.setRefPath()},setRefPath:function(){RegisterProperties.init(sa),RegisterProperties.hookRegister(function(e){var t="",r={};if(e&&e.properties&&(t=e.properties.$referrer||"",sa._.isString(t))){var i=t.indexOf("?");r={referrer_path:i>0?t.substring(0,i):t}}return r})}};export default setReferrerPath; \ No newline at end of file