Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-string-x

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-string-x - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

.eslintrc.json

21

index.js

@@ -42,3 +42,3 @@ /**

*
* @version 1.0.5
* @version 1.1.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -50,13 +50,16 @@ * @copyright Xotic750

/*jslint maxlen:80, es6:true, white:true */
/* jslint maxlen:80, es6:true, white:true */
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true,
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true,
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true,
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1,
maxstatements:3, maxcomplexity:2 */
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true,
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true,
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true,
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1,
maxstatements:3, maxcomplexity:2 */
/*global module */
/* eslint strict: 1, max-statements: 1 */
;(function () {
/* global module */
;(function () { // eslint-disable-line no-extra-semi
'use strict';

@@ -63,0 +66,0 @@

@@ -43,3 +43,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

*
* @version 1.0.5
* @version 1.1.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -51,13 +51,16 @@ * @copyright Xotic750

/*jslint maxlen:80, es6:true, white:true */
/* jslint maxlen:80, es6:true, white:true */
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true,
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true,
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true,
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1,
maxstatements:3, maxcomplexity:2 */
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true,
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true,
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true,
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:1,
maxstatements:3, maxcomplexity:2 */
/*global module */
/* eslint strict: 1, max-statements: 1 */
;(function () {
/* global module */
;(function () { // eslint-disable-line no-extra-semi
'use strict';

@@ -64,0 +67,0 @@

{
"name": "to-string-x",
"version": "1.0.5",
"version": "1.1.0",
"description": "ToString module.",

@@ -33,4 +33,8 @@ "homepage": "https://github.com/Xotic750/to-string-x",

"devDependencies": {
"@ljharb/eslint-config": "^11.0.0",
"es5-shim": "^4.5.4",
"es6-shim": "^0.34.4",
"es7-shim": "^6.0.0",
"eslint": "^3.15.0",
"eslint-plugin-import": "^2.2.0",
"json3": "^3.3.2",

@@ -49,2 +53,3 @@ "jscs": "^2.9.0",

"style": "jscs index.js",
"eslint": "eslint *.js tests/spec/*.js",
"docs": "jsdoc2md --name-format --example-lang js index.js > README.md",

@@ -54,2 +59,2 @@ "build": "browserify -p browserify-derequire -e index.js -o lib/to-string-x.js -u 'crypto' -s returnExports",

}
}
}
<a name="module_to-string-x"></a>
## to-string-x

@@ -42,3 +43,3 @@ <a href="https://travis-ci.org/Xotic750/to-string-x"

**Version**: 1.0.5
**Version**: 1.1.0
**Author:** Xotic750 <Xotic750@gmail.com>

@@ -48,2 +49,3 @@ **License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)

<a name="exp_module_to-string-x--module.exports"></a>
### `module.exports(value)` ⇒ <code>string</code> ⏏

@@ -50,0 +52,0 @@ The abstract operation ToString converts argument to a value of type

@@ -1,16 +0,19 @@

/*jslint maxlen:80, es6:true, white:true */
/* jslint maxlen:80, es6:true, white:true */
/*jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true,
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true,
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true,
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:2,
maxstatements:12, maxcomplexity:4 */
/* jshint bitwise:true, camelcase:true, curly:true, eqeqeq:true, forin:true,
freeze:true, futurehostile:true, latedef:true, newcap:true, nocomma:true,
nonbsp:true, singleGroups:true, strict:true, undef:true, unused:true,
es3:false, esnext:true, plusplus:true, maxparams:1, maxdepth:2,
maxstatements:12, maxcomplexity:4 */
/*global JSON:true, expect, module, require, describe, xit, it, returnExports */
/* eslint strict: 1, max-lines: 1, symbol-description: 1, max-nested-callbacks: 1,
max-statements: 1 */
(function () {
/* global JSON:true, expect, module, require, describe, xit, it, returnExports */
(function () { // eslint-disable-line no-extra-semi
'use strict';
var hasSymbol = typeof Symbol === 'function' &&
typeof Symbol() === 'symbol',
var hasSymbol = typeof Symbol === 'function' && typeof Symbol() === 'symbol',
ifSymbolIt = hasSymbol ? it : xit,

@@ -26,2 +29,9 @@ $toString;

require('es6-shim');
var es7 = require('es7-shim');
Object.keys(es7).forEach(function (key) {
var obj = es7[key];
if (typeof obj.shim === 'function') {
obj.shim();
}
});
$toString = require('../../index.js');

@@ -34,6 +44,5 @@ } else {

it('should return a string for everything', function () {
function fn() {}
var values = [true, 'abc', 1, null, undefined, fn, [], /r/],
expected = values.map(String),
actual = values.map($toString);
var values = [true, 'abc', 1, null, undefined, function () {}, [], /r/],
expected = values.map(String),
actual = values.map($toString);
expect(actual).toEqual(expected);

@@ -40,0 +49,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc