code-languages 1.12.3 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.cts CHANGED
@@ -746,6 +746,33 @@ declare const languageLoaders: {
746
746
  };
747
747
  };
748
748
  }>;
749
+ readonly hcl: () => Promise<Language | {
750
+ slug: string;
751
+ publishedDate: string;
752
+ extensions: string[];
753
+ author: string;
754
+ website: string;
755
+ paradigms: string[];
756
+ tooling: {
757
+ runtimes: string[];
758
+ packageManagers: string[];
759
+ ecosystems: string[];
760
+ };
761
+ version: string;
762
+ logo: string;
763
+ i18n: {
764
+ en: {
765
+ name: string;
766
+ description: string;
767
+ longDescription: string;
768
+ };
769
+ es: {
770
+ name: string;
771
+ description: string;
772
+ longDescription: string;
773
+ };
774
+ };
775
+ }>;
749
776
  readonly html: () => Promise<Language | {
750
777
  slug: string;
751
778
  publishedDate: string;
@@ -1427,6 +1454,33 @@ declare const languageLoaders: {
1427
1454
  };
1428
1455
  };
1429
1456
  }>;
1457
+ readonly razor: () => Promise<Language | {
1458
+ slug: string;
1459
+ publishedDate: string;
1460
+ extensions: string[];
1461
+ author: string;
1462
+ website: string;
1463
+ paradigms: string[];
1464
+ tooling: {
1465
+ runtimes: string[];
1466
+ packageManagers: string[];
1467
+ ecosystems: string[];
1468
+ };
1469
+ version: string;
1470
+ logo: string;
1471
+ i18n: {
1472
+ en: {
1473
+ name: string;
1474
+ description: string;
1475
+ longDescription: string;
1476
+ };
1477
+ es: {
1478
+ name: string;
1479
+ description: string;
1480
+ longDescription: string;
1481
+ };
1482
+ };
1483
+ }>;
1430
1484
  readonly ruby: () => Promise<Language | {
1431
1485
  slug: string;
1432
1486
  publishedDate: string;
@@ -1535,6 +1589,33 @@ declare const languageLoaders: {
1535
1589
  };
1536
1590
  };
1537
1591
  }>;
1592
+ readonly solidity: () => Promise<Language | {
1593
+ slug: string;
1594
+ publishedDate: string;
1595
+ extensions: string[];
1596
+ author: string;
1597
+ website: string;
1598
+ paradigms: string[];
1599
+ tooling: {
1600
+ runtimes: string[];
1601
+ packageManagers: string[];
1602
+ ecosystems: string[];
1603
+ };
1604
+ version: string;
1605
+ logo: string;
1606
+ i18n: {
1607
+ en: {
1608
+ name: string;
1609
+ description: string;
1610
+ longDescription: string;
1611
+ };
1612
+ es: {
1613
+ name: string;
1614
+ description: string;
1615
+ longDescription: string;
1616
+ };
1617
+ };
1618
+ }>;
1538
1619
  readonly sql: () => Promise<Language | {
1539
1620
  slug: string;
1540
1621
  publishedDate: string;
package/dist/api.d.ts CHANGED
@@ -746,6 +746,33 @@ declare const languageLoaders: {
746
746
  };
747
747
  };
748
748
  }>;
749
+ readonly hcl: () => Promise<Language | {
750
+ slug: string;
751
+ publishedDate: string;
752
+ extensions: string[];
753
+ author: string;
754
+ website: string;
755
+ paradigms: string[];
756
+ tooling: {
757
+ runtimes: string[];
758
+ packageManagers: string[];
759
+ ecosystems: string[];
760
+ };
761
+ version: string;
762
+ logo: string;
763
+ i18n: {
764
+ en: {
765
+ name: string;
766
+ description: string;
767
+ longDescription: string;
768
+ };
769
+ es: {
770
+ name: string;
771
+ description: string;
772
+ longDescription: string;
773
+ };
774
+ };
775
+ }>;
749
776
  readonly html: () => Promise<Language | {
750
777
  slug: string;
751
778
  publishedDate: string;
@@ -1427,6 +1454,33 @@ declare const languageLoaders: {
1427
1454
  };
1428
1455
  };
1429
1456
  }>;
1457
+ readonly razor: () => Promise<Language | {
1458
+ slug: string;
1459
+ publishedDate: string;
1460
+ extensions: string[];
1461
+ author: string;
1462
+ website: string;
1463
+ paradigms: string[];
1464
+ tooling: {
1465
+ runtimes: string[];
1466
+ packageManagers: string[];
1467
+ ecosystems: string[];
1468
+ };
1469
+ version: string;
1470
+ logo: string;
1471
+ i18n: {
1472
+ en: {
1473
+ name: string;
1474
+ description: string;
1475
+ longDescription: string;
1476
+ };
1477
+ es: {
1478
+ name: string;
1479
+ description: string;
1480
+ longDescription: string;
1481
+ };
1482
+ };
1483
+ }>;
1430
1484
  readonly ruby: () => Promise<Language | {
1431
1485
  slug: string;
1432
1486
  publishedDate: string;
@@ -1535,6 +1589,33 @@ declare const languageLoaders: {
1535
1589
  };
1536
1590
  };
1537
1591
  }>;
1592
+ readonly solidity: () => Promise<Language | {
1593
+ slug: string;
1594
+ publishedDate: string;
1595
+ extensions: string[];
1596
+ author: string;
1597
+ website: string;
1598
+ paradigms: string[];
1599
+ tooling: {
1600
+ runtimes: string[];
1601
+ packageManagers: string[];
1602
+ ecosystems: string[];
1603
+ };
1604
+ version: string;
1605
+ logo: string;
1606
+ i18n: {
1607
+ en: {
1608
+ name: string;
1609
+ description: string;
1610
+ longDescription: string;
1611
+ };
1612
+ es: {
1613
+ name: string;
1614
+ description: string;
1615
+ longDescription: string;
1616
+ };
1617
+ };
1618
+ }>;
1538
1619
  readonly sql: () => Promise<Language | {
1539
1620
  slug: string;
1540
1621
  publishedDate: string;
package/dist/api.js CHANGED
@@ -1060,6 +1060,44 @@ var init_groovy = __esm({
1060
1060
  }
1061
1061
  });
1062
1062
 
1063
+ // src/languages/hcl.ts
1064
+ var hcl_exports = {};
1065
+ __export(hcl_exports, {
1066
+ hcl: () => hcl
1067
+ });
1068
+ var hcl;
1069
+ var init_hcl = __esm({
1070
+ "src/languages/hcl.ts"() {
1071
+ hcl = {
1072
+ slug: "hcl",
1073
+ publishedDate: "2014-01-01",
1074
+ extensions: [".hcl", ".tf", ".tfvars", ".pkr.hcl", ".nomad"],
1075
+ author: "HashiCorp",
1076
+ website: "https://github.com/hashicorp/hcl",
1077
+ paradigms: ["declarative", "configuration", "data-serialization"],
1078
+ tooling: {
1079
+ runtimes: ["Terraform", "Packer", "Nomad", "Vault", "Consul"],
1080
+ packageManagers: ["Terraform Registry"],
1081
+ ecosystems: ["Infrastructure as Code", "DevOps", "Cloud", "HashiCorp"]
1082
+ },
1083
+ version: "2.24.0",
1084
+ logo: "https://cdn.simpleicons.org/hashicorp/844FBA",
1085
+ i18n: {
1086
+ en: {
1087
+ name: "HCL",
1088
+ description: "HashiCorp Configuration Language for human-readable infrastructure and application configuration.",
1089
+ longDescription: "HCL is HashiCorp Configuration Language, a structured configuration language designed to be readable by humans while remaining easy for tools to parse. It supports blocks, attributes, expressions, variables, functions, object values, and references used to describe infrastructure and application settings.\n\nIt is best known through Terraform, but it is also used across HashiCorp tools such as Packer, Nomad, Vault, and Consul. HCL files commonly define cloud resources, modules, providers, jobs, policies, templates, and environment-specific variables."
1090
+ },
1091
+ es: {
1092
+ name: "HCL",
1093
+ description: "El lenguaje de configuracion de HashiCorp para infraestructura y configuracion legible por humanos.",
1094
+ longDescription: "HCL es HashiCorp Configuration Language, un lenguaje de configuracion estructurado disenado para ser legible por humanos y facil de analizar por herramientas. Soporta bloques, atributos, expresiones, variables, funciones, valores de objeto y referencias usadas para describir infraestructura y configuracion de aplicaciones.\n\nEs conocido principalmente por Terraform, pero tambien se usa en herramientas de HashiCorp como Packer, Nomad, Vault y Consul. Los archivos HCL suelen definir recursos cloud, modulos, providers, jobs, politicas, templates y variables especificas por entorno."
1095
+ }
1096
+ }
1097
+ };
1098
+ }
1099
+ });
1100
+
1063
1101
  // src/languages/html.ts
1064
1102
  var html_exports = {};
1065
1103
  __export(html_exports, {
@@ -1630,7 +1668,7 @@ var init_nginx = __esm({
1630
1668
  runtimes: ["nginx", "NGINX Plus", "OpenResty"],
1631
1669
  ecosystems: ["Web Servers", "Reverse Proxies", "Load Balancing", "DevOps"]
1632
1670
  },
1633
- version: "1.30.0",
1671
+ version: "1.30.1",
1634
1672
  logo: "https://upload.wikimedia.org/wikipedia/commons/c/c5/Nginx_logo.svg",
1635
1673
  i18n: {
1636
1674
  en: {
@@ -1990,6 +2028,44 @@ var init_r = __esm({
1990
2028
  }
1991
2029
  });
1992
2030
 
2031
+ // src/languages/razor.ts
2032
+ var razor_exports = {};
2033
+ __export(razor_exports, {
2034
+ razor: () => razor
2035
+ });
2036
+ var razor;
2037
+ var init_razor = __esm({
2038
+ "src/languages/razor.ts"() {
2039
+ razor = {
2040
+ slug: "razor",
2041
+ publishedDate: "2010-07-01",
2042
+ extensions: [".cshtml", ".razor"],
2043
+ author: "Microsoft",
2044
+ website: "https://learn.microsoft.com/en-us/aspnet/core/mvc/views/razor",
2045
+ paradigms: ["templating", "component-based", "server-side", "declarative"],
2046
+ tooling: {
2047
+ runtimes: ["ASP.NET Core", ".NET", "Blazor"],
2048
+ packageManagers: ["NuGet"],
2049
+ ecosystems: [".NET", "ASP.NET Core", "Web", "Blazor"]
2050
+ },
2051
+ version: "10.0.8",
2052
+ logo: "https://cdn.simpleicons.org/dotnet/512BD4",
2053
+ i18n: {
2054
+ en: {
2055
+ name: "Razor",
2056
+ description: "Microsoft's markup syntax for ASP.NET Core views, Razor Pages, and Blazor components.",
2057
+ longDescription: "Razor is a markup syntax and templating language used by ASP.NET Core to combine HTML with C# expressions, directives, layouts, tag helpers, components, and server-side or interactive rendering logic.\n\nIt is used in MVC views, Razor Pages, Razor Class Libraries, and Blazor components. Razor files commonly define page templates, reusable UI components, forms, layouts, routing, component parameters, and bindings within .NET web applications."
2058
+ },
2059
+ es: {
2060
+ name: "Razor",
2061
+ description: "La sintaxis de marcado de Microsoft para vistas ASP.NET Core, Razor Pages y componentes Blazor.",
2062
+ longDescription: "Razor es una sintaxis de marcado y lenguaje de templates usado por ASP.NET Core para combinar HTML con expresiones C#, directivas, layouts, tag helpers, componentes y logica de renderizado server-side o interactiva.\n\nSe usa en vistas MVC, Razor Pages, Razor Class Libraries y componentes Blazor. Los archivos Razor suelen definir templates de paginas, componentes UI reutilizables, formularios, layouts, routing, parametros de componentes y bindings dentro de aplicaciones web .NET."
2063
+ }
2064
+ }
2065
+ };
2066
+ }
2067
+ });
2068
+
1993
2069
  // src/languages/ruby.ts
1994
2070
  var ruby_exports = {};
1995
2071
  __export(ruby_exports, {
@@ -2142,6 +2218,44 @@ var init_scss = __esm({
2142
2218
  }
2143
2219
  });
2144
2220
 
2221
+ // src/languages/solidity.ts
2222
+ var solidity_exports = {};
2223
+ __export(solidity_exports, {
2224
+ solidity: () => solidity
2225
+ });
2226
+ var solidity;
2227
+ var init_solidity = __esm({
2228
+ "src/languages/solidity.ts"() {
2229
+ solidity = {
2230
+ slug: "solidity",
2231
+ publishedDate: "2015-07-30",
2232
+ extensions: [".sol"],
2233
+ author: "Gavin Wood / Ethereum Foundation / Solidity Team",
2234
+ website: "https://soliditylang.org",
2235
+ paradigms: ["contract-oriented", "object-oriented", "statically-typed", "imperative"],
2236
+ tooling: {
2237
+ runtimes: ["Ethereum Virtual Machine", "EVM-compatible chains"],
2238
+ packageManagers: ["npm", "Foundry", "Hardhat"],
2239
+ ecosystems: ["Ethereum", "Web3", "Smart Contracts", "Blockchain"]
2240
+ },
2241
+ version: "0.8.35",
2242
+ logo: "https://cdn.simpleicons.org/solidity/363636",
2243
+ i18n: {
2244
+ en: {
2245
+ name: "Solidity",
2246
+ description: "A statically typed smart contract language for Ethereum and EVM-compatible blockchains.",
2247
+ longDescription: "Solidity is a statically typed, contract-oriented programming language designed for writing smart contracts that run on the Ethereum Virtual Machine and compatible blockchain networks. It supports contracts, libraries, interfaces, inheritance, modifiers, events, custom errors, ABI encoding, and explicit visibility and mutability rules.\n\nIt is used to build decentralized applications, token contracts, DAOs, DeFi protocols, NFT contracts, governance systems, and other on-chain programs where deterministic execution and verifiable state transitions are required."
2248
+ },
2249
+ es: {
2250
+ name: "Solidity",
2251
+ description: "Un lenguaje tipado estaticamente para smart contracts en Ethereum y blockchains compatibles con EVM.",
2252
+ longDescription: "Solidity es un lenguaje de programacion tipado estaticamente y orientado a contratos, disenado para escribir smart contracts que se ejecutan en Ethereum Virtual Machine y redes blockchain compatibles. Soporta contratos, bibliotecas, interfaces, herencia, modificadores, eventos, errores personalizados, codificacion ABI y reglas explicitas de visibilidad y mutabilidad.\n\nSe usa para construir aplicaciones descentralizadas, contratos de tokens, DAOs, protocolos DeFi, contratos NFT, sistemas de gobernanza y otros programas on-chain donde se requiere ejecucion determinista y transiciones de estado verificables."
2253
+ }
2254
+ }
2255
+ };
2256
+ }
2257
+ });
2258
+
2145
2259
  // src/languages/sql.ts
2146
2260
  var sql_exports = {};
2147
2261
  __export(sql_exports, {
@@ -2718,6 +2832,7 @@ init_go();
2718
2832
  init_gradle();
2719
2833
  init_graphql();
2720
2834
  init_groovy();
2835
+ init_hcl();
2721
2836
  init_html();
2722
2837
  init_ini();
2723
2838
  init_java();
@@ -2743,10 +2858,12 @@ init_powershell();
2743
2858
  init_pug();
2744
2859
  init_python();
2745
2860
  init_r();
2861
+ init_razor();
2746
2862
  init_ruby();
2747
2863
  init_rust();
2748
2864
  init_scala();
2749
2865
  init_scss();
2866
+ init_solidity();
2750
2867
  init_sql();
2751
2868
  init_svelte();
2752
2869
  init_svg();
@@ -2791,6 +2908,7 @@ var languages = [
2791
2908
  glsl,
2792
2909
  graphql,
2793
2910
  groovy,
2911
+ hcl,
2794
2912
  html,
2795
2913
  ini,
2796
2914
  java,
@@ -2817,10 +2935,12 @@ var languages = [
2817
2935
  pug,
2818
2936
  python,
2819
2937
  r,
2938
+ razor,
2820
2939
  ruby,
2821
2940
  rust,
2822
2941
  scala,
2823
2942
  scss,
2943
+ solidity,
2824
2944
  sql,
2825
2945
  svg,
2826
2946
  svelte,
@@ -2931,6 +3051,7 @@ var languageIndex = [
2931
3051
  },
2932
3052
  { slug: "graphql", extensions: [".graphql", ".gql", ".graphqls"] },
2933
3053
  { slug: "groovy", extensions: [".groovy", ".gvy", ".gy", ".gsh"] },
3054
+ { slug: "hcl", extensions: [".hcl", ".tf", ".tfvars", ".pkr.hcl", ".nomad"] },
2934
3055
  { slug: "html", extensions: [".html", ".htm"] },
2935
3056
  { slug: "ini", extensions: [".ini"] },
2936
3057
  { slug: "java", extensions: [".java"] },
@@ -2957,6 +3078,7 @@ var languageIndex = [
2957
3078
  { slug: "pug", extensions: [".pug", ".jade"] },
2958
3079
  { slug: "python", extensions: [".py", ".pyw"] },
2959
3080
  { slug: "r", extensions: [".r", ".R", ".rmd", ".Rmd", ".qmd", ".Rprofile"] },
3081
+ { slug: "razor", extensions: [".cshtml", ".razor"] },
2960
3082
  {
2961
3083
  slug: "ruby",
2962
3084
  extensions: [".rb", ".rbw", ".rake", ".gemspec", "Gemfile", "Rakefile", "config.ru"]
@@ -2964,6 +3086,7 @@ var languageIndex = [
2964
3086
  { slug: "rust", extensions: [".rs"] },
2965
3087
  { slug: "scala", extensions: [".scala", ".sc"] },
2966
3088
  { slug: "scss", extensions: [".scss", ".sass"] },
3089
+ { slug: "solidity", extensions: [".sol"] },
2967
3090
  { slug: "sql", extensions: [".sql"] },
2968
3091
  { slug: "svg", extensions: [".svg", ".svgz"] },
2969
3092
  { slug: "svelte", extensions: [".svelte"] },
@@ -3011,6 +3134,7 @@ var languageLoaders = {
3011
3134
  glsl: () => Promise.resolve().then(() => (init_glsl(), glsl_exports)).then((module) => module.glsl),
3012
3135
  graphql: () => Promise.resolve().then(() => (init_graphql(), graphql_exports)).then((module) => module.graphql),
3013
3136
  groovy: () => Promise.resolve().then(() => (init_groovy(), groovy_exports)).then((module) => module.groovy),
3137
+ hcl: () => Promise.resolve().then(() => (init_hcl(), hcl_exports)).then((module) => module.hcl),
3014
3138
  html: () => Promise.resolve().then(() => (init_html(), html_exports)).then((module) => module.html),
3015
3139
  ini: () => Promise.resolve().then(() => (init_ini(), ini_exports)).then((module) => module.ini),
3016
3140
  java: () => Promise.resolve().then(() => (init_java(), java_exports)).then((module) => module.java),
@@ -3037,10 +3161,12 @@ var languageLoaders = {
3037
3161
  pug: () => Promise.resolve().then(() => (init_pug(), pug_exports)).then((module) => module.pug),
3038
3162
  python: () => Promise.resolve().then(() => (init_python(), python_exports)).then((module) => module.python),
3039
3163
  r: () => Promise.resolve().then(() => (init_r(), r_exports)).then((module) => module.r),
3164
+ razor: () => Promise.resolve().then(() => (init_razor(), razor_exports)).then((module) => module.razor),
3040
3165
  ruby: () => Promise.resolve().then(() => (init_ruby(), ruby_exports)).then((module) => module.ruby),
3041
3166
  rust: () => Promise.resolve().then(() => (init_rust(), rust_exports)).then((module) => module.rust),
3042
3167
  scala: () => Promise.resolve().then(() => (init_scala(), scala_exports)).then((module) => module.scala),
3043
3168
  scss: () => Promise.resolve().then(() => (init_scss(), scss_exports)).then((module) => module.scss),
3169
+ solidity: () => Promise.resolve().then(() => (init_solidity(), solidity_exports)).then((module) => module.solidity),
3044
3170
  sql: () => Promise.resolve().then(() => (init_sql(), sql_exports)).then((module) => module.sql),
3045
3171
  svelte: () => Promise.resolve().then(() => (init_svelte(), svelte_exports)).then((module) => module.svelte),
3046
3172
  svg: () => Promise.resolve().then(() => (init_svg(), svg_exports)).then((module) => module.svg),