Socket
Socket
Sign inDemoInstall

@babel/helper-split-export-declaration

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-split-export-declaration - npm Package Compare versions

Comparing version 7.21.4-esm.4 to 7.22.5

10

lib/index.js

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

import * as _t from "@babel/types";
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = splitExportDeclaration;
var _t = require("@babel/types");
const {

@@ -10,3 +16,3 @@ cloneNode,

} = _t;
export default function splitExportDeclaration(exportDeclaration) {
function splitExportDeclaration(exportDeclaration) {
if (!exportDeclaration.isExportDeclaration() || exportDeclaration.isExportAllDeclaration()) {

@@ -13,0 +19,0 @@ throw new Error("Only default and named export declarations can be split.");

6

package.json
{
"name": "@babel/helper-split-export-declaration",
"version": "7.21.4-esm.4",
"version": "7.22.5",
"description": "",

@@ -17,3 +17,3 @@ "repository": {

"dependencies": {
"@babel/types": "7.21.4-esm.4"
"@babel/types": "^7.22.5"
},

@@ -24,3 +24,3 @@ "engines": {

"author": "The Babel Team (https://babel.dev/team)",
"type": "module"
"type": "commonjs"
}

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