Socket
Socket
Sign inDemoInstall

multiformats

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiformats - npm Package Compare versions

Comparing version 1.1.12 to 1.1.13

coverage/tmp/coverage-3762-1595013458679-0.json

3

package.json
{
"name": "multiformats",
"version": "1.1.12",
"version": "1.1.13",
"description": "Interface for multihash, multicodec, multibase and CID.",

@@ -99,2 +99,3 @@ "main": "index.js",

"dependencies": {
"@rollup/plugin-alias": "^3.1.1",
"base-x": "^3.0.8",

@@ -101,0 +102,0 @@ "buffer": "^5.6.0",

@@ -1,16 +0,25 @@

import { readdirSync } from 'fs'
import { join } from 'path'
import { readdirSync, readFileSync } from 'fs'
import { fileURLToPath } from 'url'
import { dirname, join } from 'path'
import alias from '@rollup/plugin-alias'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
const pkg = JSON.parse(readFileSync(join(__dirname, 'package.json')))
const dir = 'dist'
const preserveModules = true
const configs = []
for (const subdir of ['test', 'bases', 'hashes', 'codecs', '.']) {
const output = { dir: join(dir, subdir), preserveModules, format: 'cjs', entryFileNames: '[name].cjs' }
const testdir = join(__dirname, subdir)
const filter = name => name.endsWith('.js')
const createConfig = f => ({ input: join(subdir, f), output })
readdirSync(testdir).filter(filter).map(createConfig).forEach(c => configs.push(c))
}
const plugins = [
alias({ entries: [{ find: pkg.name, replacement: __dirname }] })
]
const output = { dir, preserveModules, format: 'cjs', entryFileNames: '[name].cjs' }
const testdir = join(__dirname, 'test')
const filter = name => name.endsWith('.js')
const createConfig = f => ({ input: join('test', f), output, plugins })
const configs = readdirSync(testdir).filter(filter).map(createConfig)
console.log(configs)
export default configs

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc