serialize-to-js
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -7,8 +7,12 @@ /* | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
@@ -15,0 +19,0 @@ |
'use strict'; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } | ||
@@ -5,0 +5,0 @@ var UNSAFE_CHARS_REGEXP = /[<>\u2028\u2029/\\\r\n\t"]/g; |
{ | ||
"name": "serialize-to-js", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "serialize objects to javascript", | ||
@@ -20,2 +20,3 @@ "keywords": [ | ||
"author": "commenthol <commenthol@gmail.com>", | ||
"maintainers": "commenthol <commenthol@gmail.com>", | ||
"main": "lib", | ||
@@ -27,9 +28,13 @@ "module": "src", | ||
}, | ||
"files": [ | ||
"src", | ||
"lib" | ||
], | ||
"scripts": { | ||
"all": "npm run clean && npm run lint && npm run build && npm test", | ||
"build": "babel -d lib src", | ||
"ci": "npm run clean && npm run lint && npm run build && npm test", | ||
"clean": "rimraf lib doc coverage .nyc_output *.tgz", | ||
"coverage": "nyc -r text -r html npm test", | ||
"lint": "eslint src test", | ||
"prepublishOnly": "npm run all", | ||
"prepublishOnly": "npm run ci", | ||
"readme": "markedpp --githubid -i README.md -o README.md", | ||
@@ -47,32 +52,32 @@ "test": "mocha" | ||
}, | ||
"extends": "standard", | ||
"plugins": [ | ||
"standard" | ||
], | ||
"extends": "standard", | ||
"rules": { | ||
"key-spacing": 0 | ||
"key-spacing": 0, | ||
"no-console": 1 | ||
} | ||
}, | ||
"mocha": { | ||
"check-leaks": true | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.3", | ||
"@babel/core": "^7.8.3", | ||
"@babel/preset-env": "^7.8.3", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.20.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"mocha": "^7.0.1", | ||
"nyc": "^15.0.0", | ||
"rimraf": "^3.0.0" | ||
"@babel/cli": "^7.17.6", | ||
"@babel/core": "^7.17.8", | ||
"@babel/preset-env": "^7.16.11", | ||
"eslint": "^7.32.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^4.3.1", | ||
"eslint-plugin-standard": "^4.1.0", | ||
"mocha": "^9.2.2", | ||
"nyc": "^15.1.0", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"maintainers": "commenthol <commenthol@gmail.com>", | ||
"mocha": { | ||
"check-leaks": true | ||
} | ||
} |
@@ -6,4 +6,5 @@ # serialize-to-js | ||
[![NPM version](https://badge.fury.io/js/serialize-to-js.svg)](https://www.npmjs.com/package/serialize-to-js/) | ||
[![Build Status](https://secure.travis-ci.org/commenthol/serialize-to-js.svg?branch=master)](https://travis-ci.org/commenthol/serialize-to-js) | ||
[![Build Status](https://github.com/commenthol/serialize-to-js/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/commenthol/serialize-to-js/actions/workflows/ci.yml?query=branch%3Amaster) | ||
Serialize objects into a string while checking circular structures and respecting references. | ||
@@ -10,0 +11,0 @@ |
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
25690
616
112