@balena/odata-parser
Advanced tools
Comparing version 3.0.8 to 3.1.0-build-top-skip-binds-f160a140209cc5c9d3abc617cf8de7a37a0abf16-1
@@ -7,4 +7,9 @@ # Change Log | ||
# v3.1.0 | ||
## (2024-10-03) | ||
* Use bind vars for $top and $skip options [Pagan Gazzard] | ||
# v3.0.8 | ||
## (2024-06-03) | ||
## (2024-06-04) | ||
@@ -11,0 +16,0 @@ * Fix type checking of the declaration file [Pagan Gazzard] |
{ | ||
"name": "@balena/odata-parser", | ||
"version": "3.0.8", | ||
"version": "3.1.0-build-top-skip-binds-f160a140209cc5c9d3abc617cf8de7a37a0abf16-1", | ||
"description": "An OData parser written in OMeta", | ||
@@ -42,4 +42,4 @@ "main": "odata-parser.js", | ||
"versionist": { | ||
"publishedAt": "2024-06-03T15:30:15.468Z" | ||
"publishedAt": "2024-10-03T19:30:42.294Z" | ||
} | ||
} |
@@ -5,10 +5,17 @@ import * as assert from 'assert'; | ||
describe('Paging', function () { | ||
test('$top=5&$skip=100', function (result) { | ||
it('top should be specified', () => { | ||
assert.equal(result.options.$top, 5); | ||
}); | ||
it('skip should be specified', () => { | ||
assert.equal(result.options.$skip, 100); | ||
}); | ||
}); | ||
test( | ||
'$top=5&$skip=100', | ||
[ | ||
['Integer', 5], | ||
['Integer', 100], | ||
], | ||
function (result) { | ||
it('top should be specified', () => { | ||
assert.deepEqual(result.options.$top, { bind: 0 }); | ||
}); | ||
it('skip should be specified', () => { | ||
assert.deepEqual(result.options.$skip, { bind: 1 }); | ||
}); | ||
}, | ||
); | ||
@@ -15,0 +22,0 @@ test('$inlinecount=allpages', (result) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
249648
6506
2