@gi.ts/node-loader
Advanced tools
Comparing version 1.5.10 to 2.0.0-alpha.0
@@ -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" | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
Yes
7452
139
2
+ Added@gi.ts/parser@2.0.0-alpha.0(transitive)
- Removed@gi.ts/parser@1.5.10(transitive)
Updated@gi.ts/parser@2.0.0-alpha.0