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

@gi.ts/node-loader

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gi.ts/node-loader - npm Package Compare versions

Comparing version 1.5.10 to 2.0.0-alpha.0

2

dist/loader.d.ts

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

export { GirInfo, generate, generateAll, resolveLibraries } from './util';
export { GirInfo, generate, generateAll, resolveLibraries } from './util.js';

@@ -1,7 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveLibraries = exports.generateAll = exports.generate = void 0;
var util_1 = require("./util");
Object.defineProperty(exports, "generate", { enumerable: true, get: function () { return util_1.generate; } });
Object.defineProperty(exports, "generateAll", { enumerable: true, get: function () { return util_1.generateAll; } });
Object.defineProperty(exports, "resolveLibraries", { enumerable: true, get: function () { return util_1.resolveLibraries; } });
export { generate, generateAll, resolveLibraries } from './util.js';

@@ -1,32 +0,7 @@

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveLibraries = exports.generateAll = exports.generate = void 0;
// Depends on fs.realpath, inflight, inherits, minimatch, once, path-is-absolute
const glob_1 = require("glob");
const fs = __importStar(require("fs"));
const path = __importStar(require("path"));
const parser_1 = require("@gi.ts/parser");
import glob from 'glob';
const { sync: Dirglob } = glob;
import * as fs from 'fs';
import * as path from 'path';
import { parser } from '@gi.ts/parser';
function readGir(path) {

@@ -36,3 +11,3 @@ const data = fs.readFileSync(path, {

});
return parser_1.parser.parseGir(data);
return parser.parseGir(data);
}

@@ -58,3 +33,3 @@ function process_namespace(namespace) {

}
async function generate(gir_path, verbose = false) {
export async function generate(gir_path, verbose = false) {
if (typeof gir_path === 'object')

@@ -79,5 +54,4 @@ return gir_path;

}
exports.generate = generate;
let force = false;
function generateAll(directories = []) {
export function generateAll(directories = []) {
var _a;

@@ -101,7 +75,6 @@ const { XDG_DATA_DIRS } = process.env;

})
.reduce((prev, [dir, girdir]) => [...prev, ...(0, glob_1.sync)(dir), ...(0, glob_1.sync)(girdir)], []);
.reduce((prev, [dir, girdir]) => [...prev, ...Dirglob(dir), ...Dirglob(girdir)], []);
return glob;
}
exports.generateAll = generateAll;
async function resolveLibraries(libraries, verbose = false, directories = []) {
export async function resolveLibraries(libraries, verbose = false, directories = []) {
var _a;

@@ -151,2 +124,1 @@ console.log('Finding GIR files...');

}
exports.resolveLibraries = resolveLibraries;
{
"name": "@gi.ts/node-loader",
"version": "1.5.10",
"version": "2.0.0-alpha.0",
"main": "dist/loader.js",
"types": "dist/loader.d.ts",
"type": "module",
"exports": {
".": {
"types": "./dist/loader.d.ts",
"import": "./dist/loader.js"
}
},
"files": [

@@ -20,3 +27,3 @@ "dist",

"dependencies": {
"@gi.ts/parser": "^1.5.10",
"@gi.ts/parser": "2.0.0-alpha.0",
"glob": "^7.1.6"

@@ -26,3 +33,3 @@ },

"@types/glob": "^7.1.3",
"typescript": "^4.7.4"
"typescript": "5.1.3"
},

@@ -33,3 +40,3 @@ "scripts": {

},
"gitHead": "34aef45adc10d018a33f82db6f50fd61a512cdce"
"gitHead": "18a5d3b74bec68a3530016e2c1dd69d7f235a1e0"
}
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