Socket
Socket
Sign inDemoInstall

@girs/harfbuzz-0.0

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@girs/harfbuzz-0.0 - npm Package Compare versions

Comparing version 8.1.1-4.0.0-beta.1 to 8.1.1-4.0.0-beta.7

index.d.ts

7

harfbuzz-0.0-ambient.d.ts

@@ -1,5 +0,4 @@

declare module 'gi://HarfBuzz?version=0.0' {
import HarfBuzz from '@girs/harfbuzz-0.0';
export default HarfBuzz;
import HarfBuzz00 from '@girs/harfbuzz-0.0';
export default HarfBuzz00;
}

@@ -11,3 +10,1 @@

}

@@ -1,2 +0,1 @@

import HarfBuzz00 from '@girs/harfbuzz-0.0';

@@ -11,3 +10,1 @@

export default GjsGiImports;
// @ts-expect-error
import HarfBuzz from 'gi://HarfBuzz?version=0.0';
export { HarfBuzz };
export default HarfBuzz;
// @ts-expect-error
import HarfBuzz from 'gi://HarfBuzz?version=0.0';
export default HarfBuzz;
{
"name": "@girs/harfbuzz-0.0",
"version": "8.1.1-4.0.0-beta.1",
"version": "8.1.1-4.0.0-beta.7",
"description": "GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.1.1",

@@ -19,16 +19,21 @@ "type": "module",

},
".": {
"./harfbuzz-0.0": {
"types": "./harfbuzz-0.0.d.ts",
"import": "./harfbuzz-0.0.js",
"default": "./harfbuzz-0.0.js"
},
".": {
"types": "./index.d.ts",
"import": "./index.js",
"default": "./index.js"
}
},
"scripts": {
"test": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit harfbuzz-0.0.d.ts"
"test": "tsc --project tsconfig.json"
},
"dependencies": {
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.1",
"@girs/gjs": "^4.0.0-beta.1",
"@girs/glib-2.0": "^2.77.0-4.0.0-beta.1",
"@girs/gobject-2.0": "^2.77.0-4.0.0-beta.1"
"@girs/freetype2-2.0": "^2.0.0-4.0.0-beta.7",
"@girs/gjs": "^4.0.0-beta.7",
"@girs/glib-2.0": "^2.80.2-4.0.0-beta.7",
"@girs/gobject-2.0": "^2.80.2-4.0.0-beta.7"
},

@@ -35,0 +40,0 @@ "devDependencies": {

@@ -8,3 +8,3 @@

GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.1.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.1.
GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.1.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.7.

@@ -26,7 +26,2 @@

Or if you prefer CommonJS, you can also use this:
```ts
const HarfBuzz = require('@girs/harfbuzz-0.0');
```
### Ambient Modules

@@ -86,15 +81,2 @@

### ESM vs. CommonJS
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
### Bundle

@@ -101,0 +83,0 @@

@@ -5,7 +5,7 @@ {

"target": "ESNext",
"module": "ESNext",
"module": "NodeNext",
"lib": ["ESNext"],
"types": [],
"experimentalDecorators": true,
"moduleResolution": "node",
"moduleResolution": "NodeNext",
"noEmit": true,

@@ -12,0 +12,0 @@ "noEmitOnError": false,

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

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