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

has-symbol-support-x

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-symbol-support-x - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

20

index.js

@@ -27,3 +27,21 @@ /**

* type.
* @version 1.0.1
*
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2>
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5
* methods that can be faithfully emulated with a legacy JavaScript engine.
*
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible.
* For these methods, as closely as possible to ES5 is not very close.
* Many of these shams are intended only to allow code to be written to ES5
* without causing run-time errors in older engines. In many cases,
* this means that these shams cause many ES5 methods to silently fail.
* Decide carefully whether this is what you want. Note: es5-sham.js requires
* es5-shim.js to be able to work properly.
*
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully.
*
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines
* behave as closely as possible to ECMAScript 6 (Harmony).
*
* @version 1.0.2
* @author Xotic750 <Xotic750@gmail.com>

@@ -30,0 +48,0 @@ * @copyright Xotic750

@@ -28,3 +28,21 @@ (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(require,module,exports){

* type.
* @version 1.0.1
*
* <h2>ECMAScript compatibility shims for legacy JavaScript engines</h2>
* `es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5
* methods that can be faithfully emulated with a legacy JavaScript engine.
*
* `es5-sham.js` monkey-patches other ES5 methods as closely as possible.
* For these methods, as closely as possible to ES5 is not very close.
* Many of these shams are intended only to allow code to be written to ES5
* without causing run-time errors in older engines. In many cases,
* this means that these shams cause many ES5 methods to silently fail.
* Decide carefully whether this is what you want. Note: es5-sham.js requires
* es5-shim.js to be able to work properly.
*
* `json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully.
*
* `es6.shim.js` provides compatibility shims so that legacy JavaScript engines
* behave as closely as possible to ECMAScript 6 (Harmony).
*
* @version 1.0.2
* @author Xotic750 <Xotic750@gmail.com>

@@ -31,0 +49,0 @@ * @copyright Xotic750

11

package.json
{
"name": "has-symbol-support-x",
"version": "1.0.1",
"version": "1.0.2",
"description": "hasSymbolSupport module. Tests if Symbol is supported.",

@@ -12,2 +12,3 @@ "homepage": "https://github.com/Xotic750/has-symbol-support-x",

"keywords": [
"ES6",
"hasSymbolSupport",

@@ -33,8 +34,10 @@ "module",

"devDependencies": {
"es5-shim": "^4.3.1",
"jscs": "^2.5.1",
"es5-shim": "^4.4.1",
"es6-shim": "^0.34.0",
"json3": "^3.3.2",
"jscs": "^2.7.0",
"uglify-js": "^2.6.1",
"browserify": "12.0.1",
"jasmine-node": "^1.14.5",
"jsdoc-to-markdown": "^1.2.1"
"jsdoc-to-markdown": "^1.3.1"
},

@@ -41,0 +44,0 @@ "scripts": {

@@ -28,3 +28,20 @@ <a name="module_has-symbol-support-x"></a>

**Version**: 1.0.1
<h2>ECMAScript compatibility shims for legacy JavaScript engines</h2>
`es5-shim.js` monkey-patches a JavaScript context to contain all EcmaScript 5
methods that can be faithfully emulated with a legacy JavaScript engine.
`es5-sham.js` monkey-patches other ES5 methods as closely as possible.
For these methods, as closely as possible to ES5 is not very close.
Many of these shams are intended only to allow code to be written to ES5
without causing run-time errors in older engines. In many cases,
this means that these shams cause many ES5 methods to silently fail.
Decide carefully whether this is what you want. Note: es5-sham.js requires
es5-shim.js to be able to work properly.
`json3.js` monkey-patches the EcmaScript 5 JSON implimentation faithfully.
`es6.shim.js` provides compatibility shims so that legacy JavaScript engines
behave as closely as possible to ECMAScript 6 (Harmony).
**Version**: 1.0.2
**Author:** Xotic750 <Xotic750@gmail.com>

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

@@ -9,3 +9,3 @@ /*jslint maxlen:80, es6:true, white:true */

/*global expect, module, require, describe, it, returnExports */
/*global JSON:true, expect, module, require, describe, it, returnExports */

@@ -18,2 +18,8 @@ (function () {

require('es5-shim');
require('es5-shim/es5-sham');
if (typeof JSON === 'undefined') {
JSON = {};
}
require('json3').runInContext(null, JSON);
require('es6-shim');
hasSymbolSupport = require('../../index.js');

@@ -20,0 +26,0 @@ } else {

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