Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ipjs

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipjs - npm Package Compare versions

Comparing version 3.3.0 to 3.3.1

2

cli.js

@@ -52,4 +52,2 @@ #!/usr/bin/env node

const _argv = argv({})
commands.build = async args => build({ ...await argv(build.schema)(args), ...nodeEnv })

@@ -56,0 +54,0 @@

4

package.json
{
"name": "ipjs",
"version": "3.3.0",
"version": "3.3.1",
"description": "Universal JavaScript build and packaging system",

@@ -11,3 +11,3 @@ "main": "src/build.js",

"scripts": {
"test": "estest test/test-*.js"
"test": "standard && estest test/test-*.js"
},

@@ -14,0 +14,0 @@ "repository": {

import { readFileSync } from 'fs'
import Block from '@ipld/block/defaults.js'
const schema = JSON.parse(readFileSync(new URL('./schema.json', import.meta.url)))
const encode = obj => Block.encoder(obj, 'dag-cbor')

@@ -7,0 +5,0 @@

import pkg from './pkg/index.js'
import ipfs from '@textile/ipfs-lite'
import setup from '@textile/ipfs-lite/dist/setup/index.js'
import storage from 'interface-datastore'
const { Peer, BlockStore, Block } = ipfs
const { setupLibP2PHost } = setup
const { MemoryDatastore } = storage

@@ -8,0 +6,0 @@

@@ -6,3 +6,3 @@ const walk = (node, imports = new Set()) => {

}
for (const [key, value] of Object.entries(node)) {
for (const [, value] of Object.entries(node)) {
if (Array.isArray(value)) value.forEach(v => walk(v, imports))

@@ -9,0 +9,0 @@ else if (typeof value === 'object') walk(value, imports)

@@ -10,3 +10,3 @@ import { parse } from 'acorn'

const { readFile, mkdir } = fs
const { readFile } = fs
const { generate } = astring

@@ -45,3 +45,3 @@

const r = this.url.toString().slice(u.toString().length + 1)
const pre = (r.match(/\//g) || []).map(() => '../').join('')
let pre = (r.match(/\//g) || []).map(() => '../').join('')
if (!pre.length) pre = './'

@@ -48,0 +48,0 @@ return pre + p.slice(2)

import { Worker, isMainThread, parentPort, workerData } from 'worker_threads'
import { fileURLToPath, pathToFileURL } from 'url'
import { fileURLToPath } from 'url'
import { promises as fs } from 'fs'

@@ -76,5 +76,2 @@ import acorn from 'acorn'

let cjsCompile
let esmCompile
const commands = {}

@@ -97,4 +94,4 @@ commands.deflate = async (dist, cwd) => {

convert(cjs)
cjsCompile = generate(cjs, stropts)
esmCompile = generate(program, stropts)
const cjsCompile = generate(cjs, stropts)
const esmCompile = generate(program, stropts)
}

@@ -101,0 +98,0 @@

import pathToUrl from './path-to-url.js'
import api from './api.js'
// import IPFS from 'ipfs'
import Block from '@ipld/block/defaults.js'
// import Block from '@ipld/block/defaults.js'
import { client } from './demo/registry/index.js'
import { fromModule } from './util.js'
import { promises as fs } from 'fs'
// import { promises as fs } from 'fs'
/*
const getIPFS = cid => IPFS.create({

@@ -21,2 +22,3 @@ repo: `/tmp/ipjs-${cid}`,

})
*/

@@ -23,0 +25,0 @@ const fromPackage = pkg => {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc