fix(core): update

This commit is contained in:
Philipp Kunz 2022-10-26 10:52:14 +02:00
parent 606ff73f58
commit b2bb918ee4
4 changed files with 4329 additions and 13224 deletions

13223
package-lock.json generated

File diff suppressed because it is too large Load Diff

4321
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -50,6 +50,13 @@ tap.test('should work with base64', async() => {
console.log(base64Json);
const decodedObject = smartjson.parseBase64(base64Json);
expect(decodedObject).toEqual(someObject);
});
tap.test('stringify should handle plain string', async () => {
const stringifiedString = smartjson.stringify('hello');
console.log(stringifiedString);
expect(stringifiedString).toEqual('"hello"')
expect(smartjson.parse(stringifiedString)).toEqual('hello');
})
tap.start();

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartjson',
version: '5.0.2',
version: '5.0.3',
description: 'typed json handlers'
}