Socket
Socket
Sign inDemoInstall

babel-plugin-transform-strict-mode

Package Overview
Dependencies
4
Maintainers
6
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.22.0 to 7.0.0-alpha.1

12

lib/index.js

@@ -5,6 +5,2 @@ "use strict";

var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
exports.default = function () {

@@ -19,3 +15,3 @@ return {

for (var _iterator = node.directives, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
for (var _iterator = node.directives, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref;

@@ -47,6 +43,2 @@

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = exports["default"];
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

7

package.json
{
"name": "babel-plugin-transform-strict-mode",
"version": "6.22.0",
"version": "7.0.0-alpha.1",
"description": "This plugin places a 'use strict'; directive at the top of all files to enable strict mode",

@@ -12,8 +12,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-strict-mode",

"dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0"
"babel-types": "7.0.0-alpha.1"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0"
"babel-helper-plugin-test-runner": "7.0.0-alpha.1"
}
}

@@ -37,9 +37,13 @@ # babel-plugin-transform-strict-mode

```js
// without options
Without options:
```json
{
"plugins": ["transform-strict-mode"]
}
```
// with options
With options:
```json
{

@@ -46,0 +50,0 @@ "plugins": [

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