Socket
Socket
Sign inDemoInstall

@manifoldxyz/manifold-data-client

Package Overview
Dependencies
9
Maintainers
9
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.7

dist/user/index.d.ts

3

dist/index.d.ts
import { NFTs } from './nfts';
import { User } from './user';
import { Base } from './base';
declare class ManifoldClient extends Base {
}
interface ManifoldClient extends NFTs {
interface ManifoldClient extends NFTs, User {
}
export default ManifoldClient;

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

function t(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=/*#__PURE__*/t(require("isomorphic-unfetch"));function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r.apply(this,arguments)}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}var i,u=/*#__PURE__*/function(){function t(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}return t.prototype.request=function(t,n){var o=(1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev")+"/"+t,i=r({},n,{headers:{Authorization:"Bearer "+this.token,"Content-type":"application/json"}});return e.default(o,i).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},t}(),s=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var r=e.prototype;return r.getNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId)},r.getOwnersOfNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId+"/owners")},r.getNFTsOfOwner=function(){return this.request("nfts/")},r.getFilteredNFTsOfOwner=function(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})},e}(u),c=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(u);i=c,[s].forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(e){Object.defineProperty(i.prototype,e,Object.getOwnPropertyDescriptor(t.prototype,e))})}),module.exports=c;
function t(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var e=/*#__PURE__*/t(require("isomorphic-unfetch"));function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r.apply(this,arguments)}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}var i,s=/*#__PURE__*/function(){function t(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}return t.prototype.request=function(t,n){var o=(1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev")+"/"+t,i=r({},n,{headers:{Authorization:"Bearer "+this.token,"Content-type":"application/json"}});return e.default(o,i).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},t}(),u=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}n(e,t);var r=e.prototype;return r.getNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId)},r.getOwnersOfNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId+"/owners")},r.getNFTsOfOwner=function(){return this.request("nfts/")},r.getFilteredNFTsOfOwner=function(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})},e}(s),c=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e.prototype.getAddress=function(){return this.request("address")},e}(s),f=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(s);i=f,[u,c].forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(e){Object.defineProperty(i.prototype,e,Object.getOwnPropertyDescriptor(t.prototype,e))})}),module.exports=f;
//# sourceMappingURL=index.js.map

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

import t from"isomorphic-unfetch";function r(){return r=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.apply(this,arguments)}function e(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r)}function n(t,r){return n=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},n(t,r)}var o,i=/*#__PURE__*/function(){function e(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}return e.prototype.request=function(e,n){var o=(1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev")+"/"+e,i=r({},n,{headers:{Authorization:"Bearer "+this.token,"Content-type":"application/json"}});return t(o,i).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}(),s=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.getNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId)},n.getOwnersOfNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId+"/owners")},n.getNFTsOfOwner=function(){return this.request("nfts/")},n.getFilteredNFTsOfOwner=function(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})},r}(i),u=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r}(i);o=u,[s].forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r))})});export{u as default};
import t from"isomorphic-unfetch";function r(){return r=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},r.apply(this,arguments)}function e(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,n(t,r)}function n(t,r){return n=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},n(t,r)}var o,i=/*#__PURE__*/function(){function e(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}return e.prototype.request=function(e,n){var o=(1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev")+"/"+e,i=r({},n,{headers:{Authorization:"Bearer "+this.token,"Content-type":"application/json"}});return t(o,i).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},e}(),s=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}e(r,t);var n=r.prototype;return n.getNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId)},n.getOwnersOfNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId+"/owners")},n.getNFTsOfOwner=function(){return this.request("nfts/")},n.getFilteredNFTsOfOwner=function(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})},r}(i),u=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r.prototype.getAddress=function(){return this.request("address")},r}(i),c=/*#__PURE__*/function(t){function r(){return t.apply(this,arguments)||this}return e(r,t),r}(i);o=c,[s,u].forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(r){Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(t.prototype,r))})});export{c as default};
//# sourceMappingURL=index.m.js.map

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

import t from"isomorphic-unfetch";function e(){return e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},e.apply(this,arguments)}class r{constructor(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}request(r,o){const n=`${1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev"}/${r}`,s=e({},o,{headers:{Authorization:`Bearer ${this.token}`,"Content-type":"application/json"}});return t(n,s).then(t=>{if(t.ok)return t.json();throw new Error(t.statusText)})}}class o extends r{}var n;n=o,[class extends r{getNFT(t){return this.request(`nft/${t.contractAddress}/${t.tokenId}`)}getOwnersOfNFT(t){return this.request(`nft/${t.contractAddress}/${t.tokenId}/owners`)}getNFTsOfOwner(){return this.request("nfts/")}getFilteredNFTsOfOwner(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})}}].forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(e=>{Object.defineProperty(n.prototype,e,Object.getOwnPropertyDescriptor(t.prototype,e))})});export{o as default};
import t from"isomorphic-unfetch";function e(){return e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},e.apply(this,arguments)}class r{constructor(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}request(r,s){const n=`${1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev"}/${r}`,o=e({},s,{headers:{Authorization:`Bearer ${this.token}`,"Content-type":"application/json"}});return t(n,o).then(t=>{if(t.ok)return t.json();throw new Error(t.statusText)})}}class s extends r{}var n;n=s,[class extends r{getNFT(t){return this.request(`nft/${t.contractAddress}/${t.tokenId}`)}getOwnersOfNFT(t){return this.request(`nft/${t.contractAddress}/${t.tokenId}/owners`)}getNFTsOfOwner(){return this.request("nfts/")}getFilteredNFTsOfOwner(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})}},class extends r{getAddress(){return this.request("address")}}].forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(e=>{Object.defineProperty(n.prototype,e,Object.getOwnPropertyDescriptor(t.prototype,e))})});export{s as default};
//# sourceMappingURL=index.modern.js.map

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("isomorphic-unfetch")):"function"==typeof define&&define.amd?define(["isomorphic-unfetch"],e):(t||self).manifoldDataClient=e(t.isomorphicUnfetch)}(this,function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=/*#__PURE__*/e(t);function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}var f,u=/*#__PURE__*/function(){function t(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}return t.prototype.request=function(t,e){var o=(1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev")+"/"+t,i=r({},e,{headers:{Authorization:"Bearer "+this.token,"Content-type":"application/json"}});return n.default(o,i).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},t}(),s=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.getNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId)},n.getOwnersOfNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId+"/owners")},n.getNFTsOfOwner=function(){return this.request("nfts/")},n.getFilteredNFTsOfOwner=function(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})},e}(u),c=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(u);return f=c,[s].forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(e){Object.defineProperty(f.prototype,e,Object.getOwnPropertyDescriptor(t.prototype,e))})}),c});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("isomorphic-unfetch")):"function"==typeof define&&define.amd?define(["isomorphic-unfetch"],e):(t||self).manifoldDataClient=e(t.isomorphicUnfetch)}(this,function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=/*#__PURE__*/e(t);function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}var u,s=/*#__PURE__*/function(){function t(t){this.token=void 0,this.network=void 0,this.token=t.token,this.network=t.network||1}return t.prototype.request=function(t,e){var o=(1===this.network?"https://resource.api.manifoldxyz.dev":"https://rinkeby.resource.api.manifoldxyz.dev")+"/"+t,i=r({},e,{headers:{Authorization:"Bearer "+this.token,"Content-type":"application/json"}});return n.default(o,i).then(function(t){if(t.ok)return t.json();throw new Error(t.statusText)})},t}(),f=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}o(e,t);var n=e.prototype;return n.getNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId)},n.getOwnersOfNFT=function(t){return this.request("nft/"+t.contractAddress+"/"+t.tokenId+"/owners")},n.getNFTsOfOwner=function(){return this.request("nfts/")},n.getFilteredNFTsOfOwner=function(t){return this.request("nfts/",{method:"POST",body:JSON.stringify({filters:t.filters})})},e}(s),c=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e.prototype.getAddress=function(){return this.request("address")},e}(s),p=/*#__PURE__*/function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(s);return u=p,[f,c].forEach(function(t){Object.getOwnPropertyNames(t.prototype).forEach(function(e){Object.defineProperty(u.prototype,e,Object.getOwnPropertyDescriptor(t.prototype,e))})}),p});
//# sourceMappingURL=index.umd.js.map

@@ -19,10 +19,14 @@ import ManifoldClient from '@manifoldxyz/manifold-data-client'

manifoldClient.getFilteredNFTsOfOwner({
filters: [
{
contractAddress: '0x64931f06d3266049bf0195346973762e6996d764'
}
]
}).then((data) => {
manifoldClient.getAddress().then((data) => {
console.log(data)
})
// manifoldClient.getNFTsOfOwner({
// filters: [
// {
// contractAddress: '0x64931f06d3266049bf0195346973762e6996d764'
// }
// ]
// }).then((data) => {
// console.log(data)
// })
{
"name": "@manifoldxyz/manifold-data-client",
"version": "0.0.6",
"version": "0.0.7",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.m.js",

@@ -64,1 +64,7 @@ # Manifold API Data Client

})
#### getAddress
manifoldClient.getAddress().then((data) => {
console.log(data)
})
import { NFTs } from './nfts'
import { User } from './user'
import { applyMixins } from './utils'

@@ -6,5 +7,5 @@ import { Base } from './base'

class ManifoldClient extends Base {}
interface ManifoldClient extends NFTs {}
applyMixins(ManifoldClient, [NFTs]);
interface ManifoldClient extends NFTs, User {}
applyMixins(ManifoldClient, [NFTs, User]);
export default ManifoldClient

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 not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc