@unique-nft/schemas
Advanced tools
Comparing version 2.1.7 to 2.1.8
16
index.js
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -18,2 +20,10 @@ var __export = (target, all) => { | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -208,3 +218,3 @@ | ||
// src/tools/old_to_intermediate/v0_to_intermediate.ts | ||
var import_protobufjs = require("protobufjs"); | ||
var import_protobufjs = __toESM(require("protobufjs")); | ||
var import_utils2 = require("@unique-nft/utils"); | ||
@@ -255,3 +265,3 @@ var isOffchainSchemaAValidUrl = (offchainSchema) => { | ||
let NFTMeta = {}; | ||
root = import_protobufjs.Root.fromJSON(JSON.parse(constOnchainSchema)); | ||
root = import_protobufjs.default.Root.fromJSON(JSON.parse(constOnchainSchema)); | ||
NFTMeta = root.lookupType("onChainMetaData.NFTMeta"); | ||
@@ -305,3 +315,3 @@ const attributesSchema = {}; | ||
} | ||
const root = import_protobufjs.Root.fromJSON(JSON.parse(constOnchainSchema)); | ||
const root = import_protobufjs.default.Root.fromJSON(JSON.parse(constOnchainSchema)); | ||
const NFTMeta = root.lookupType("onChainMetaData.NFTMeta"); | ||
@@ -308,0 +318,0 @@ if (!propertiesArray) { |
{ | ||
"name": "@unique-nft/schemas", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "Unique Network schemas encoding, validating and decoding toolkit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2551406
17382
6