Socket
Socket
Sign inDemoInstall

has-to-string-tag-x

Package Overview
Dependencies
1
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

.editorconfig

17

.eslintrc.json
{
"root": true,
"extends": "@ljharb",
"plugins": [
"import"
],
"rules": {
"indent": ["error", 2, {
"SwitchCase": 1
}],
"global-require": 0,
"max-params": 0,
"block-scoped-var": 1
}
}
"extends": [
"@xotic750/eslint-config-standard-x"
]
}

@@ -31,3 +31,3 @@ /**

*
* @version 1.2.0
* @version 1.3.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -39,17 +39,10 @@ * @copyright Xotic750

/* eslint strict: 1 */
'use strict';
/* global module */
;(function () { // eslint-disable-line no-extra-semi
'use strict';
/**
* Indicates if `Symbol.toStringTag`exists and is the correct type.
* `true`, if it exists and is the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = require('has-symbol-support-x') && typeof Symbol.toStringTag === 'symbol';
}());
/**
* Indicates if `Symbol.toStringTag`exists and is the correct type.
* `true`, if it exists and is the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = require('has-symbol-support-x') && typeof Symbol.toStringTag === 'symbol';

@@ -32,3 +32,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.2.0
* @version 1.3.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -40,19 +40,12 @@ * @copyright Xotic750

/* eslint strict: 1 */
'use strict';
/* global module */
/**
* Indicates if `Symbol.toStringTag`exists and is the correct type.
* `true`, if it exists and is the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = _dereq_('has-symbol-support-x') && typeof Symbol.toStringTag === 'symbol';
;(function () { // eslint-disable-line no-extra-semi
'use strict';
/**
* Indicates if `Symbol.toStringTag`exists and is the correct type.
* `true`, if it exists and is the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = _dereq_('has-symbol-support-x') && typeof Symbol.toStringTag === 'symbol';
}());
},{"has-symbol-support-x":2}],2:[function(_dereq_,module,exports){

@@ -87,3 +80,3 @@ /**

*
* @version 1.2.0
* @version 1.3.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -95,20 +88,13 @@ * @copyright Xotic750

/* eslint strict: 1, symbol-description: 1 */
'use strict';
/* global module */
/**
* Indicates if `Symbol`exists and creates the correct type.
* `true`, if it exists and creates the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';
;(function () { // eslint-disable-line no-extra-semi
'use strict';
/**
* Indicates if `Symbol`exists and creates the correct type.
* `true`, if it exists and creates the correct type, otherwise `false`.
*
* @type boolean
*/
module.exports = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
}());
},{}]},{},[1])(1)
});

@@ -1,2 +0,1 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,o.returnExports=e()}}(function(){return function e(o,t,n){function s(f,i){if(!t[f]){if(!o[f]){var u="function"==typeof require&&require;if(!i&&u)return u(f,!0);if(r)return r(f,!0);var p=new Error("Cannot find module '"+f+"'");throw p.code="MODULE_NOT_FOUND",p}var l=t[f]={exports:{}};o[f][0].call(l.exports,function(e){var t=o[f][1][e];return s(t||e)},l,l.exports,e,o,t,n)}return t[f].exports}for(var r="function"==typeof require&&require,f=0;f<n.length;f++)s(n[f]);return s}({1:[function(e,o,t){!function(){"use strict";o.exports=e("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":2}],2:[function(e,o,t){!function(){"use strict";o.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}]},{},[1])(1)});
//# sourceMappingURL=lib/has-to-string-tag-x.map
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=e()}}(function(){return function e(o,t,n){function s(f,i){if(!t[f]){if(!o[f]){var u="function"==typeof require&&require;if(!i&&u)return u(f,!0);if(r)return r(f,!0);var p=new Error("Cannot find module '"+f+"'");throw p.code="MODULE_NOT_FOUND",p}var l=t[f]={exports:{}};o[f][0].call(l.exports,function(e){var t=o[f][1][e];return s(t||e)},l,l.exports,e,o,t,n)}return t[f].exports}for(var r="function"==typeof require&&require,f=0;f<n.length;f++)s(n[f]);return s}({1:[function(e,o,t){"use strict";o.exports=e("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag},{"has-symbol-support-x":2}],2:[function(e,o,t){"use strict";o.exports="function"==typeof Symbol&&"symbol"==typeof Symbol("")},{}]},{},[1])(1)});
{
"name": "has-to-string-tag-x",
"version": "1.2.0",
"version": "1.3.0",
"description": "Tests if ES6 @@toStringTag is supported.",

@@ -32,35 +32,51 @@ "homepage": "https://github.com/Xotic750/has-to-string-tag-x",

"dependencies": {
"has-symbol-support-x": "^1.2.0"
"has-symbol-support-x": "^1.3.0"
},
"devDependencies": {
"@ljharb/eslint-config": "^11.0.0",
"browserify": "^14.1.0",
"@xotic750/eslint-config-standard-x": "^1.4.0",
"browserify": "^14.4.0",
"browserify-derequire": "^0.9.4",
"cross-env": "^5.0.1",
"es5-shim": "^4.5.9",
"es6-shim": "^0.35.3",
"es7-shim": "^6.0.0",
"eslint": "^3.18.0",
"eslint-plugin-import": "^2.2.0",
"eslint": "^4.1.1",
"eslint-plugin-compat": "^1.0.4",
"eslint-plugin-css-modules": "^2.7.2",
"eslint-plugin-eslint-comments": "^1.0.2",
"eslint-plugin-jsdoc": "^3.1.1",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-no-use-extend-native": "^0.3.12",
"husky": "^0.13.4",
"jasmine-node": "^1.14.5",
"jsdoc-to-markdown": "^3.0.0",
"json3": "^3.3.2",
"make-jasmine-spec-runner-html": "^1.1.0",
"make-jasmine-spec-runner-html": "^1.2.0",
"nodemon": "^1.11.0",
"nsp": "^2.6.3",
"replace-x": "^1.1.1",
"uglify-js": "^2.8.18"
"parallelshell": "^3.0.1",
"replace-x": "^1.3.1",
"rimraf": "^2.6.1",
"serve": "^6.0.0",
"uglify-js": "^3.0.23"
},
"scripts": {
"build": "npm run build:setver && npm run security && npm run eslint && npm run browserify && npm run uglify && npm run docs && npm run build:jasmine && npm test",
"build:jasmine": "make-jasmine-spec-runner-html",
"clean": "rimraf README.md lib/*",
"clean:jasmine": "rimraf tests/index.html tests/run.js",
"clean:all": "npm run clean:jasmine && npm run clean",
"build": "npm run clean && npm run lint && npm run browserify && npm run uglify && npm run docs && npm test && npm run security",
"build:jasmine": "npm run clean:jasmine && make-jasmine-spec-runner-html",
"build:setver": "PKG_VER=$(node -p -e \"require('./package.json').version\") && replace-x \" @version .*\" \" @version ${PKG_VER}\" index.js",
"build:watch": "nodemon --watch index.js --watch package.json --exec 'npm run build'",
"production": "npm run clean:all && npm run build:jasmine && npm run build:setver && npm run build",
"start": "parallelshell \"serve\" \"nodemon --watch index.js --exec 'npm run build'\"",
"docs": "jsdoc2md --name-format --example-lang js index.js > README.md",
"eslint": "eslint *.js tests/spec/*.js",
"lint": "eslint *.js tests/spec/*.js",
"lint-fix": "eslint --fix *.js tests/spec/*.js",
"security": "nsp check",
"test": "jasmine-node --matchall tests/spec/",
"test:watch": "nodemon --watch tests/spec/test.js --exec 'npm test'",
"browserify": "browserify -p browserify-derequire -e index.js -o lib/has-to-string-tag-x.js -u 'crypto' -s returnExports",
"uglify": "uglifyjs lib/has-to-string-tag-x.js -o lib/has-to-string-tag-x.min.js --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map lib/has-to-string-tag-x.map"
"uglify": "uglifyjs lib/has-to-string-tag-x.js -o lib/has-to-string-tag-x.min.js --support-ie8 --compress --keep-fnames --mangle --beautify ascii_only=true,beautify=false --source-map filename=lib/has-to-string-tag-x.map",
"precommit": "npm run production",
"prepush": "npm run production"
}
}

@@ -31,3 +31,3 @@ <a name="module_has-to-string-tag-x"></a>

**See**: [26.3.1 @@toStringTag](http://www.ecma-international.org/ecma-262/6.0/#sec-@@tostringtag)
**Version**: 1.2.0
**Version**: 1.3.0
**Author**: Xotic750 <Xotic750@gmail.com>

@@ -34,0 +34,0 @@ **License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)

@@ -1,38 +0,22 @@

/* jslint maxlen:80, es6:true, white:true */
'use strict';
/* 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 */
/* eslint strict: 1, max-lines: 1, symbol-description: 1, max-nested-callbacks: 1,
max-statements: 1 */
/* global JSON:true, expect, module, require, describe, it, returnExports */
;(function () { // eslint-disable-line no-extra-semi
'use strict';
var hasToStringTag;
if (typeof module === 'object' && module.exports) {
require('es5-shim');
require('es5-shim/es5-sham');
if (typeof JSON === 'undefined') {
JSON = {};
}
require('json3').runInContext(null, JSON);
require('es6-shim');
hasToStringTag = require('../../index.js');
} else {
hasToStringTag = returnExports;
var hasToStringTag;
if (typeof module === 'object' && module.exports) {
require('es5-shim');
require('es5-shim/es5-sham');
if (typeof JSON === 'undefined') {
JSON = {};
}
require('json3').runInContext(null, JSON);
require('es6-shim');
hasToStringTag = require('../../index.js');
} else {
hasToStringTag = returnExports;
}
describe('Basic tests', function () {
it('results should match', function () {
var expected = typeof Symbol === 'function' && typeof Symbol() === 'symbol' && typeof Symbol.toStringTag === 'symbol';
expect(hasToStringTag).toEqual(expected);
});
describe('Basic tests', function () {
it('results should match', function () {
var expected = typeof Symbol === 'function' && typeof Symbol('') === 'symbol' && typeof Symbol.toStringTag === 'symbol';
expect(hasToStringTag).toEqual(expected);
});
}());
});

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc