tree-sitter-c
Advanced tools
Comparing version 0.23.1 to 0.23.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8985979
25
15736
2
Updatednode-addon-api@^8.2.2