Skip to content

Commit

Permalink
argh
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Aridor committed Aug 10, 2015
1 parent e48a14d commit 6ab3fef
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 141 deletions.
268 changes: 134 additions & 134 deletions dist/planout.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ return /******/ (function(modules) { // webpackBootstrap
}, {
key: 'shouldLogExposure',
value: function shouldLogExposure() {
return this._autoExposureLog && !this._exposureLogged;
return this._autoExposureLog && !this.previouslyLogged();
}
}, {
key: 'logEvent',
Expand Down Expand Up @@ -499,13 +499,13 @@ return /******/ (function(modules) { // webpackBootstrap

var _base = __webpack_require__(9);

var _sha1 = __webpack_require__(11);
var _sha1 = __webpack_require__(10);

var _sha12 = _interopRequireDefault(_sha1);

var _libUtils = __webpack_require__(7);

var _bignumberJs = __webpack_require__(10);
var _bignumberJs = __webpack_require__(11);

var _bignumberJs2 = _interopRequireDefault(_bignumberJs);

Expand Down Expand Up @@ -1836,7 +1836,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (!this._experiment) {
return;
}
if (this._experiment.shouldLogExposure()) {
if (!this._experiment.previouslyLogged()) {
this._experiment.logExposure(extras);
}
}
Expand Down Expand Up @@ -2589,6 +2589,95 @@ return /******/ (function(modules) { // webpackBootstrap

/***/ },
/* 10 */
/***/ function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {(function() {
var crypt = __webpack_require__(13),
utf8 = __webpack_require__(14).utf8,
bin = __webpack_require__(14).bin,

// The core
sha1 = function (message) {
// Convert to byte array
if (message.constructor == String)
message = utf8.stringToBytes(message);
else if (typeof Buffer !== 'undefined' && typeof Buffer.isBuffer == 'function' && Buffer.isBuffer(message))
message = Array.prototype.slice.call(message, 0);
else if (!Array.isArray(message))
message = message.toString();

// otherwise assume byte array

var m = crypt.bytesToWords(message),
l = message.length * 8,
w = [],
H0 = 1732584193,
H1 = -271733879,
H2 = -1732584194,
H3 = 271733878,
H4 = -1009589776;

// Padding
m[l >> 5] |= 0x80 << (24 - l % 32);
m[((l + 64 >>> 9) << 4) + 15] = l;

for (var i = 0; i < m.length; i += 16) {
var a = H0,
b = H1,
c = H2,
d = H3,
e = H4;

for (var j = 0; j < 80; j++) {

if (j < 16)
w[j] = m[i + j];
else {
var n = w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16];
w[j] = (n << 1) | (n >>> 31);
}

var t = ((H0 << 5) | (H0 >>> 27)) + H4 + (w[j] >>> 0) + (
j < 20 ? (H1 & H2 | ~H1 & H3) + 1518500249 :
j < 40 ? (H1 ^ H2 ^ H3) + 1859775393 :
j < 60 ? (H1 & H2 | H1 & H3 | H2 & H3) - 1894007588 :
(H1 ^ H2 ^ H3) - 899497514);

H4 = H3;
H3 = H2;
H2 = (H1 << 30) | (H1 >>> 2);
H1 = H0;
H0 = t;
}

H0 += a;
H1 += b;
H2 += c;
H3 += d;
H4 += e;
}

return [H0, H1, H2, H3, H4];
},

// Public API
api = function (message, options) {
var digestbytes = crypt.wordsToBytes(sha1(message));
return options && options.asBytes ? digestbytes :
options && options.asString ? bin.bytesToString(digestbytes) :
crypt.bytesToHex(digestbytes);
};

api._blocksize = 16;
api._digestsize = 20;

module.exports = api;
})();

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(12).Buffer))

/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {

var __WEBPACK_AMD_DEFINE_RESULT__;/*! bignumber.js v2.0.7 https://github.com/MikeMcl/bignumber.js/LICENCE */
Expand Down Expand Up @@ -5276,95 +5365,6 @@ return /******/ (function(modules) { // webpackBootstrap
})(this);


/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(Buffer) {(function() {
var crypt = __webpack_require__(13),
utf8 = __webpack_require__(14).utf8,
bin = __webpack_require__(14).bin,

// The core
sha1 = function (message) {
// Convert to byte array
if (message.constructor == String)
message = utf8.stringToBytes(message);
else if (typeof Buffer !== 'undefined' && typeof Buffer.isBuffer == 'function' && Buffer.isBuffer(message))
message = Array.prototype.slice.call(message, 0);
else if (!Array.isArray(message))
message = message.toString();

// otherwise assume byte array

var m = crypt.bytesToWords(message),
l = message.length * 8,
w = [],
H0 = 1732584193,
H1 = -271733879,
H2 = -1732584194,
H3 = 271733878,
H4 = -1009589776;

// Padding
m[l >> 5] |= 0x80 << (24 - l % 32);
m[((l + 64 >>> 9) << 4) + 15] = l;

for (var i = 0; i < m.length; i += 16) {
var a = H0,
b = H1,
c = H2,
d = H3,
e = H4;

for (var j = 0; j < 80; j++) {

if (j < 16)
w[j] = m[i + j];
else {
var n = w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16];
w[j] = (n << 1) | (n >>> 31);
}

var t = ((H0 << 5) | (H0 >>> 27)) + H4 + (w[j] >>> 0) + (
j < 20 ? (H1 & H2 | ~H1 & H3) + 1518500249 :
j < 40 ? (H1 ^ H2 ^ H3) + 1859775393 :
j < 60 ? (H1 & H2 | H1 & H3 | H2 & H3) - 1894007588 :
(H1 ^ H2 ^ H3) - 899497514);

H4 = H3;
H3 = H2;
H2 = (H1 << 30) | (H1 >>> 2);
H1 = H0;
H0 = t;
}

H0 += a;
H1 += b;
H2 += c;
H3 += d;
H4 += e;
}

return [H0, H1, H2, H3, H4];
},

// Public API
api = function (message, options) {
var digestbytes = crypt.wordsToBytes(sha1(message));
return options && options.asBytes ? digestbytes :
options && options.asString ? bin.bytesToString(digestbytes) :
crypt.bytesToHex(digestbytes);
};

api._blocksize = 16;
api._digestsize = 20;

module.exports = api;
})();

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(12).Buffer))

/***/ },
/* 12 */
/***/ function(module, exports, __webpack_require__) {
Expand All @@ -5377,8 +5377,8 @@ return /******/ (function(modules) { // webpackBootstrap
*/

var base64 = __webpack_require__(17)
var ieee754 = __webpack_require__(16)
var isArray = __webpack_require__(15)
var ieee754 = __webpack_require__(15)
var isArray = __webpack_require__(16)

exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
Expand Down Expand Up @@ -6931,45 +6931,6 @@ return /******/ (function(modules) { // webpackBootstrap
/* 15 */
/***/ function(module, exports, __webpack_require__) {


/**
* isArray
*/

var isArray = Array.isArray;

/**
* toString
*/

var str = Object.prototype.toString;

/**
* Whether or not the given `val`
* is an array.
*
* example:
*
* isArray([]);
* // > true
* isArray(arguments);
* // > false
* isArray('');
* // > false
*
* @param {mixed} val
* @return {bool}
*/

module.exports = isArray || function (val) {
return !! val && '[object Array]' == str.call(val);
};


/***/ },
/* 16 */
/***/ function(module, exports, __webpack_require__) {

exports.read = function (buffer, offset, isLE, mLen, nBytes) {
var e, m,
eLen = nBytes * 8 - mLen - 1,
Expand Down Expand Up @@ -7056,6 +7017,45 @@ return /******/ (function(modules) { // webpackBootstrap
}


/***/ },
/* 16 */
/***/ function(module, exports, __webpack_require__) {


/**
* isArray
*/

var isArray = Array.isArray;

/**
* toString
*/

var str = Object.prototype.toString;

/**
* Whether or not the given `val`
* is an array.
*
* example:
*
* isArray([]);
* // > true
* isArray(arguments);
* // > false
* isArray('');
* // > false
*
* @param {mixed} val
* @return {bool}
*/

module.exports = isArray || function (val) {
return !! val && '[object Array]' == str.call(val);
};


/***/ },
/* 17 */
/***/ function(module, exports, __webpack_require__) {
Expand Down
2 changes: 1 addition & 1 deletion dist/planout.map.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/planout.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion es6/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Experiment {
}

shouldLogExposure() {
return this._autoExposureLog && !this._exposureLogged;
return this._autoExposureLog && !this.previouslyLogged();
}

logEvent(eventType, extras) {
Expand Down
2 changes: 1 addition & 1 deletion es6/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class SimpleNamespace extends Namespace {
if (!this._experiment) {
return;
}
if (this._experiment.shouldLogExposure()) {
if (!this._experiment.previouslyLogged()) {
this._experiment.logExposure(extras);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "planout",
"version": "1.0.7",
"version": "1.0.8",
"dependencies": {
"sha1": "1.1.0",
"bignumber.js": "2.0.7"
Expand Down

0 comments on commit 6ab3fef

Please sign in to comment.