Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aquiladev committed Aug 25, 2022
1 parent e5ab43f commit 7373dba
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 48 deletions.
24 changes: 0 additions & 24 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144426,7 +144426,6 @@ function wrappy (fn, cb) {
/***/ 38682:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

// const fsPath = require("path");
const { FilebaseClient } = __nccwpck_require__(5369);
const { filesFromPath } = __nccwpck_require__(29857);

Expand All @@ -144453,12 +144452,6 @@ module.exports = {
console.log(`Parsing options...`);
const { path, pinName, verbose } = options;

// let source = path;
// if (!fsPath.isAbsolute(source)) {
// const dir = (process.env.GITHUB_WORKSPACE || process.cwd()).toString();
// source = fsPath.join(dir, source);
// }

console.log(`Adding files...`);
const files = [];
for await (const file of filesFromPath(path, { pathPrefix: path })) {
Expand Down Expand Up @@ -144512,7 +144505,6 @@ module.exports = {

const { create, globSource } = __nccwpck_require__(21719);
const last = __nccwpck_require__(28741);
// const fs = require("fs");
const fsPath = __nccwpck_require__(71017);

module.exports = {
Expand Down Expand Up @@ -144544,9 +144536,6 @@ module.exports = {
},
upload: async (api, options) => {
const { path, pattern, verbose } = options;
// const pattern = fs.lstatSync(p).isDirectory()
// ? `${path.basename(p)}/**/*`
// : path.basename(p);
const { cid } = await last(
api.addAll(globSource(fsPath.dirname(path), pattern), { pin: true })
);
Expand All @@ -144571,7 +144560,6 @@ module.exports = {
const { create, globSource } = __nccwpck_require__(21719);
const PeerId = __nccwpck_require__(63923);
const last = __nccwpck_require__(28741);
// const fs = require("fs");
const fsPath = __nccwpck_require__(71017);

module.exports = {
Expand All @@ -144583,10 +144571,6 @@ module.exports = {
},
upload: async (api, options) => {
const { path, pattern, timeout, verbose, key } = options;

// const pattern = fs.lstatSync(p).isDirectory()
// ? `${path.basename(p)}/**/*`
// : path.basename(p);
const { cid } = await last(
api.addAll(globSource(fsPath.dirname(path), pattern), {
pin: true,
Expand Down Expand Up @@ -144668,7 +144652,6 @@ module.exports =
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

const pinataSDK = __nccwpck_require__(44386);
// const fsPath = require("path");

let pinataOptions = {
pinataOptions: {
Expand All @@ -144694,13 +144677,6 @@ module.exports = {
upload: async (api, options) => {
const { path, pinName, pinataPinName, verbose } = options;
const _pinName = pinName || pinataPinName;

// let source = path;
// if (!fsPath.isAbsolute(source)) {
// const dir = (process.env.GITHUB_WORKSPACE || process.cwd()).toString();
// source = fsPath.join(dir, source);
// }

if (_pinName) {
pinataOptions = {
...pinataOptions,
Expand Down
7 changes: 0 additions & 7 deletions pinners/filebase.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// const fsPath = require("path");
const { FilebaseClient } = require("@filebase/client");
const { filesFromPath } = require("files-from-path");

Expand All @@ -25,12 +24,6 @@ module.exports = {
console.log(`Parsing options...`);
const { path, pinName, verbose } = options;

// let source = path;
// if (!fsPath.isAbsolute(source)) {
// const dir = (process.env.GITHUB_WORKSPACE || process.cwd()).toString();
// source = fsPath.join(dir, source);
// }

console.log(`Adding files...`);
const files = [];
for await (const file of filesFromPath(path, { pathPrefix: path })) {
Expand Down
4 changes: 0 additions & 4 deletions pinners/infura.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { create, globSource } = require("ipfs-http-client");
const last = require("it-last");
// const fs = require("fs");
const fsPath = require("path");

module.exports = {
Expand Down Expand Up @@ -32,9 +31,6 @@ module.exports = {
},
upload: async (api, options) => {
const { path, pattern, verbose } = options;
// const pattern = fs.lstatSync(p).isDirectory()
// ? `${path.basename(p)}/**/*`
// : path.basename(p);
const { cid } = await last(
api.addAll(globSource(fsPath.dirname(path), pattern), { pin: true })
);
Expand Down
5 changes: 0 additions & 5 deletions pinners/ipfs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { create, globSource } = require("ipfs-http-client");
const PeerId = require("peer-id");
const last = require("it-last");
// const fs = require("fs");
const fsPath = require("path");

module.exports = {
Expand All @@ -13,10 +12,6 @@ module.exports = {
},
upload: async (api, options) => {
const { path, pattern, timeout, verbose, key } = options;

// const pattern = fs.lstatSync(p).isDirectory()
// ? `${path.basename(p)}/**/*`
// : path.basename(p);
const { cid } = await last(
api.addAll(globSource(fsPath.dirname(path), pattern), {
pin: true,
Expand Down
8 changes: 0 additions & 8 deletions pinners/pinata.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const pinataSDK = require("@pinata/sdk");
// const fsPath = require("path");

let pinataOptions = {
pinataOptions: {
Expand All @@ -25,13 +24,6 @@ module.exports = {
upload: async (api, options) => {
const { path, pinName, pinataPinName, verbose } = options;
const _pinName = pinName || pinataPinName;

// let source = path;
// if (!fsPath.isAbsolute(source)) {
// const dir = (process.env.GITHUB_WORKSPACE || process.cwd()).toString();
// source = fsPath.join(dir, source);
// }

if (_pinName) {
pinataOptions = {
...pinataOptions,
Expand Down

0 comments on commit 7373dba

Please sign in to comment.