factorial-pixel
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -83,9 +83,22 @@ var factorialPixel = | ||
var img = document.createElement('img'); | ||
img.src = (0, _pixelUrl2.default)(document); | ||
img.width = 1; | ||
img.height = 1; | ||
img.style = 'display:none;'; | ||
document.body.appendChild(img); | ||
/** | ||
* `factorialPixelDomain` can be setup by the host this way | ||
* the cookie can be written in staging.factorialhr.com | ||
* for example | ||
*/ | ||
/* eslint-disable no-undef */ | ||
var domain = window.factorialPixelDomain || 'https://factorialhr.com'; | ||
/* eslint-enable no-undef */ | ||
var images = [domain, '']; | ||
images.forEach(function (imageDomain) { | ||
var img = document.createElement('img'); | ||
img.src = '' + imageDomain + (0, _pixelUrl2.default)(document); | ||
img.width = 1; | ||
img.height = 1; | ||
img.style = 'display:none;'; | ||
document.body.appendChild(img); | ||
}); | ||
/***/ }), | ||
@@ -92,0 +105,0 @@ /* 1 */ |
# Changelog | ||
## `0.7.0` | ||
Print 2 cookies pixels. One in country domain as always like for example `factorial.fr` and the other | ||
on `factorialhr.com` main domain. | ||
## `0.6.0` | ||
@@ -4,0 +9,0 @@ |
@@ -1,4 +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":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":14}},"6":{"start":{"line":6,"column":0},"end":{"line":6,"column":15}},"7":{"start":{"line":7,"column":0},"end":{"line":7,"column":28}},"8":{"start":{"line":8,"column":0},"end":{"line":8,"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,"6":0,"7":0,"8":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":40}}},"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":"f3634ac113def2fc019d970d00489dfacd781e22"} | ||
,"/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":65}},"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":"fc4c981859b0267c8aecf80a6a3d358c733c56de"} | ||
{"/Users/andres/code/factorial/factorial-pixel/src/index.js": {"path":"/Users/andres/code/factorial/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":10,"column":13},"end":{"line":10,"column":69}},"4":{"start":{"line":12,"column":13},"end":{"line":12,"column":25}},"5":{"start":{"line":14,"column":0},"end":{"line":21,"column":3}},"6":{"start":{"line":15,"column":12},"end":{"line":15,"column":41}},"7":{"start":{"line":16,"column":2},"end":{"line":16,"column":65}},"8":{"start":{"line":17,"column":2},"end":{"line":17,"column":16}},"9":{"start":{"line":18,"column":2},"end":{"line":18,"column":17}},"10":{"start":{"line":19,"column":2},"end":{"line":19,"column":30}},"11":{"start":{"line":20,"column":2},"end":{"line":20,"column":33}}},"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},"1":{"name":"(anonymous_1)","decl":{"start":{"line":14,"column":15},"end":{"line":14,"column":16}},"loc":{"start":{"line":14,"column":38},"end":{"line":21,"column":1}},"line":14}},"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},"2":{"loc":{"start":{"line":10,"column":13},"end":{"line":10,"column":69}},"type":"binary-expr","locations":[{"start":{"line":10,"column":13},"end":{"line":10,"column":40}},{"start":{"line":10,"column":44},"end":{"line":10,"column":69}}],"line":10}},"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},"b":{"0":[0,0],"1":[0,0],"2":[0,0]}} | ||
,"/Users/andres/code/factorial/factorial-pixel/src/pixelUrl.js": {"path":"/Users/andres/code/factorial/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":40}}},"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":"268a47cf0aca0f810bd61131a510bc0bab933aec"} | ||
,"/Users/andres/code/factorial/factorial-pixel/src/requestParameters.js": {"path":"/Users/andres/code/factorial/factorial-pixel/src/requestParameters.js","statementMap":{"0":{"start":{"line":2,"column":18},"end":{"line":2,"column":65}},"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":"b3e4c59d469cb96031209e311e1e120215a10b1c"} | ||
} |
{ | ||
"name": "factorial-pixel", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Factorial marketing pixel", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
660
222246
24
1