@brillout/json-serializer 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ function stringify(value, { forbidReactElements, space, valueName = 'value', sor
48
48
  const name = valName ? ' `' + valName + '`' : '';
49
49
  const location = path.length === 0 ? '' : ` ${name ? 'at ' : ''}\`${valueName}[${path.map((p) => `'${p}'`).join('][')}]\``;
50
50
  const fallback = name === '' && location === '' ? ` ${valueName}` : '';
51
- return `Cannot serialize${name}${location}${fallback} because it is a ${valueType} (https://github.com/brillout/json-serializer)`;
51
+ return `@brillout/json-serializer (https://github.com/brillout/json-serializer) cannot serialize${name}${location}${fallback} because it's a ${valueType}.`;
52
52
  }
53
53
  }
54
54
  exports.stringify = stringify;
@@ -46,6 +46,6 @@ function stringify(value, { forbidReactElements, space, valueName = 'value', sor
46
46
  const name = valName ? ' `' + valName + '`' : '';
47
47
  const location = path.length === 0 ? '' : ` ${name ? 'at ' : ''}\`${valueName}[${path.map((p) => `'${p}'`).join('][')}]\``;
48
48
  const fallback = name === '' && location === '' ? ` ${valueName}` : '';
49
- return `Cannot serialize${name}${location}${fallback} because it is a ${valueType} (https://github.com/brillout/json-serializer)`;
49
+ return `@brillout/json-serializer (https://github.com/brillout/json-serializer) cannot serialize${name}${location}${fallback} because it's a ${valueType}.`;
50
50
  }
51
51
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@brillout/json-serializer",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "description": "Same as JSON but with added support for `Date`, `undefined`, `Map`, `Set`, and more.",
5
5
  "main": "./index.mjs",
6
+ "license": "MIT",
6
7
  "exports": {
7
8
  ".": "./index.mjs",
8
9
  "./parse": {