Comparing version 2.0.2 to 2.0.3
(function (global, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define(['exports', 'module', './data'], factory); | ||
define(['exports', 'module', './data', './cookies'], factory); | ||
} else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { | ||
factory(exports, module, require('./data')); | ||
factory(exports, module, require('./data'), require('./cookies')); | ||
} else { | ||
@@ -10,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod.exports, mod, global.data); | ||
factory(mod.exports, mod, global.data, global.cookies); | ||
global.index = mod.exports; | ||
} | ||
})(this, function (exports, module, _data) { | ||
})(this, function (exports, module, _data, _cookies) { | ||
'use strict'; | ||
@@ -19,4 +19,8 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
var _cookies2 = _interopRequireDefault(_cookies); | ||
var FORM_ELEMENTS = ['year', 'month', 'day', 'country', 'remember']; | ||
@@ -174,3 +178,3 @@ | ||
cookies.setItem('old_enough', true, expiry, path, domain); | ||
_cookies2['default'].setItem('old_enough', true, expiry, path, domain); | ||
} | ||
@@ -177,0 +181,0 @@ |
{ | ||
"name": "agegate", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Limit access to your app with an age gate", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
42155
742