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

@types/falafel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/falafel - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

23

falafel/index.d.ts

@@ -1,9 +0,24 @@

// Type definitions for falafel 2.1
// Type definitions for falafel 2.2
// Project: https://github.com/substack/node-falafel
// Definitions by: Przemysław Struciński <https://github.com/delprzemo>
// leumasme <https://github.com/leumasme>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
declare function falafel(src: string, opts: ((...args: any[]) => void) | object, fn?: (...args: any[]) => void): string;
/// <reference types="node" />
interface OptionsObject {
parser: any;
[key: number]: any;
[key: string]: any;
}
interface FullOptionsObject extends OptionsObject {
src: string;
}
type WalkerFunction = (nodeOrChild: any, nodeOrNull: any) => void;
interface Result {
chunks: any[];
toString: () => string;
inspect: () => string;
}
declare function falafel(src: string | Buffer | FullOptionsObject, fn: WalkerFunction): Result;
declare function falafel(src: string | Buffer, opts: OptionsObject, fn: WalkerFunction): Result;
export = falafel;

18

falafel/package.json
{
"name": "@types/falafel",
"version": "2.1.0",
"version": "2.2.0",
"description": "TypeScript definitions for falafel",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel",
"license": "MIT",

@@ -11,6 +12,11 @@ "contributors": [

"githubUsername": "delprzemo"
},
{
"name": "leumasme",
"url": "https://github.com/leumasme",
"githubUsername": "leumasme"
}
],
"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -22,5 +28,7 @@ "type": "git",

"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "8e0d3845138cd880e63b5508a72e7da45448474eb927cc79de43da3cc131ccb2",
"typeScriptVersion": "2.8"
"dependencies": {
"@types/node": "*"
},
"typesPublisherContentHash": "d2765f6542c4d430361819f856361c81514397be1ae1e7cc7f673b28fd9aa576",
"typeScriptVersion": "3.6"
}

@@ -5,13 +5,41 @@ # Installation

# Summary
This package contains type definitions for falafel ( https://github.com/substack/node-falafel ).
This package contains type definitions for falafel (https://github.com/substack/node-falafel).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/falafel/index.d.ts)
````ts
// Type definitions for falafel 2.2
// Project: https://github.com/substack/node-falafel
// Definitions by: Przemysław Struciński <https://github.com/delprzemo>
// leumasme <https://github.com/leumasme>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="node" />
interface OptionsObject {
parser: any;
[key: number]: any;
[key: string]: any;
}
interface FullOptionsObject extends OptionsObject {
src: string;
}
type WalkerFunction = (nodeOrChild: any, nodeOrNull: any) => void;
interface Result {
chunks: any[];
toString: () => string;
inspect: () => string;
}
declare function falafel(src: string | Buffer | FullOptionsObject, fn: WalkerFunction): Result;
declare function falafel(src: string | Buffer, opts: OptionsObject, fn: WalkerFunction): Result;
export = falafel;
Additional Details
* Last updated: Tue, 12 Mar 2019 17:54:34 GMT
* Dependencies: none
````
### Additional Details
* Last updated: Thu, 29 Jul 2021 13:31:24 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Przemysław Struciński <https://github.com/delprzemo>.
These definitions were written by [Przemysław Struciński](https://github.com/delprzemo), and [leumasme](https://github.com/leumasme).

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