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

tree-sitter-c

Package Overview
Dependencies
Maintainers
0
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree-sitter-c - npm Package Compare versions

Comparing version 0.23.1 to 0.23.2

tree-sitter.json

6

bindings/node/binding_test.js

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

/// <reference types="node" />
const assert = require("node:assert");
const { test } = require("node:test");
const Parser = require("tree-sitter");
test("can load grammar", () => {
const parser = new (require("tree-sitter"))();
const parser = new Parser();
assert.doesNotThrow(() => parser.setLanguage(require(".")));
});
const root = require("path").join(__dirname, "..", "..");
module.exports = require("node-gyp-build")(root);
module.exports =
typeof process.versions.bun === "string"
// Support `bun build --compile` by being statically analyzable enough to find the .node file at build-time
? require(`../../prebuilds/${process.platform}-${process.arch}/tree-sitter-c.node`)
: require("node-gyp-build")(root);

@@ -5,0 +9,0 @@ try {

{
"name": "tree-sitter-c",
"version": "0.23.1",
"version": "0.23.2",
"description": "C grammar for tree-sitter",
"repository": "github:tree-sitter/tree-sitter-c",
"repository": "https://github.com/tree-sitter/tree-sitter-c",
"license": "MIT",
"author": "Max Brunsfeld <maxbrunsfeld@gmail.com>",
"author": {
"name": "Max Brunsfeld",
"email": "maxbrunsfeld@gmail.com"
},
"maintainers": [
"Amaan Qureshi <amaanq12@gmail.com>"
{
"name": "Amaan Qureshi",
"email": "amaanq12@gmail.com"
}
],

@@ -21,2 +27,3 @@ "main": "bindings/node",

"grammar.js",
"tree-sitter.json",
"binding.gyp",

@@ -30,13 +37,13 @@ "prebuilds/**",

"dependencies": {
"node-addon-api": "^8.1.0",
"node-addon-api": "^8.2.2",
"node-gyp-build": "^4.8.2"
},
"devDependencies": {
"eslint": "^9.11.0",
"eslint": "^9.14.0",
"eslint-config-treesitter": "^1.0.2",
"prebuildify": "^6.0.1",
"tree-sitter-cli": "^0.23.0"
"tree-sitter-cli": "^0.24.4"
},
"peerDependencies": {
"tree-sitter": "^0.21.0"
"tree-sitter": "^0.21.1"
},

@@ -54,15 +61,3 @@ "peerDependenciesMeta": {

"test": "node --test bindings/node/*_test.js"
},
"tree-sitter": [
{
"scope": "source.c",
"file-types": [
"c",
"h"
],
"injection-regex": "^(c|h)$",
"highlights": "queries/highlights.scm",
"tags": "queries/tags.scm"
}
]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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