Skip to content

Commit

Permalink
0.32.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mohebifar committed Dec 26, 2024
1 parent 4851a9b commit b73a0df
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 29 deletions.
36 changes: 18 additions & 18 deletions crates/napi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.android-arm64.node')
} else {
nativeBinding = require('@ast-grep/napi-android-arm64')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-android-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -49,7 +49,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.android-arm-eabi.node')
} else {
nativeBinding = require('@ast-grep/napi-android-arm-eabi')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-android-arm-eabi')
}
} catch (e) {
loadError = e
Expand All @@ -69,7 +69,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.win32-x64-msvc.node')
} else {
nativeBinding = require('@ast-grep/napi-win32-x64-msvc')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-win32-x64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -83,7 +83,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.win32-ia32-msvc.node')
} else {
nativeBinding = require('@ast-grep/napi-win32-ia32-msvc')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-win32-ia32-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -97,7 +97,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.win32-arm64-msvc.node')
} else {
nativeBinding = require('@ast-grep/napi-win32-arm64-msvc')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-win32-arm64-msvc')
}
} catch (e) {
loadError = e
Expand All @@ -113,7 +113,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.darwin-universal.node')
} else {
nativeBinding = require('@ast-grep/napi-darwin-universal')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-darwin-universal')
}
break
} catch {}
Expand All @@ -124,7 +124,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.darwin-x64.node')
} else {
nativeBinding = require('@ast-grep/napi-darwin-x64')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-darwin-x64')
}
} catch (e) {
loadError = e
Expand All @@ -138,7 +138,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.darwin-arm64.node')
} else {
nativeBinding = require('@ast-grep/napi-darwin-arm64')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-darwin-arm64')
}
} catch (e) {
loadError = e
Expand All @@ -157,7 +157,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.freebsd-x64.node')
} else {
nativeBinding = require('@ast-grep/napi-freebsd-x64')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-freebsd-x64')
}
} catch (e) {
loadError = e
Expand All @@ -174,7 +174,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-x64-musl.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-x64-musl')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-x64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -187,7 +187,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-x64-gnu.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-x64-gnu')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-x64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -203,7 +203,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-arm64-musl.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-arm64-musl')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-arm64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -216,7 +216,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-arm64-gnu.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-arm64-gnu')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-arm64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -232,7 +232,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-arm-musleabihf.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-arm-musleabihf')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-arm-musleabihf')
}
} catch (e) {
loadError = e
Expand All @@ -245,7 +245,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-arm-gnueabihf.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-arm-gnueabihf')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-arm-gnueabihf')
}
} catch (e) {
loadError = e
Expand All @@ -261,7 +261,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-riscv64-musl.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-riscv64-musl')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-riscv64-musl')
}
} catch (e) {
loadError = e
Expand All @@ -274,7 +274,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-riscv64-gnu.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-riscv64-gnu')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-riscv64-gnu')
}
} catch (e) {
loadError = e
Expand All @@ -289,7 +289,7 @@ switch (platform) {
if (localFileExisted) {
nativeBinding = require('./ast-grep-napi.linux-s390x-gnu.node')
} else {
nativeBinding = require('@ast-grep/napi-linux-s390x-gnu')
nativeBinding = require('@codemod.com/ast-grep-napi-custom-languages-linux-s390x-gnu')
}
} catch (e) {
loadError = e
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-darwin-arm64",
"name": "@codemod.com/ast-grep-napi-darwin-arm64",
"version": "0.32.2",
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-darwin-x64",
"name": "@codemod.com/ast-grep-napi-darwin-x64",
"version": "0.32.2",
"os": [
"darwin"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-linux-arm64-gnu",
"name": "@codemod.com/ast-grep-napi-linux-arm64-gnu",
"version": "0.32.2",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-linux-arm64-musl",
"name": "@codemod.com/ast-grep-napi-linux-arm64-musl",
"version": "0.32.2",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-linux-x64-gnu",
"name": "@codemod.com/ast-grep-napi-linux-x64-gnu",
"version": "0.32.2",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-linux-x64-musl",
"name": "@codemod.com/ast-grep-napi-linux-x64-musl",
"version": "0.32.2",
"os": [
"linux"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-win32-arm64-msvc",
"name": "@codemod.com/ast-grep-napi-win32-arm64-msvc",
"version": "0.32.2",
"os": [
"win32"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-win32-ia32-msvc",
"name": "@codemod.com/ast-grep-napi-win32-ia32-msvc",
"version": "0.32.2",
"os": [
"win32"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ast-grep/napi-win32-x64-msvc",
"name": "@codemod.com/ast-grep-napi-win32-x64-msvc",
"version": "0.32.2",
"os": [
"win32"
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codemod.com/ast-grep-napi-custom-languages",
"version": "0.32.2",
"version": "0.32.3",
"description": "Search and Rewrite code at large scale using precise AST pattern",
"homepage": "https://ast-grep.github.io",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion crates/napi/scripts/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Lang } from "..";
import { Lang } from "../types/lang";

export const languageNodeTypesTagVersionOverrides: Partial<
Record<Lang, string>
Expand Down

0 comments on commit b73a0df

Please sign in to comment.