Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "statehood", | ||
"description": "HTTP State Management Utilities", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"repository": "git://github.com/hapijs/statehood", | ||
@@ -19,10 +19,10 @@ "main": "lib/index.js", | ||
"cryptiles": "3.x.x", | ||
"hoek": "3.x.x", | ||
"hoek": "4.x.x", | ||
"iron": "4.x.x", | ||
"items": "2.x.x", | ||
"joi": "7.x.x" | ||
"joi": "8.x.x" | ||
}, | ||
"devDependencies": { | ||
"code": "2.x.x", | ||
"lab": "8.x.x" | ||
"code": "3.x.x", | ||
"lab": "10.x.x" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
@@ -45,3 +45,3 @@ 'use strict'; | ||
definitions.add('test'); | ||
expect(definitions.cookies.test).to.deep.equal({ | ||
expect(definitions.cookies.test).to.equal({ | ||
strictHeader: true, | ||
@@ -63,3 +63,3 @@ ignoreErrors: false, | ||
definitions.add('test'); | ||
expect(definitions.names).to.deep.equal(['test']); | ||
expect(definitions.names).to.equal(['test']); | ||
done(); | ||
@@ -91,3 +91,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: 'b' }); | ||
expect(states).to.equal({ a: 'b' }); | ||
done(); | ||
@@ -104,3 +104,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '"1', b: '2', c: '3', 'd[1]': '4', '': '1' }); | ||
expect(states).to.equal({ a: '"1', b: '2', c: '3', 'd[1]': '4', '': '1' }); | ||
done(); | ||
@@ -117,3 +117,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '' }); | ||
expect(states).to.equal({ a: '' }); | ||
done(); | ||
@@ -130,3 +130,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '' }); | ||
expect(states).to.equal({ a: '' }); | ||
done(); | ||
@@ -143,3 +143,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '' }); | ||
expect(states).to.equal({ a: '' }); | ||
done(); | ||
@@ -156,3 +156,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '23' }); | ||
expect(states).to.equal({ a: '23' }); | ||
done(); | ||
@@ -169,3 +169,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: ['1', '2'] }); | ||
expect(states).to.equal({ a: ['1', '2'] }); | ||
done(); | ||
@@ -182,3 +182,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '1', b: '2', c: '3' }); | ||
expect(states).to.equal({ a: '1', b: '2', c: '3' }); | ||
done(); | ||
@@ -195,3 +195,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '1', b: '2', c: '3' }); | ||
expect(states).to.equal({ a: '1', b: '2', c: '3' }); | ||
done(); | ||
@@ -208,3 +208,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ A: 'b', b: 'c' }); | ||
expect(states).to.equal({ A: 'b', b: 'c' }); | ||
done(); | ||
@@ -221,3 +221,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: 'b=123456789&c=something' }); | ||
expect(states).to.equal({ a: 'b=123456789&c=something' }); | ||
done(); | ||
@@ -234,3 +234,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '%1', b: 'x' }); | ||
expect(states).to.equal({ a: '%1', b: 'x' }); | ||
done(); | ||
@@ -247,3 +247,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ z: '%20%22%2c%3b%2f' }); | ||
expect(states).to.equal({ z: '%20%22%2c%3b%2f' }); | ||
done(); | ||
@@ -261,3 +261,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: { b: '%p123456789' } }); | ||
expect(states).to.equal({ a: { b: '%p123456789' } }); | ||
done(); | ||
@@ -275,3 +275,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: { b: '123456789', c: 'something else' } }); | ||
expect(states).to.equal({ a: { b: '123456789', c: 'something else' } }); | ||
done(); | ||
@@ -289,3 +289,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: ['test', 'test'] }); | ||
expect(states).to.equal({ a: ['test', 'test'] }); | ||
done(); | ||
@@ -303,3 +303,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: ['test', 'test', 'test'] }); | ||
expect(states).to.equal({ a: ['test', 'test', 'test'] }); | ||
done(); | ||
@@ -317,3 +317,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ key: 'test' }); | ||
expect(states).to.equal({ key: 'test' }); | ||
done(); | ||
@@ -331,3 +331,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ key: 'test' }); | ||
expect(states).to.equal({ key: 'test' }); | ||
done(); | ||
@@ -345,3 +345,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ key: 'dGVzdA' }); | ||
expect(states).to.equal({ key: 'dGVzdA' }); | ||
done(); | ||
@@ -359,3 +359,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ key: { testing: 'json' } }); | ||
expect(states).to.equal({ key: { testing: 'json' } }); | ||
done(); | ||
@@ -373,3 +373,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ key: { a: 1, b: 2, c: 3 } }); | ||
expect(states).to.equal({ key: { a: 1, b: 2, c: 3 } }); | ||
done(); | ||
@@ -387,3 +387,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ key: { a: 1, b: 2, c: 3 } }); | ||
expect(states).to.equal({ key: { a: 1, b: 2, c: 3 } }); | ||
done(); | ||
@@ -402,3 +402,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ sid: { a: '1', b: '2', c: '3 x' } }); | ||
expect(states).to.equal({ sid: { a: '1', b: '2', c: '3 x' } }); | ||
done(); | ||
@@ -416,3 +416,4 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ sid: { a: '1', b: '2', c: '3 x' } }); | ||
expect(states.sid).to.equal({ a: '1', b: '2', c: '3 x' }); | ||
expect(states).to.equal({ sid: { a: '1', b: '2', c: '3 x' } }); | ||
done(); | ||
@@ -430,3 +431,3 @@ }); | ||
expect(failed).to.have.length(0); | ||
expect(states).to.deep.equal({ a: '"1' }); | ||
expect(states).to.equal({ a: '"1' }); | ||
done(); | ||
@@ -442,3 +443,3 @@ }); | ||
expect(err).to.exist(); | ||
expect(err.data).to.deep.equal([ | ||
expect(err.data).to.equal([ | ||
{ | ||
@@ -461,3 +462,3 @@ name: 'a', | ||
expect(failed).to.deep.equal(err.data); | ||
expect(failed).to.equal(err.data); | ||
@@ -474,3 +475,3 @@ done(); | ||
expect(err).to.not.exist(); | ||
expect(failed).to.deep.equal([ | ||
expect(failed).to.equal([ | ||
{ | ||
@@ -513,3 +514,3 @@ name: 'a', | ||
expect(err).to.exist(); | ||
expect(err.data).to.deep.equal([ | ||
expect(err.data).to.equal([ | ||
{ | ||
@@ -541,3 +542,3 @@ name: 'a@', | ||
expect(err).to.exist(); | ||
expect(err.data).to.deep.equal([ | ||
expect(err.data).to.equal([ | ||
{ | ||
@@ -607,3 +608,3 @@ name: 'a@', | ||
expect(err.message).to.equal('Invalid cookie value'); | ||
expect(err.data).to.deep.equal([ | ||
expect(err.data).to.equal([ | ||
{ | ||
@@ -622,3 +623,3 @@ name: 'x', | ||
}, | ||
reason: 'Unexpected token ]' | ||
reason: err.data[0].reason | ||
} | ||
@@ -792,3 +793,3 @@ ]); | ||
expect(err).to.not.exist(); | ||
expect(header).to.deep.equal([]); | ||
expect(header).to.equal([]); | ||
done(); | ||
@@ -804,3 +805,3 @@ }); | ||
expect(err).to.not.exist(); | ||
expect(header).to.deep.equal([]); | ||
expect(header).to.equal([]); | ||
done(); | ||
@@ -807,0 +808,0 @@ }); |
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
1353
66670
+ Addedjoi@8.4.2(transitive)
- Removedhoek@3.0.4(transitive)
- Removedjoi@7.3.0(transitive)
Updatedhoek@4.x.x
Updatedjoi@8.x.x