@gi.ts/parser
Advanced tools
Comparing version 1.5.10 to 2.0.0-alpha.0
@@ -1,2 +0,2 @@ | ||
export * as parser from "./parser"; | ||
export * from "./xml"; | ||
export * as parser from "./parser.js"; | ||
export * from "./xml.js"; |
@@ -1,31 +0,2 @@ | ||
"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; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parser = void 0; | ||
exports.parser = __importStar(require("./parser")); | ||
__exportStar(require("./xml"), exports); | ||
export * as parser from "./parser.js"; | ||
export * from "./xml.js"; |
@@ -1,2 +0,2 @@ | ||
import { GirXML } from "./xml"; | ||
import { GirXML } from "./xml.js"; | ||
export declare function parseGir(contents: string): GirXML; |
@@ -1,7 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseGir = void 0; | ||
const fast_xml_parser_1 = require("fast-xml-parser"); | ||
function parseGir(contents) { | ||
return (0, fast_xml_parser_1.parse)(contents, { | ||
import { parse } from "fast-xml-parser"; | ||
export function parseGir(contents) { | ||
return parse(contents, { | ||
attributeNamePrefix: "", | ||
@@ -19,2 +16,1 @@ attrNodeName: "$", | ||
} | ||
exports.parseGir = parseGir; |
@@ -1,5 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TransferOwnershipType = exports.Direction = void 0; | ||
var Direction; | ||
export var Direction; | ||
(function (Direction) { | ||
@@ -9,4 +6,4 @@ Direction["In"] = "in"; | ||
Direction["Out"] = "out"; | ||
})(Direction = exports.Direction || (exports.Direction = {})); | ||
var TransferOwnershipType; | ||
})(Direction || (Direction = {})); | ||
export var TransferOwnershipType; | ||
(function (TransferOwnershipType) { | ||
@@ -16,2 +13,2 @@ TransferOwnershipType["Container"] = "container"; | ||
TransferOwnershipType["None"] = "none"; | ||
})(TransferOwnershipType = exports.TransferOwnershipType || (exports.TransferOwnershipType = {})); | ||
})(TransferOwnershipType || (TransferOwnershipType = {})); |
{ | ||
"name": "@gi.ts/parser", | ||
"version": "1.5.10", | ||
"version": "2.0.0-alpha.0", | ||
"type": "module", | ||
"main": "dist/lib.js", | ||
@@ -12,2 +13,8 @@ "types": "dist/lib.d.ts", | ||
], | ||
"exports": { | ||
".": { | ||
"types": "./dist/lib.d.ts", | ||
"import": "./dist/lib.js" | ||
} | ||
}, | ||
"engines": { | ||
@@ -29,5 +36,5 @@ "node": ">=12.0.0" | ||
"@types/xml2js": "^0.4.4", | ||
"typescript": "^4.7.4" | ||
"typescript": "5.1.3" | ||
}, | ||
"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
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
0
Yes
14272
448
2