factorial-pixel
Advanced tools
Comparing version 0.1.1 to 0.2.0
687
build/app.js
@@ -67,3 +67,3 @@ var factorialPixel = | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 6); | ||
/******/ return __webpack_require__(__webpack_require__.s = 3); | ||
/******/ }) | ||
@@ -78,4 +78,2 @@ /************************************************************************/ | ||
__webpack_require__(5); | ||
var _pixelUrl = __webpack_require__(1); | ||
@@ -85,20 +83,8 @@ | ||
var _storeCookie = __webpack_require__(3); | ||
var _storeCookie2 = _interopRequireDefault(_storeCookie); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
document.addEventListener('DOMContentLoaded', function () { | ||
var url = (0, _pixelUrl2.default)(document); | ||
var img = document.createElement('img'); | ||
img.src = (0, _pixelUrl2.default)(document); | ||
document.body.appendChild(img); | ||
return fetch(url, { credentials: 'include' }).then(function (response) { | ||
return response.json(); | ||
}).then(function (json) { | ||
(0, _storeCookie2.default)(json); | ||
}).catch(function (ex) { | ||
console.error(ex); | ||
}); | ||
}); | ||
/***/ }), | ||
@@ -157,667 +143,2 @@ /* 1 */ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _jsCookie = __webpack_require__(4); | ||
var _jsCookie2 = _interopRequireDefault(_jsCookie); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.default = function (json) { | ||
Object.keys(json).forEach(function (key) { | ||
_jsCookie2.default.set(key, json[key]); | ||
}); | ||
}; | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! | ||
* JavaScript Cookie v2.1.4 | ||
* https://github.com/js-cookie/js-cookie | ||
* | ||
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack | ||
* Released under the MIT license | ||
*/ | ||
;(function (factory) { | ||
var registeredInModuleLoader = false; | ||
if (true) { | ||
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory), | ||
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? | ||
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : | ||
__WEBPACK_AMD_DEFINE_FACTORY__), | ||
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); | ||
registeredInModuleLoader = true; | ||
} | ||
if (true) { | ||
module.exports = factory(); | ||
registeredInModuleLoader = true; | ||
} | ||
if (!registeredInModuleLoader) { | ||
var OldCookies = window.Cookies; | ||
var api = window.Cookies = factory(); | ||
api.noConflict = function () { | ||
window.Cookies = OldCookies; | ||
return api; | ||
}; | ||
} | ||
}(function () { | ||
function extend () { | ||
var i = 0; | ||
var result = {}; | ||
for (; i < arguments.length; i++) { | ||
var attributes = arguments[ i ]; | ||
for (var key in attributes) { | ||
result[key] = attributes[key]; | ||
} | ||
} | ||
return result; | ||
} | ||
function init (converter) { | ||
function api (key, value, attributes) { | ||
var result; | ||
if (typeof document === 'undefined') { | ||
return; | ||
} | ||
// Write | ||
if (arguments.length > 1) { | ||
attributes = extend({ | ||
path: '/' | ||
}, api.defaults, attributes); | ||
if (typeof attributes.expires === 'number') { | ||
var expires = new Date(); | ||
expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5); | ||
attributes.expires = expires; | ||
} | ||
// We're using "expires" because "max-age" is not supported by IE | ||
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : ''; | ||
try { | ||
result = JSON.stringify(value); | ||
if (/^[\{\[]/.test(result)) { | ||
value = result; | ||
} | ||
} catch (e) {} | ||
if (!converter.write) { | ||
value = encodeURIComponent(String(value)) | ||
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent); | ||
} else { | ||
value = converter.write(value, key); | ||
} | ||
key = encodeURIComponent(String(key)); | ||
key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent); | ||
key = key.replace(/[\(\)]/g, escape); | ||
var stringifiedAttributes = ''; | ||
for (var attributeName in attributes) { | ||
if (!attributes[attributeName]) { | ||
continue; | ||
} | ||
stringifiedAttributes += '; ' + attributeName; | ||
if (attributes[attributeName] === true) { | ||
continue; | ||
} | ||
stringifiedAttributes += '=' + attributes[attributeName]; | ||
} | ||
return (document.cookie = key + '=' + value + stringifiedAttributes); | ||
} | ||
// Read | ||
if (!key) { | ||
result = {}; | ||
} | ||
// To prevent the for loop in the first place assign an empty array | ||
// in case there are no cookies at all. Also prevents odd result when | ||
// calling "get()" | ||
var cookies = document.cookie ? document.cookie.split('; ') : []; | ||
var rdecode = /(%[0-9A-Z]{2})+/g; | ||
var i = 0; | ||
for (; i < cookies.length; i++) { | ||
var parts = cookies[i].split('='); | ||
var cookie = parts.slice(1).join('='); | ||
if (cookie.charAt(0) === '"') { | ||
cookie = cookie.slice(1, -1); | ||
} | ||
try { | ||
var name = parts[0].replace(rdecode, decodeURIComponent); | ||
cookie = converter.read ? | ||
converter.read(cookie, name) : converter(cookie, name) || | ||
cookie.replace(rdecode, decodeURIComponent); | ||
if (this.json) { | ||
try { | ||
cookie = JSON.parse(cookie); | ||
} catch (e) {} | ||
} | ||
if (key === name) { | ||
result = cookie; | ||
break; | ||
} | ||
if (!key) { | ||
result[name] = cookie; | ||
} | ||
} catch (e) {} | ||
} | ||
return result; | ||
} | ||
api.set = api; | ||
api.get = function (key) { | ||
return api.call(api, key); | ||
}; | ||
api.getJSON = function () { | ||
return api.apply({ | ||
json: true | ||
}, [].slice.call(arguments)); | ||
}; | ||
api.defaults = {}; | ||
api.remove = function (key, attributes) { | ||
api(key, '', extend(attributes, { | ||
expires: -1 | ||
})); | ||
}; | ||
api.withConverter = init; | ||
return api; | ||
} | ||
return init(function () {}); | ||
})); | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, exports) { | ||
(function(self) { | ||
'use strict'; | ||
if (self.fetch) { | ||
return | ||
} | ||
var support = { | ||
searchParams: 'URLSearchParams' in self, | ||
iterable: 'Symbol' in self && 'iterator' in Symbol, | ||
blob: 'FileReader' in self && 'Blob' in self && (function() { | ||
try { | ||
new Blob() | ||
return true | ||
} catch(e) { | ||
return false | ||
} | ||
})(), | ||
formData: 'FormData' in self, | ||
arrayBuffer: 'ArrayBuffer' in self | ||
} | ||
if (support.arrayBuffer) { | ||
var viewClasses = [ | ||
'[object Int8Array]', | ||
'[object Uint8Array]', | ||
'[object Uint8ClampedArray]', | ||
'[object Int16Array]', | ||
'[object Uint16Array]', | ||
'[object Int32Array]', | ||
'[object Uint32Array]', | ||
'[object Float32Array]', | ||
'[object Float64Array]' | ||
] | ||
var isDataView = function(obj) { | ||
return obj && DataView.prototype.isPrototypeOf(obj) | ||
} | ||
var isArrayBufferView = ArrayBuffer.isView || function(obj) { | ||
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 | ||
} | ||
} | ||
function normalizeName(name) { | ||
if (typeof name !== 'string') { | ||
name = String(name) | ||
} | ||
if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { | ||
throw new TypeError('Invalid character in header field name') | ||
} | ||
return name.toLowerCase() | ||
} | ||
function normalizeValue(value) { | ||
if (typeof value !== 'string') { | ||
value = String(value) | ||
} | ||
return value | ||
} | ||
// Build a destructive iterator for the value list | ||
function iteratorFor(items) { | ||
var iterator = { | ||
next: function() { | ||
var value = items.shift() | ||
return {done: value === undefined, value: value} | ||
} | ||
} | ||
if (support.iterable) { | ||
iterator[Symbol.iterator] = function() { | ||
return iterator | ||
} | ||
} | ||
return iterator | ||
} | ||
function Headers(headers) { | ||
this.map = {} | ||
if (headers instanceof Headers) { | ||
headers.forEach(function(value, name) { | ||
this.append(name, value) | ||
}, this) | ||
} else if (Array.isArray(headers)) { | ||
headers.forEach(function(header) { | ||
this.append(header[0], header[1]) | ||
}, this) | ||
} else if (headers) { | ||
Object.getOwnPropertyNames(headers).forEach(function(name) { | ||
this.append(name, headers[name]) | ||
}, this) | ||
} | ||
} | ||
Headers.prototype.append = function(name, value) { | ||
name = normalizeName(name) | ||
value = normalizeValue(value) | ||
var oldValue = this.map[name] | ||
this.map[name] = oldValue ? oldValue+','+value : value | ||
} | ||
Headers.prototype['delete'] = function(name) { | ||
delete this.map[normalizeName(name)] | ||
} | ||
Headers.prototype.get = function(name) { | ||
name = normalizeName(name) | ||
return this.has(name) ? this.map[name] : null | ||
} | ||
Headers.prototype.has = function(name) { | ||
return this.map.hasOwnProperty(normalizeName(name)) | ||
} | ||
Headers.prototype.set = function(name, value) { | ||
this.map[normalizeName(name)] = normalizeValue(value) | ||
} | ||
Headers.prototype.forEach = function(callback, thisArg) { | ||
for (var name in this.map) { | ||
if (this.map.hasOwnProperty(name)) { | ||
callback.call(thisArg, this.map[name], name, this) | ||
} | ||
} | ||
} | ||
Headers.prototype.keys = function() { | ||
var items = [] | ||
this.forEach(function(value, name) { items.push(name) }) | ||
return iteratorFor(items) | ||
} | ||
Headers.prototype.values = function() { | ||
var items = [] | ||
this.forEach(function(value) { items.push(value) }) | ||
return iteratorFor(items) | ||
} | ||
Headers.prototype.entries = function() { | ||
var items = [] | ||
this.forEach(function(value, name) { items.push([name, value]) }) | ||
return iteratorFor(items) | ||
} | ||
if (support.iterable) { | ||
Headers.prototype[Symbol.iterator] = Headers.prototype.entries | ||
} | ||
function consumed(body) { | ||
if (body.bodyUsed) { | ||
return Promise.reject(new TypeError('Already read')) | ||
} | ||
body.bodyUsed = true | ||
} | ||
function fileReaderReady(reader) { | ||
return new Promise(function(resolve, reject) { | ||
reader.onload = function() { | ||
resolve(reader.result) | ||
} | ||
reader.onerror = function() { | ||
reject(reader.error) | ||
} | ||
}) | ||
} | ||
function readBlobAsArrayBuffer(blob) { | ||
var reader = new FileReader() | ||
var promise = fileReaderReady(reader) | ||
reader.readAsArrayBuffer(blob) | ||
return promise | ||
} | ||
function readBlobAsText(blob) { | ||
var reader = new FileReader() | ||
var promise = fileReaderReady(reader) | ||
reader.readAsText(blob) | ||
return promise | ||
} | ||
function readArrayBufferAsText(buf) { | ||
var view = new Uint8Array(buf) | ||
var chars = new Array(view.length) | ||
for (var i = 0; i < view.length; i++) { | ||
chars[i] = String.fromCharCode(view[i]) | ||
} | ||
return chars.join('') | ||
} | ||
function bufferClone(buf) { | ||
if (buf.slice) { | ||
return buf.slice(0) | ||
} else { | ||
var view = new Uint8Array(buf.byteLength) | ||
view.set(new Uint8Array(buf)) | ||
return view.buffer | ||
} | ||
} | ||
function Body() { | ||
this.bodyUsed = false | ||
this._initBody = function(body) { | ||
this._bodyInit = body | ||
if (!body) { | ||
this._bodyText = '' | ||
} else if (typeof body === 'string') { | ||
this._bodyText = body | ||
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) { | ||
this._bodyBlob = body | ||
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) { | ||
this._bodyFormData = body | ||
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { | ||
this._bodyText = body.toString() | ||
} else if (support.arrayBuffer && support.blob && isDataView(body)) { | ||
this._bodyArrayBuffer = bufferClone(body.buffer) | ||
// IE 10-11 can't handle a DataView body. | ||
this._bodyInit = new Blob([this._bodyArrayBuffer]) | ||
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { | ||
this._bodyArrayBuffer = bufferClone(body) | ||
} else { | ||
throw new Error('unsupported BodyInit type') | ||
} | ||
if (!this.headers.get('content-type')) { | ||
if (typeof body === 'string') { | ||
this.headers.set('content-type', 'text/plain;charset=UTF-8') | ||
} else if (this._bodyBlob && this._bodyBlob.type) { | ||
this.headers.set('content-type', this._bodyBlob.type) | ||
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { | ||
this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8') | ||
} | ||
} | ||
} | ||
if (support.blob) { | ||
this.blob = function() { | ||
var rejected = consumed(this) | ||
if (rejected) { | ||
return rejected | ||
} | ||
if (this._bodyBlob) { | ||
return Promise.resolve(this._bodyBlob) | ||
} else if (this._bodyArrayBuffer) { | ||
return Promise.resolve(new Blob([this._bodyArrayBuffer])) | ||
} else if (this._bodyFormData) { | ||
throw new Error('could not read FormData body as blob') | ||
} else { | ||
return Promise.resolve(new Blob([this._bodyText])) | ||
} | ||
} | ||
this.arrayBuffer = function() { | ||
if (this._bodyArrayBuffer) { | ||
return consumed(this) || Promise.resolve(this._bodyArrayBuffer) | ||
} else { | ||
return this.blob().then(readBlobAsArrayBuffer) | ||
} | ||
} | ||
} | ||
this.text = function() { | ||
var rejected = consumed(this) | ||
if (rejected) { | ||
return rejected | ||
} | ||
if (this._bodyBlob) { | ||
return readBlobAsText(this._bodyBlob) | ||
} else if (this._bodyArrayBuffer) { | ||
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)) | ||
} else if (this._bodyFormData) { | ||
throw new Error('could not read FormData body as text') | ||
} else { | ||
return Promise.resolve(this._bodyText) | ||
} | ||
} | ||
if (support.formData) { | ||
this.formData = function() { | ||
return this.text().then(decode) | ||
} | ||
} | ||
this.json = function() { | ||
return this.text().then(JSON.parse) | ||
} | ||
return this | ||
} | ||
// HTTP methods whose capitalization should be normalized | ||
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'] | ||
function normalizeMethod(method) { | ||
var upcased = method.toUpperCase() | ||
return (methods.indexOf(upcased) > -1) ? upcased : method | ||
} | ||
function Request(input, options) { | ||
options = options || {} | ||
var body = options.body | ||
if (input instanceof Request) { | ||
if (input.bodyUsed) { | ||
throw new TypeError('Already read') | ||
} | ||
this.url = input.url | ||
this.credentials = input.credentials | ||
if (!options.headers) { | ||
this.headers = new Headers(input.headers) | ||
} | ||
this.method = input.method | ||
this.mode = input.mode | ||
if (!body && input._bodyInit != null) { | ||
body = input._bodyInit | ||
input.bodyUsed = true | ||
} | ||
} else { | ||
this.url = String(input) | ||
} | ||
this.credentials = options.credentials || this.credentials || 'omit' | ||
if (options.headers || !this.headers) { | ||
this.headers = new Headers(options.headers) | ||
} | ||
this.method = normalizeMethod(options.method || this.method || 'GET') | ||
this.mode = options.mode || this.mode || null | ||
this.referrer = null | ||
if ((this.method === 'GET' || this.method === 'HEAD') && body) { | ||
throw new TypeError('Body not allowed for GET or HEAD requests') | ||
} | ||
this._initBody(body) | ||
} | ||
Request.prototype.clone = function() { | ||
return new Request(this, { body: this._bodyInit }) | ||
} | ||
function decode(body) { | ||
var form = new FormData() | ||
body.trim().split('&').forEach(function(bytes) { | ||
if (bytes) { | ||
var split = bytes.split('=') | ||
var name = split.shift().replace(/\+/g, ' ') | ||
var value = split.join('=').replace(/\+/g, ' ') | ||
form.append(decodeURIComponent(name), decodeURIComponent(value)) | ||
} | ||
}) | ||
return form | ||
} | ||
function parseHeaders(rawHeaders) { | ||
var headers = new Headers() | ||
rawHeaders.split(/\r?\n/).forEach(function(line) { | ||
var parts = line.split(':') | ||
var key = parts.shift().trim() | ||
if (key) { | ||
var value = parts.join(':').trim() | ||
headers.append(key, value) | ||
} | ||
}) | ||
return headers | ||
} | ||
Body.call(Request.prototype) | ||
function Response(bodyInit, options) { | ||
if (!options) { | ||
options = {} | ||
} | ||
this.type = 'default' | ||
this.status = 'status' in options ? options.status : 200 | ||
this.ok = this.status >= 200 && this.status < 300 | ||
this.statusText = 'statusText' in options ? options.statusText : 'OK' | ||
this.headers = new Headers(options.headers) | ||
this.url = options.url || '' | ||
this._initBody(bodyInit) | ||
} | ||
Body.call(Response.prototype) | ||
Response.prototype.clone = function() { | ||
return new Response(this._bodyInit, { | ||
status: this.status, | ||
statusText: this.statusText, | ||
headers: new Headers(this.headers), | ||
url: this.url | ||
}) | ||
} | ||
Response.error = function() { | ||
var response = new Response(null, {status: 0, statusText: ''}) | ||
response.type = 'error' | ||
return response | ||
} | ||
var redirectStatuses = [301, 302, 303, 307, 308] | ||
Response.redirect = function(url, status) { | ||
if (redirectStatuses.indexOf(status) === -1) { | ||
throw new RangeError('Invalid status code') | ||
} | ||
return new Response(null, {status: status, headers: {location: url}}) | ||
} | ||
self.Headers = Headers | ||
self.Request = Request | ||
self.Response = Response | ||
self.fetch = function(input, init) { | ||
return new Promise(function(resolve, reject) { | ||
var request = new Request(input, init) | ||
var xhr = new XMLHttpRequest() | ||
xhr.onload = function() { | ||
var options = { | ||
status: xhr.status, | ||
statusText: xhr.statusText, | ||
headers: parseHeaders(xhr.getAllResponseHeaders() || '') | ||
} | ||
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL') | ||
var body = 'response' in xhr ? xhr.response : xhr.responseText | ||
resolve(new Response(body, options)) | ||
} | ||
xhr.onerror = function() { | ||
reject(new TypeError('Network request failed')) | ||
} | ||
xhr.ontimeout = function() { | ||
reject(new TypeError('Network request failed')) | ||
} | ||
xhr.open(request.method, request.url, true) | ||
if (request.credentials === 'include') { | ||
xhr.withCredentials = true | ||
} | ||
if ('responseType' in xhr && support.blob) { | ||
xhr.responseType = 'blob' | ||
} | ||
request.headers.forEach(function(value, name) { | ||
xhr.setRequestHeader(name, value) | ||
}) | ||
xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit) | ||
}) | ||
} | ||
self.fetch.polyfill = true | ||
})(typeof self !== 'undefined' ? self : this); | ||
/***/ }), | ||
/* 6 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = __webpack_require__(0); | ||
@@ -824,0 +145,0 @@ |
# Changelog | ||
## `0.2.0` | ||
Now the pixel is a real pixel. | ||
And it only works within the same domain. | ||
## `0.1.1` | ||
@@ -4,0 +9,0 @@ |
@@ -1,5 +0,4 @@ | ||
{"/Users/pauramonrevilla/Sites/factorial-pixel/src/index.js": {"path":"/Users/pauramonrevilla/Sites/factorial-pixel/src/index.js","statementMap":{"0":{"start":{"line":1,"column":13},"end":{"line":1,"column":37}},"1":{"start":{"line":2,"column":16},"end":{"line":2,"column":37}},"2":{"start":{"line":2,"column":55},"end":{"line":2,"column":88}},"3":{"start":{"line":3,"column":19},"end":{"line":3,"column":43}},"4":{"start":{"line":3,"column":64},"end":{"line":3,"column":100}},"5":{"start":{"line":3,"column":139},"end":{"line":3,"column":193}},"6":{"start":{"line":5,"column":0},"end":{"line":16,"column":3}},"7":{"start":{"line":6,"column":12},"end":{"line":6,"column":45}},"8":{"start":{"line":8,"column":2},"end":{"line":15,"column":5}},"9":{"start":{"line":10,"column":4},"end":{"line":10,"column":27}},"10":{"start":{"line":12,"column":4},"end":{"line":12,"column":37}},"11":{"start":{"line":14,"column":4},"end":{"line":14,"column":22}}},"fnMap":{"0":{"name":"_interopRequireDefault","decl":{"start":{"line":3,"column":110},"end":{"line":3,"column":132}},"loc":{"start":{"line":3,"column":138},"end":{"line":3,"column":194}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":5,"column":46},"end":{"line":5,"column":47}},"loc":{"start":{"line":5,"column":58},"end":{"line":16,"column":1}},"line":5},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":7},"end":{"line":9,"column":8}},"loc":{"start":{"line":9,"column":27},"end":{"line":11,"column":3}},"line":9},"3":{"name":"(anonymous_3)","decl":{"start":{"line":11,"column":10},"end":{"line":11,"column":11}},"loc":{"start":{"line":11,"column":26},"end":{"line":13,"column":3}},"line":11},"4":{"name":"(anonymous_4)","decl":{"start":{"line":13,"column":11},"end":{"line":13,"column":12}},"loc":{"start":{"line":13,"column":25},"end":{"line":15,"column":3}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":146},"end":{"line":3,"column":192}},"type":"cond-expr","locations":[{"start":{"line":3,"column":170},"end":{"line":3,"column":173}},{"start":{"line":3,"column":176},"end":{"line":3,"column":192}}],"line":3},"1":{"loc":{"start":{"line":3,"column":146},"end":{"line":3,"column":167}},"type":"binary-expr","locations":[{"start":{"line":3,"column":146},"end":{"line":3,"column":149}},{"start":{"line":3,"column":153},"end":{"line":3,"column":167}}],"line":3}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0},"b":{"0":[0,0],"1":[0,0]}} | ||
{"/Users/pauramonrevilla/Sites/factorial-pixel/src/index.js": {"path":"/Users/pauramonrevilla/Sites/factorial-pixel/src/index.js","statementMap":{"0":{"start":{"line":1,"column":29},"end":{"line":1,"column":50}},"1":{"start":{"line":1,"column":68},"end":{"line":1,"column":101}},"2":{"start":{"line":1,"column":140},"end":{"line":1,"column":194}},"3":{"start":{"line":3,"column":10},"end":{"line":3,"column":39}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":44}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":31}}},"fnMap":{"0":{"name":"_interopRequireDefault","decl":{"start":{"line":1,"column":111},"end":{"line":1,"column":133}},"loc":{"start":{"line":1,"column":139},"end":{"line":1,"column":195}},"line":1}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":147},"end":{"line":1,"column":193}},"type":"cond-expr","locations":[{"start":{"line":1,"column":171},"end":{"line":1,"column":174}},{"start":{"line":1,"column":177},"end":{"line":1,"column":193}}],"line":1},"1":{"loc":{"start":{"line":1,"column":147},"end":{"line":1,"column":168}},"type":"binary-expr","locations":[{"start":{"line":1,"column":147},"end":{"line":1,"column":150}},{"start":{"line":1,"column":154},"end":{"line":1,"column":168}}],"line":1}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"f":{"0":0},"b":{"0":[0,0],"1":[0,0]}} | ||
,"/Users/pauramonrevilla/Sites/factorial-pixel/src/pixelUrl.js": {"path":"/Users/pauramonrevilla/Sites/factorial-pixel/src/pixelUrl.js","statementMap":{"0":{"start":{"line":4,"column":36},"end":{"line":4,"column":63}},"1":{"start":{"line":5,"column":13},"end":{"line":5,"column":52}},"2":{"start":{"line":6,"column":21},"end":{"line":11,"column":13}},"3":{"start":{"line":13,"column":2},"end":{"line":13,"column":67}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":15},"end":{"line":3,"column":16}},"loc":{"start":{"line":3,"column":29},"end":{"line":14,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":10},"end":{"line":7,"column":25}},"type":"cond-expr","locations":[{"start":{"line":7,"column":15},"end":{"line":7,"column":20}},{"start":{"line":7,"column":23},"end":{"line":7,"column":25}}],"line":7}},"s":{"0":2,"1":2,"2":2,"3":2},"f":{"0":2},"b":{"0":[1,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"353fe97c97e88670dfa3b1eb36bf57f29228bf65"} | ||
,"/Users/pauramonrevilla/Sites/factorial-pixel/src/requestParameters.js": {"path":"/Users/pauramonrevilla/Sites/factorial-pixel/src/requestParameters.js","statementMap":{"0":{"start":{"line":2,"column":18},"end":{"line":2,"column":54}},"1":{"start":{"line":3,"column":17},"end":{"line":3,"column":66}},"2":{"start":{"line":5,"column":2},"end":{"line":8,"column":3}}},"fnMap":{"0":{"name":"requestParameters","decl":{"start":{"line":1,"column":24},"end":{"line":1,"column":41}},"loc":{"start":{"line":1,"column":53},"end":{"line":9,"column":1}},"line":1}},"branchMap":{},"s":{"0":3,"1":3,"2":3},"f":{"0":3},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"de5372e174041251d52be76bd23fcc1c64eb8569"} | ||
,"/Users/pauramonrevilla/Sites/factorial-pixel/src/storeCookie.js": {"path":"/Users/pauramonrevilla/Sites/factorial-pixel/src/storeCookie.js","statementMap":{"0":{"start":{"line":1,"column":13},"end":{"line":1,"column":75}},"1":{"start":{"line":1,"column":91},"end":{"line":1,"column":111}},"2":{"start":{"line":1,"column":129},"end":{"line":1,"column":162}},"3":{"start":{"line":1,"column":201},"end":{"line":1,"column":255}},"4":{"start":{"line":1,"column":256},"end":{"line":7,"column":2}},"5":{"start":{"line":4,"column":2},"end":{"line":6,"column":5}},"6":{"start":{"line":5,"column":4},"end":{"line":5,"column":43}}},"fnMap":{"0":{"name":"_interopRequireDefault","decl":{"start":{"line":1,"column":172},"end":{"line":1,"column":194}},"loc":{"start":{"line":1,"column":200},"end":{"line":1,"column":256}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":3,"column":0},"end":{"line":3,"column":1}},"loc":{"start":{"line":3,"column":16},"end":{"line":7,"column":1}},"line":3},"2":{"name":"(anonymous_2)","decl":{"start":{"line":4,"column":28},"end":{"line":4,"column":29}},"loc":{"start":{"line":4,"column":43},"end":{"line":6,"column":3}},"line":4}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":208},"end":{"line":1,"column":254}},"type":"cond-expr","locations":[{"start":{"line":1,"column":232},"end":{"line":1,"column":235}},{"start":{"line":1,"column":238},"end":{"line":1,"column":254}}],"line":1},"1":{"loc":{"start":{"line":1,"column":208},"end":{"line":1,"column":229}},"type":"binary-expr","locations":[{"start":{"line":1,"column":208},"end":{"line":1,"column":211}},{"start":{"line":1,"column":215},"end":{"line":1,"column":229}}],"line":1}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0],"1":[0,0]}} | ||
} |
{ | ||
"name": "factorial-pixel", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Factorial marketing pixel", | ||
@@ -28,6 +28,2 @@ "repository": { | ||
}, | ||
"dependencies": { | ||
"js-cookie": "2.1.4", | ||
"whatwg-fetch": "^2.0.3" | ||
}, | ||
"devDependencies": { | ||
@@ -34,0 +30,0 @@ "babel-cli": "^6.24.1", |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
0
234352
641
- Removedjs-cookie@2.1.4
- Removedwhatwg-fetch@^2.0.3
- Removedjs-cookie@2.1.4(transitive)
- Removedwhatwg-fetch@2.0.4(transitive)