plausible-tracker
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,1 +0,1 @@ | ||
{"processes":{"4311a2fe-9ddf-453f-84cf-9c9411264395":{"parent":null,"children":[]}},"files":{"/Users/maronato/Documents/plausible-analytics/plausible-analytics/jest.config.js":["4311a2fe-9ddf-453f-84cf-9c9411264395"]},"externalIds":{}} | ||
{"processes":{"0617ba85-c575-41f7-b65a-eeab411f09dc":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"0f283f39-c692-495c-9c0c-60e5b97b09e4":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"10f26133-3902-49f2-8c8d-023324571dd1":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"209f7853-ae7c-413b-845e-401c3dbf9a22":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"2145cc15-fcfe-4e27-add2-2c1c60fbe62e":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"2c06889f-b6b8-4a18-b687-245a44a68b40":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"60286d49-82a7-4a29-a91c-54d2a09f2459":{"parent":null,"children":["0617ba85-c575-41f7-b65a-eeab411f09dc","0f283f39-c692-495c-9c0c-60e5b97b09e4","10f26133-3902-49f2-8c8d-023324571dd1","209f7853-ae7c-413b-845e-401c3dbf9a22","2145cc15-fcfe-4e27-add2-2c1c60fbe62e","2c06889f-b6b8-4a18-b687-245a44a68b40","61452d2a-d966-4a89-95e4-f9f009855429","673e4aad-2c20-432c-a22b-6dfd3c480a59","713fc01c-7ee9-4eba-bf22-f4a5cbc96968","83906648-f4e5-4fb9-b631-2d6388d2e4d7","a1085303-b870-406f-b3f9-e8de7464f440","f0f3161f-c297-4701-98f7-91155d89edb0","f5425fb6-40e0-404e-a819-6054e7907f68","f6779681-2db4-476e-9b7f-ccb85b7afda0","fee0a659-1fa0-47dc-8915-50aca68a1acd"]},"61452d2a-d966-4a89-95e4-f9f009855429":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"673e4aad-2c20-432c-a22b-6dfd3c480a59":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"713fc01c-7ee9-4eba-bf22-f4a5cbc96968":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"83906648-f4e5-4fb9-b631-2d6388d2e4d7":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"a1085303-b870-406f-b3f9-e8de7464f440":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"f0f3161f-c297-4701-98f7-91155d89edb0":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"f5425fb6-40e0-404e-a819-6054e7907f68":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"f6779681-2db4-476e-9b7f-ccb85b7afda0":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]},"fee0a659-1fa0-47dc-8915-50aca68a1acd":{"parent":"60286d49-82a7-4a29-a91c-54d2a09f2459","children":[]}},"files":{"/Users/maronato/Documents/plausible-analytics/plausible-analytics/jest.config.js":["60286d49-82a7-4a29-a91c-54d2a09f2459"]},"externalIds":{}} |
@@ -1,1 +0,1 @@ | ||
{"kinds":{"32":"Variable","64":"Function","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"EventOptions","url":"globals.html#eventoptions","classes":"tsd-kind-type-alias"},{"id":1,"kind":65536,"name":"__type","url":"globals.html#eventoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EventOptions"},{"id":2,"kind":32,"name":"callback","url":"globals.html#eventoptions.__type.callback","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"EventOptions.__type"},{"id":3,"kind":4194304,"name":"PlausibleInitOptions","url":"globals.html#plausibleinitoptions","classes":"tsd-kind-type-alias"},{"id":4,"kind":65536,"name":"__type","url":"globals.html#plausibleinitoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"PlausibleInitOptions"},{"id":5,"kind":32,"name":"hashMode","url":"globals.html#plausibleinitoptions.__type.hashmode","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":6,"kind":32,"name":"trackLocalhost","url":"globals.html#plausibleinitoptions.__type.tracklocalhost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":7,"kind":32,"name":"domain","url":"globals.html#plausibleinitoptions.__type.domain","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":8,"kind":32,"name":"apiHost","url":"globals.html#plausibleinitoptions.__type.apihost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":9,"kind":4194304,"name":"PlausibleOptions","url":"globals.html#plausibleoptions","classes":"tsd-kind-type-alias"},{"id":10,"kind":4194304,"name":"TrackEvent","url":"globals.html#trackevent","classes":"tsd-kind-type-alias"},{"id":11,"kind":65536,"name":"__type","url":"globals.html#trackevent.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"TrackEvent"},{"id":12,"kind":4194304,"name":"TrackPageview","url":"globals.html#trackpageview","classes":"tsd-kind-type-alias"},{"id":13,"kind":65536,"name":"__type","url":"globals.html#trackpageview.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"TrackPageview"},{"id":14,"kind":4194304,"name":"Cleanup","url":"globals.html#cleanup","classes":"tsd-kind-type-alias"},{"id":15,"kind":65536,"name":"__type","url":"globals.html#cleanup.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"Cleanup"},{"id":16,"kind":4194304,"name":"EnableAutoPageviews","url":"globals.html#enableautopageviews","classes":"tsd-kind-type-alias"},{"id":17,"kind":65536,"name":"__type","url":"globals.html#enableautopageviews.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EnableAutoPageviews"},{"id":18,"kind":64,"name":"Plausible","url":"globals.html#plausible","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,20.794]],["parent/0",[]],["name/1",[1,11.239]],["parent/1",[0,1.603]],["name/2",[2,25.903]],["parent/2",[3,1.996]],["name/3",[4,20.794]],["parent/3",[]],["name/4",[1,11.239]],["parent/4",[4,1.603]],["name/5",[5,25.903]],["parent/5",[6,1.15]],["name/6",[7,25.903]],["parent/6",[6,1.15]],["name/7",[8,25.903]],["parent/7",[6,1.15]],["name/8",[9,25.903]],["parent/8",[6,1.15]],["name/9",[10,25.903]],["parent/9",[]],["name/10",[11,20.794]],["parent/10",[]],["name/11",[1,11.239]],["parent/11",[11,1.603]],["name/12",[12,20.794]],["parent/12",[]],["name/13",[1,11.239]],["parent/13",[12,1.603]],["name/14",[13,20.794]],["parent/14",[]],["name/15",[1,11.239]],["parent/15",[13,1.603]],["name/16",[14,20.794]],["parent/16",[]],["name/17",[1,11.239]],["parent/17",[14,1.603]],["name/18",[15,25.903]],["parent/18",[]]],"invertedIndex":[["__type",{"_index":1,"name":{"1":{},"4":{},"11":{},"13":{},"15":{},"17":{}},"parent":{}}],["apihost",{"_index":9,"name":{"8":{}},"parent":{}}],["callback",{"_index":2,"name":{"2":{}},"parent":{}}],["cleanup",{"_index":13,"name":{"14":{}},"parent":{"15":{}}}],["domain",{"_index":8,"name":{"7":{}},"parent":{}}],["enableautopageviews",{"_index":14,"name":{"16":{}},"parent":{"17":{}}}],["eventoptions",{"_index":0,"name":{"0":{}},"parent":{"1":{}}}],["eventoptions.__type",{"_index":3,"name":{},"parent":{"2":{}}}],["hashmode",{"_index":5,"name":{"5":{}},"parent":{}}],["plausible",{"_index":15,"name":{"18":{}},"parent":{}}],["plausibleinitoptions",{"_index":4,"name":{"3":{}},"parent":{"4":{}}}],["plausibleinitoptions.__type",{"_index":6,"name":{},"parent":{"5":{},"6":{},"7":{},"8":{}}}],["plausibleoptions",{"_index":10,"name":{"9":{}},"parent":{}}],["trackevent",{"_index":11,"name":{"10":{}},"parent":{"11":{}}}],["tracklocalhost",{"_index":7,"name":{"6":{}},"parent":{}}],["trackpageview",{"_index":12,"name":{"12":{}},"parent":{"13":{}}}]],"pipeline":[]}} | ||
{"kinds":{"32":"Variable","64":"Function","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"EventOptions","url":"globals.html#eventoptions","classes":"tsd-kind-type-alias"},{"id":1,"kind":65536,"name":"__type","url":"globals.html#eventoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EventOptions"},{"id":2,"kind":32,"name":"callback","url":"globals.html#eventoptions.__type.callback","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"EventOptions.__type"},{"id":3,"kind":4194304,"name":"PlausibleInitOptions","url":"globals.html#plausibleinitoptions","classes":"tsd-kind-type-alias"},{"id":4,"kind":65536,"name":"__type","url":"globals.html#plausibleinitoptions.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"PlausibleInitOptions"},{"id":5,"kind":32,"name":"hashMode","url":"globals.html#plausibleinitoptions.__type.hashmode","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":6,"kind":32,"name":"trackLocalhost","url":"globals.html#plausibleinitoptions.__type.tracklocalhost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":7,"kind":32,"name":"domain","url":"globals.html#plausibleinitoptions.__type.domain","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":8,"kind":32,"name":"apiHost","url":"globals.html#plausibleinitoptions.__type.apihost","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleInitOptions.__type"},{"id":9,"kind":4194304,"name":"PlausibleEventData","url":"globals.html#plausibleeventdata","classes":"tsd-kind-type-alias"},{"id":10,"kind":65536,"name":"__type","url":"globals.html#plausibleeventdata.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"PlausibleEventData"},{"id":11,"kind":32,"name":"url","url":"globals.html#plausibleeventdata.__type.url","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleEventData.__type"},{"id":12,"kind":32,"name":"referrer","url":"globals.html#plausibleeventdata.__type.referrer","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleEventData.__type"},{"id":13,"kind":32,"name":"deviceWidth","url":"globals.html#plausibleeventdata.__type.devicewidth","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"PlausibleEventData.__type"},{"id":14,"kind":4194304,"name":"PlausibleOptions","url":"globals.html#plausibleoptions","classes":"tsd-kind-type-alias"},{"id":15,"kind":4194304,"name":"TrackEvent","url":"globals.html#trackevent","classes":"tsd-kind-type-alias"},{"id":16,"kind":65536,"name":"__type","url":"globals.html#trackevent.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"TrackEvent"},{"id":17,"kind":4194304,"name":"TrackPageview","url":"globals.html#trackpageview","classes":"tsd-kind-type-alias"},{"id":18,"kind":65536,"name":"__type","url":"globals.html#trackpageview.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"TrackPageview"},{"id":19,"kind":4194304,"name":"Cleanup","url":"globals.html#cleanup","classes":"tsd-kind-type-alias"},{"id":20,"kind":65536,"name":"__type","url":"globals.html#cleanup.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"Cleanup"},{"id":21,"kind":4194304,"name":"EnableAutoPageviews","url":"globals.html#enableautopageviews","classes":"tsd-kind-type-alias"},{"id":22,"kind":65536,"name":"__type","url":"globals.html#enableautopageviews.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"EnableAutoPageviews"},{"id":23,"kind":64,"name":"Plausible","url":"globals.html#plausible","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,23.026]],["parent/0",[]],["name/1",[1,12.04]],["parent/1",[0,1.849]],["name/2",[2,28.134]],["parent/2",[3,2.259]],["name/3",[4,23.026]],["parent/3",[]],["name/4",[1,12.04]],["parent/4",[4,1.849]],["name/5",[5,28.134]],["parent/5",[6,1.377]],["name/6",[7,28.134]],["parent/6",[6,1.377]],["name/7",[8,28.134]],["parent/7",[6,1.377]],["name/8",[9,28.134]],["parent/8",[6,1.377]],["name/9",[10,23.026]],["parent/9",[]],["name/10",[1,12.04]],["parent/10",[10,1.849]],["name/11",[11,28.134]],["parent/11",[12,1.579]],["name/12",[13,28.134]],["parent/12",[12,1.579]],["name/13",[14,28.134]],["parent/13",[12,1.579]],["name/14",[15,28.134]],["parent/14",[]],["name/15",[16,23.026]],["parent/15",[]],["name/16",[1,12.04]],["parent/16",[16,1.849]],["name/17",[17,23.026]],["parent/17",[]],["name/18",[1,12.04]],["parent/18",[17,1.849]],["name/19",[18,23.026]],["parent/19",[]],["name/20",[1,12.04]],["parent/20",[18,1.849]],["name/21",[19,23.026]],["parent/21",[]],["name/22",[1,12.04]],["parent/22",[19,1.849]],["name/23",[20,28.134]],["parent/23",[]]],"invertedIndex":[["__type",{"_index":1,"name":{"1":{},"4":{},"10":{},"16":{},"18":{},"20":{},"22":{}},"parent":{}}],["apihost",{"_index":9,"name":{"8":{}},"parent":{}}],["callback",{"_index":2,"name":{"2":{}},"parent":{}}],["cleanup",{"_index":18,"name":{"19":{}},"parent":{"20":{}}}],["devicewidth",{"_index":14,"name":{"13":{}},"parent":{}}],["domain",{"_index":8,"name":{"7":{}},"parent":{}}],["enableautopageviews",{"_index":19,"name":{"21":{}},"parent":{"22":{}}}],["eventoptions",{"_index":0,"name":{"0":{}},"parent":{"1":{}}}],["eventoptions.__type",{"_index":3,"name":{},"parent":{"2":{}}}],["hashmode",{"_index":5,"name":{"5":{}},"parent":{}}],["plausible",{"_index":20,"name":{"23":{}},"parent":{}}],["plausibleeventdata",{"_index":10,"name":{"9":{}},"parent":{"10":{}}}],["plausibleeventdata.__type",{"_index":12,"name":{},"parent":{"11":{},"12":{},"13":{}}}],["plausibleinitoptions",{"_index":4,"name":{"3":{}},"parent":{"4":{}}}],["plausibleinitoptions.__type",{"_index":6,"name":{},"parent":{"5":{},"6":{},"7":{},"8":{}}}],["plausibleoptions",{"_index":15,"name":{"14":{}},"parent":{}}],["referrer",{"_index":13,"name":{"12":{}},"parent":{}}],["trackevent",{"_index":16,"name":{"15":{}},"parent":{"16":{}}}],["tracklocalhost",{"_index":7,"name":{"6":{}},"parent":{}}],["trackpageview",{"_index":17,"name":{"17":{}},"parent":{"18":{}}}],["url",{"_index":11,"name":{"11":{}},"parent":{}}]],"pipeline":[]}} |
@@ -27,5 +27,5 @@ import { EventOptions } from './request'; | ||
/** | ||
* Options used when tracking Plausible events. | ||
* Data passed to Plausible as events. | ||
*/ | ||
export declare type PlausibleOptions = PlausibleInitOptions & { | ||
export declare type PlausibleEventData = { | ||
/** | ||
@@ -48,2 +48,6 @@ * The URL to bind the event to. | ||
/** | ||
* Options used when tracking Plausible events. | ||
*/ | ||
export declare type PlausibleOptions = PlausibleInitOptions & PlausibleEventData; | ||
/** | ||
* Tracks a custom event. | ||
@@ -50,0 +54,0 @@ * |
@@ -81,2 +81,2 @@ "use strict"; | ||
exports.default = Plausible; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvdHJhY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHVDQUFvRDtBQWdJcEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9DRztBQUNILFNBQXdCLFNBQVMsQ0FDL0IsUUFBK0I7SUFNL0IsTUFBTSxTQUFTLEdBQUcsR0FBK0IsRUFBRSxDQUFDLGlCQU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QUFLLENBQUMsSUFBSSxFQUFFLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFDO2dCQUNsRCxJQUFJLEVBQUUsQ0FBQztZQUNULENBQUMsQ0FBQztZQUNGLGdCQUFnQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsQ0FBQztTQUNwQztRQUVELDZCQUE2QjtRQUM3QixJQUFJLFFBQVEsSUFBSSxRQUFRLENBQUMsUUFBUSxFQUFFO1lBQ2pDLGdCQUFnQixDQUFDLFlBQVksRUFBRSxJQUFJLENBQUMsQ0FBQztTQUN0QztRQUVELDBCQUEwQjtRQUMxQixhQUFhLEVBQUUsQ0FBQztRQUVoQixPQUFPLFNBQVMsT0FBTztZQUNyQixJQUFJLGlCQUFpQixFQUFFO2dCQUNyQixxREFBcUQ7Z0JBQ3JELE9BQU8sQ0FBQyxTQUFTLEdBQUcsaUJBQWlCLENBQUM7Z0JBQ3RDLG1CQUFtQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsQ0FBQzthQUN2QztZQUNELElBQUksUUFBUSxJQUFJLFFBQVEsQ0FBQyxRQUFRLEVBQUU7Z0JBQ2pDLG1CQUFtQixDQUFDLFlBQVksRUFBRSxJQUFJLENBQUMsQ0FBQzthQUN6QztRQUNILENBQUMsQ0FBQztJQUNKLENBQUMsQ0FBQztJQUVGLE9BQU8sRUFBRSxVQUFVLEVBQUUsYUFBYSxFQUFFLG1CQUFtQixFQUFFLENBQUM7QUFDNUQsQ0FBQztBQTVERCw0QkE0REMifQ== |
@@ -27,5 +27,5 @@ import { EventOptions } from './request'; | ||
/** | ||
* Options used when tracking Plausible events. | ||
* Data passed to Plausible as events. | ||
*/ | ||
export declare type PlausibleOptions = PlausibleInitOptions & { | ||
export declare type PlausibleEventData = { | ||
/** | ||
@@ -48,2 +48,6 @@ * The URL to bind the event to. | ||
/** | ||
* Options used when tracking Plausible events. | ||
*/ | ||
export declare type PlausibleOptions = PlausibleInitOptions & PlausibleEventData; | ||
/** | ||
* Tracks a custom event. | ||
@@ -50,0 +54,0 @@ * |
@@ -87,2 +87,2 @@ import { sendEvent } from './request'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2tlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvdHJhY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWdCLFNBQVMsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQWdJcEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9DRztBQUNILE1BQU0sQ0FBQyxPQUFPLFVBQVUsU0FBUyxDQUMvQixRQUErQjtJQU0vQixNQUFNLFNBQVMsR0FBRyxHQUErQixFQUFFLENBQUMsQ0FBQztRQUNuRCxRQUFRLEVBQUUsS0FBSztRQUNmLGNBQWMsRUFBRSxLQUFLO1FBQ3JCLEdBQUcsRUFBRSxRQUFRLENBQUMsSUFBSTtRQUNsQixNQUFNLEVBQUUsUUFBUSxDQUFDLFFBQVE7UUFDekIsUUFBUSxFQUFFLFFBQVEsQ0FBQyxRQUFRLElBQUksSUFBSTtRQUNuQyxXQUFXLEVBQUUsTUFBTSxDQUFDLFVBQVU7UUFDOUIsT0FBTyxFQUFFLHNCQUFzQjtRQUMvQixHQUFHLFFBQVE7S0FDWixDQUFDLENBQUM7SUFFSCxNQUFNLFVBQVUsR0FBZSxDQUFDLFNBQVMsRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFLEVBQUU7UUFDL0QsU0FBUyxDQUFDLFNBQVMsRUFBRSxFQUFFLEdBQUcsU0FBUyxFQUFFLEVBQUUsR0FBRyxTQUFTLEVBQUUsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUNsRSxDQUFDLENBQUM7SUFFRixNQUFNLGFBQ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sSUFBSSxpQkFBaUIsRUFBRTtnQkFDckIscURBQXFEO2dCQUNyRCxPQUFPLENBQUMsU0FBUyxHQUFHLGlCQUFpQixDQUFDO2dCQUN0QyxtQkFBbUIsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLENBQUM7YUFDdkM7WUFDRCxJQUFJLFFBQVEsSUFBSSxRQUFRLENBQUMsUUFBUSxFQUFFO2dCQUNqQyxtQkFBbUIsQ0FBQyxZQUFZLEVBQUUsSUFBSSxDQUFDLENBQUM7YUFDekM7UUFDSCxDQUFDLENBQUM7SUFDSixDQUFDLENBQUM7SUFFRixPQUFPLEVBQUUsVUFBVSxFQUFFLGFBQWEsRUFBRSxtQkFBbUIsRUFBRSxDQUFDO0FBQzVELENBQUMifQ== |
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.2.1](https://github.com/Maronato/plausible-tracker/compare/v0.2.0...v0.2.1) (2020-10-15) | ||
## [0.2.0](https://github.com/Maronato/plausible-tracker/compare/v0.1.11...v0.2.0) (2020-10-15) | ||
@@ -7,0 +9,0 @@ |
{"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/request.ts": {"path":"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/request.ts","statementMap":{"0":{"start":{"line":32,"column":4},"end":{"line":34,"column":38}},"1":{"start":{"line":36,"column":2},"end":{"line":40,"column":null}},"2":{"start":{"line":37,"column":4},"end":{"line":39,"column":6}},"3":{"start":{"line":42,"column":32},"end":{"line":49,"column":4}},"4":{"start":{"line":51,"column":14},"end":{"line":51,"column":34}},"5":{"start":{"line":52,"column":2},"end":{"line":52,"column":54}},"6":{"start":{"line":53,"column":2},"end":{"line":53,"column":53}},"7":{"start":{"line":54,"column":2},"end":{"line":54,"column":36}},"8":{"start":{"line":56,"column":2},"end":{"line":61,"column":4}},"9":{"start":{"line":57,"column":4},"end":{"line":57,"column":37}},"10":{"start":{"line":57,"column":30},"end":{"line":57,"column":37}},"11":{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},"12":{"start":{"line":59,"column":6},"end":{"line":59,"column":25}},"13":{"start":{"line":26,"column":0},"end":{"line":26,"column":16}}},"fnMap":{"0":{"name":"sendEvent","decl":{"start":{"line":26,"column":16},"end":{"line":26,"column":25}},"loc":{"start":{"line":29,"column":24},"end":{"line":62,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":56,"column":27},"end":{"line":56,"column":30}},"loc":{"start":{"line":56,"column":32},"end":{"line":61,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":32,"column":4},"end":{"line":33,"column":null}},"type":"binary-expr","locations":[{"start":{"line":32,"column":4},"end":{"line":33,"column":null}},{"start":{"line":34,"column":9},"end":{"line":34,"column":38}}]},"1":{"loc":{"start":{"line":36,"column":2},"end":{"line":40,"column":null}},"type":"if","locations":[{"start":{"line":36,"column":2},"end":{"line":40,"column":null}},{"start":{"line":36,"column":2},"end":{"line":40,"column":null}}]},"2":{"loc":{"start":{"line":36,"column":6},"end":{"line":36,"column":26}},"type":"binary-expr","locations":[{"start":{"line":36,"column":6},"end":{"line":36,"column":26}},{"start":{"line":36,"column":30},"end":{"line":36,"column":41}}]},"3":{"loc":{"start":{"line":48,"column":23},"end":{"line":48,"column":24}},"type":"cond-expr","locations":[{"start":{"line":48,"column":23},"end":{"line":48,"column":24}},{"start":{"line":48,"column":27},"end":{"line":48,"column":28}}]},"4":{"loc":{"start":{"line":57,"column":4},"end":{"line":57,"column":37}},"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":57,"column":37}},{"start":{"line":57,"column":4},"end":{"line":57,"column":37}}]},"5":{"loc":{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},{"start":{"line":58,"column":4},"end":{"line":60,"column":null}}]},"6":{"loc":{"start":{"line":58,"column":8},"end":{"line":58,"column":15}},"type":"binary-expr","locations":[{"start":{"line":58,"column":8},"end":{"line":58,"column":15}},{"start":{"line":58,"column":19},"end":{"line":58,"column":35}}]}},"s":{"0":6,"1":6,"2":2,"3":4,"4":4,"5":4,"6":4,"7":4,"8":4,"9":3,"10":1,"11":2,"12":1,"13":2},"f":{"0":6,"1":3},"b":{"0":[6,4],"1":[2,4],"2":[6,5],"3":[1,3],"4":[1,2],"5":[1,1],"6":[2,1]}} | ||
,"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts": {"path":"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},"1":{"start":{"line":173,"column":20},"end":{"line":181,"column":null}},"2":{"start":{"line":173,"column":54},"end":{"line":181,"column":null}},"3":{"start":{"line":184,"column":33},"end":{"line":186,"column":3}},"4":{"start":{"line":185,"column":4},"end":{"line":185,"column":68}},"5":{"start":{"line":188,"column":39},"end":{"line":190,"column":3}},"6":{"start":{"line":189,"column":4},"end":{"line":189,"column":47}},"7":{"start":{"line":192,"column":51},"end":{"line":223,"column":3}},"8":{"start":{"line":193,"column":17},"end":{"line":193,"column":38}},"9":{"start":{"line":193,"column":23},"end":{"line":193,"column":38}},"10":{"start":{"line":195,"column":30},"end":{"line":195,"column":47}},"11":{"start":{"line":196,"column":4},"end":{"line":203,"column":null}},"12":{"start":{"line":198,"column":6},"end":{"line":201,"column":8}},"13":{"start":{"line":199,"column":8},"end":{"line":199,"column":58}},"14":{"start":{"line":200,"column":8},"end":{"line":200,"column":15}},"15":{"start":{"line":202,"column":6},"end":{"line":202,"column":41}},"16":{"start":{"line":206,"column":4},"end":{"line":208,"column":null}},"17":{"start":{"line":207,"column":6},"end":{"line":207,"column":43}},"18":{"start":{"line":211,"column":4},"end":{"line":211,"column":20}},"19":{"start":{"line":213,"column":4},"end":{"line":222,"column":6}},"20":{"start":{"line":214,"column":6},"end":{"line":218,"column":null}},"21":{"start":{"line":216,"column":8},"end":{"line":216,"column":46}},"22":{"start":{"line":217,"column":8},"end":{"line":217,"column":46}},"23":{"start":{"line":219,"column":6},"end":{"line":221,"column":null}},"24":{"start":{"line":220,"column":8},"end":{"line":220,"column":48}},"25":{"start":{"line":225,"column":2},"end":{"line":225,"column":60}},"26":{"start":{"line":166,"column":0},"end":{"line":166,"column":24}}},"fnMap":{"0":{"name":"Plausible","decl":{"start":{"line":166,"column":24},"end":{"line":166,"column":33}},"loc":{"start":{"line":167,"column":33},"end":{"line":226,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":173,"column":20},"end":{"line":173,"column":51}},"loc":{"start":{"line":173,"column":54},"end":{"line":181,"column":null}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":184,"column":33},"end":{"line":184,"column":34}},"loc":{"start":{"line":184,"column":67},"end":{"line":186,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":188,"column":39},"end":{"line":188,"column":40}},"loc":{"start":{"line":188,"column":62},"end":{"line":190,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":192,"column":51},"end":{"line":192,"column":54}},"loc":{"start":{"line":192,"column":56},"end":{"line":223,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":193,"column":17},"end":{"line":193,"column":20}},"loc":{"start":{"line":193,"column":23},"end":{"line":193,"column":38}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":198,"column":26},"end":{"line":198,"column":36}},"loc":{"start":{"line":198,"column":52},"end":{"line":201,"column":7}}},"7":{"name":"cleanup","decl":{"start":{"line":213,"column":20},"end":{"line":213,"column":27}},"loc":{"start":{"line":213,"column":27},"end":{"line":222,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":178,"column":14},"end":{"line":178,"column":31}},"type":"binary-expr","locations":[{"start":{"line":178,"column":14},"end":{"line":178,"column":31}},{"start":{"line":178,"column":35},"end":{"line":178,"column":39}}]},"1":{"loc":{"start":{"line":196,"column":4},"end":{"line":203,"column":null}},"type":"if","locations":[{"start":{"line":196,"column":4},"end":{"line":203,"column":null}},{"start":{"line":196,"column":4},"end":{"line":203,"column":null}}]},"2":{"loc":{"start":{"line":206,"column":4},"end":{"line":208,"column":null}},"type":"if","locations":[{"start":{"line":206,"column":4},"end":{"line":208,"column":null}},{"start":{"line":206,"column":4},"end":{"line":208,"column":null}}]},"3":{"loc":{"start":{"line":206,"column":8},"end":{"line":206,"column":16}},"type":"binary-expr","locations":[{"start":{"line":206,"column":8},"end":{"line":206,"column":16}},{"start":{"line":206,"column":20},"end":{"line":206,"column":37}}]},"4":{"loc":{"start":{"line":214,"column":6},"end":{"line":218,"column":null}},"type":"if","locations":[{"start":{"line":214,"column":6},"end":{"line":218,"column":null}},{"start":{"line":214,"column":6},"end":{"line":218,"column":null}}]},"5":{"loc":{"start":{"line":219,"column":6},"end":{"line":221,"column":null}},"type":"if","locations":[{"start":{"line":219,"column":6},"end":{"line":221,"column":null}},{"start":{"line":219,"column":6},"end":{"line":221,"column":null}}]},"6":{"loc":{"start":{"line":219,"column":10},"end":{"line":219,"column":18}},"type":"binary-expr","locations":[{"start":{"line":219,"column":10},"end":{"line":219,"column":18}},{"start":{"line":219,"column":22},"end":{"line":219,"column":39}}]}},"s":{"0":1,"1":14,"2":17,"3":14,"4":17,"5":14,"6":12,"7":14,"8":6,"9":3,"10":6,"11":6,"12":5,"13":1,"14":1,"15":5,"16":6,"17":1,"18":6,"19":6,"20":6,"21":5,"22":5,"23":6,"24":1,"25":14,"26":1},"f":{"0":14,"1":17,"2":17,"3":12,"4":6,"5":3,"6":1,"7":6},"b":{"0":[17,17],"1":[5,1],"2":[1,5],"3":[6,1],"4":[5,1],"5":[1,5],"6":[6,1]}} | ||
,"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts": {"path":"/Users/maronato/Documents/plausible-analytics/plausible-analytics/src/lib/tracker.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},"1":{"start":{"line":178,"column":20},"end":{"line":186,"column":null}},"2":{"start":{"line":178,"column":54},"end":{"line":186,"column":null}},"3":{"start":{"line":189,"column":33},"end":{"line":191,"column":3}},"4":{"start":{"line":190,"column":4},"end":{"line":190,"column":68}},"5":{"start":{"line":193,"column":39},"end":{"line":195,"column":3}},"6":{"start":{"line":194,"column":4},"end":{"line":194,"column":47}},"7":{"start":{"line":197,"column":51},"end":{"line":228,"column":3}},"8":{"start":{"line":198,"column":17},"end":{"line":198,"column":38}},"9":{"start":{"line":198,"column":23},"end":{"line":198,"column":38}},"10":{"start":{"line":200,"column":30},"end":{"line":200,"column":47}},"11":{"start":{"line":201,"column":4},"end":{"line":208,"column":null}},"12":{"start":{"line":203,"column":6},"end":{"line":206,"column":8}},"13":{"start":{"line":204,"column":8},"end":{"line":204,"column":58}},"14":{"start":{"line":205,"column":8},"end":{"line":205,"column":15}},"15":{"start":{"line":207,"column":6},"end":{"line":207,"column":41}},"16":{"start":{"line":211,"column":4},"end":{"line":213,"column":null}},"17":{"start":{"line":212,"column":6},"end":{"line":212,"column":43}},"18":{"start":{"line":216,"column":4},"end":{"line":216,"column":20}},"19":{"start":{"line":218,"column":4},"end":{"line":227,"column":6}},"20":{"start":{"line":219,"column":6},"end":{"line":223,"column":null}},"21":{"start":{"line":221,"column":8},"end":{"line":221,"column":46}},"22":{"start":{"line":222,"column":8},"end":{"line":222,"column":46}},"23":{"start":{"line":224,"column":6},"end":{"line":226,"column":null}},"24":{"start":{"line":225,"column":8},"end":{"line":225,"column":48}},"25":{"start":{"line":230,"column":2},"end":{"line":230,"column":60}},"26":{"start":{"line":171,"column":0},"end":{"line":171,"column":24}}},"fnMap":{"0":{"name":"Plausible","decl":{"start":{"line":171,"column":24},"end":{"line":171,"column":33}},"loc":{"start":{"line":172,"column":33},"end":{"line":231,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":178,"column":20},"end":{"line":178,"column":51}},"loc":{"start":{"line":178,"column":54},"end":{"line":186,"column":null}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":189,"column":33},"end":{"line":189,"column":34}},"loc":{"start":{"line":189,"column":67},"end":{"line":191,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":193,"column":39},"end":{"line":193,"column":40}},"loc":{"start":{"line":193,"column":62},"end":{"line":195,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":197,"column":51},"end":{"line":197,"column":54}},"loc":{"start":{"line":197,"column":56},"end":{"line":228,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":198,"column":17},"end":{"line":198,"column":20}},"loc":{"start":{"line":198,"column":23},"end":{"line":198,"column":38}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":203,"column":26},"end":{"line":203,"column":36}},"loc":{"start":{"line":203,"column":52},"end":{"line":206,"column":7}}},"7":{"name":"cleanup","decl":{"start":{"line":218,"column":20},"end":{"line":218,"column":27}},"loc":{"start":{"line":218,"column":27},"end":{"line":227,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":183,"column":14},"end":{"line":183,"column":31}},"type":"binary-expr","locations":[{"start":{"line":183,"column":14},"end":{"line":183,"column":31}},{"start":{"line":183,"column":35},"end":{"line":183,"column":39}}]},"1":{"loc":{"start":{"line":201,"column":4},"end":{"line":208,"column":null}},"type":"if","locations":[{"start":{"line":201,"column":4},"end":{"line":208,"column":null}},{"start":{"line":201,"column":4},"end":{"line":208,"column":null}}]},"2":{"loc":{"start":{"line":211,"column":4},"end":{"line":213,"column":null}},"type":"if","locations":[{"start":{"line":211,"column":4},"end":{"line":213,"column":null}},{"start":{"line":211,"column":4},"end":{"line":213,"column":null}}]},"3":{"loc":{"start":{"line":211,"column":8},"end":{"line":211,"column":16}},"type":"binary-expr","locations":[{"start":{"line":211,"column":8},"end":{"line":211,"column":16}},{"start":{"line":211,"column":20},"end":{"line":211,"column":37}}]},"4":{"loc":{"start":{"line":219,"column":6},"end":{"line":223,"column":null}},"type":"if","locations":[{"start":{"line":219,"column":6},"end":{"line":223,"column":null}},{"start":{"line":219,"column":6},"end":{"line":223,"column":null}}]},"5":{"loc":{"start":{"line":224,"column":6},"end":{"line":226,"column":null}},"type":"if","locations":[{"start":{"line":224,"column":6},"end":{"line":226,"column":null}},{"start":{"line":224,"column":6},"end":{"line":226,"column":null}}]},"6":{"loc":{"start":{"line":224,"column":10},"end":{"line":224,"column":18}},"type":"binary-expr","locations":[{"start":{"line":224,"column":10},"end":{"line":224,"column":18}},{"start":{"line":224,"column":22},"end":{"line":224,"column":39}}]}},"s":{"0":1,"1":14,"2":17,"3":14,"4":17,"5":14,"6":12,"7":14,"8":6,"9":3,"10":6,"11":6,"12":5,"13":1,"14":1,"15":5,"16":6,"17":1,"18":6,"19":6,"20":6,"21":5,"22":5,"23":6,"24":1,"25":14,"26":1},"f":{"0":14,"1":17,"2":17,"3":12,"4":6,"5":3,"6":1,"7":6},"b":{"0":[17,17],"1":[5,1],"2":[1,5],"3":[6,1],"4":[5,1],"5":[1,5],"6":[6,1]}} | ||
} |
{ | ||
"name": "plausible-tracker", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Unofficial frontend tracker to interact with Plausible Analytics", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
@@ -82,3 +82,3 @@ # Plausible Analytics Tracker | ||
You may also override the values you provided when initializing the tracker by passing a [similar object](https://maronato.github.io/plausible-tracker/globals.html#plausibleinitoptions) as the first parameter. | ||
You may also override the values you provided when initializing the tracker by passing a [similar object](https://maronato.github.io/plausible-tracker/globals.html#plausibleoptions) as the first parameter. | ||
@@ -85,0 +85,0 @@ This object takes the same options as the initialization one, plus the following: |
@@ -29,5 +29,5 @@ import { EventOptions, sendEvent } from './request'; | ||
/** | ||
* Options used when tracking Plausible events. | ||
* Data passed to Plausible as events. | ||
*/ | ||
export type PlausibleOptions = PlausibleInitOptions & { | ||
export type PlausibleEventData = { | ||
/** | ||
@@ -51,2 +51,7 @@ * The URL to bind the event to. | ||
/** | ||
* Options used when tracking Plausible events. | ||
*/ | ||
export type PlausibleOptions = PlausibleInitOptions & PlausibleEventData; | ||
/** | ||
* Tracks a custom event. | ||
@@ -53,0 +58,0 @@ * |
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
758572
105
2738