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

@types/babelify

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/babelify - npm Package Compare versions

Comparing version 7.3.6 to 7.3.7

4

babelify/index.d.ts

@@ -28,3 +28,3 @@ // Type definitions for babelify v7.3.0

*/
extensions?: string | string[];
extensions?: string | string[] | undefined;

@@ -34,3 +34,3 @@ /** if true, a 'sourceFileName' property with a value equal to the current file being transformed is included with the options passed to babel.transform()

*/
sourceMapsAbsolute?: boolean;
sourceMapsAbsolute?: boolean | undefined;
}

@@ -37,0 +37,0 @@

{
"name": "@types/babelify",
"version": "7.3.6",
"version": "7.3.7",
"description": "TypeScript definitions for babelify",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babelify",
"license": "MIT",

@@ -19,5 +20,7 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/babelify"
},

@@ -29,4 +32,4 @@ "scripts": {},

},
"typesPublisherContentHash": "50cf332e9f2d6d3c650c0aef098cdb1f654a25598861123cf5e99249f23bd962",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "363879257e78f219be14ca3c4e2d266c57314524b8a7535113aa3374f6c3c73f",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,59 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babelify
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babelify.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/babelify/index.d.ts)
````ts
// Type definitions for babelify v7.3.0
// Project: https://github.com/babel/babelify
// Definitions by: TeamworkGuy2 <https://github.com/TeamworkGuy2>
// Marvin Hagemeister <https://github.com/marvinhagemeister>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
Additional Details
* Last updated: Tue, 12 Jun 2018 03:36:26 GMT
* Dependencies: stream, babel-core, node
/// <reference types="node" />
/** Browserify transform for Babel
*/
import stream = require("stream");
import babel = require("babel-core");
declare function Babelify(filename: string, opts?: Babelify.BabelifyOptions): Babelify.BabelifyObject;
declare namespace Babelify {
export interface BabelifyConstructor {
(filename: string, opts: Babelify.BabelifyOptions): Babelify.BabelifyObject;
}
/** In addition to the various purposes documented here, all of the babelify options are passed to babel which passes them on to babel.transform() when each file is transformed */
export interface BabelifyOptions extends babel.TransformOptions {
/** These are passed to babel.util.canCompile() for each filename
* default: null
*/
extensions?: string | string[] | undefined;
/** if true, a 'sourceFileName' property with a value equal to the current file being transformed is included with the options passed to babel.transform()
* default: false
*/
sourceMapsAbsolute?: boolean | undefined;
}
export class BabelifyObject extends stream.Transform {
_transform(buf: string | Buffer, encoding: string, callback: () => void): void;
_flush(callback: () => void): void;
}
export function configure(opts: Babelify.BabelifyOptions): (filename: string) => Babelify.BabelifyObject;
}
export = Babelify;
````
### Additional Details
* Last updated: Wed, 07 Jul 2021 21:44:46 GMT
* Dependencies: [@types/babel-core](https://npmjs.com/package/@types/babel-core), [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by TeamworkGuy2 <https://github.com/TeamworkGuy2>, Marvin Hagemeister <https://github.com/marvinhagemeister>.
These definitions were written by [TeamworkGuy2](https://github.com/TeamworkGuy2), and [Marvin Hagemeister](https://github.com/marvinhagemeister).

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