Socket
Socket
Sign inDemoInstall

webtorrent-fixtures

Package Overview
Dependencies
Maintainers
9
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webtorrent-fixtures - npm Package Compare versions

Comparing version 1.7.5 to 2.0.0

17

CHANGELOG.md

@@ -0,1 +1,18 @@

# [2.0.0](https://github.com/webtorrent/webtorrent-fixtures/compare/v1.7.5...v2.0.0) (2022-12-05)
* Merge pull request #20 from ThaUnknown/esm ([a028016](https://github.com/webtorrent/webtorrent-fixtures/commit/a028016b8051d6a094c19a7f73ce27ced26c210b)), closes [#20](https://github.com/webtorrent/webtorrent-fixtures/issues/20)
### Features
* esm ([e4dc681](https://github.com/webtorrent/webtorrent-fixtures/commit/e4dc68159e346bae73ee67821ba2020f19a11989))
### BREAKING CHANGES
* ESM only
feat: esm
## [1.7.5](https://github.com/webtorrent/webtorrent-fixtures/compare/v1.7.4...v1.7.5) (2021-07-30)

@@ -2,0 +19,0 @@

13

index.js
// Torrent and content test files. Content is Public Domain or Creative Commons.
const fs = require('fs')
const path = require('path')
const parseTorrent = require('parse-torrent')
import fs from 'fs'
import path, { dirname } from 'path'
import parseTorrent from 'parse-torrent'
module.exports = {
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
export default {
// Leaves of Grass, by Walt Whitman

@@ -8,0 +13,0 @@ leaves: {

{
"name": "webtorrent-fixtures",
"description": "Sample torrent files for the WebTorrent test suite",
"version": "1.7.5",
"version": "2.0.0",
"author": {

@@ -18,2 +18,3 @@ "name": "WebTorrent, LLC",

},
"type": "module",
"dependencies": {

@@ -24,4 +25,4 @@ "brfs": "^2.0.0",

"devDependencies": {
"@webtorrent/semantic-release-config": "1.0.5",
"semantic-release": "17.4.4",
"@webtorrent/semantic-release-config": "1.0.7",
"semantic-release": "17.4.7",
"standard": "*"

@@ -39,3 +40,8 @@ },

"license": "MIT",
"main": "index.js",
"engines": {
"node": ">=12.20.0"
},
"exports": {
"import": "./index.js"
},
"repository": {

@@ -46,3 +52,3 @@ "type": "git",

"scripts": {
"test": "standard && node -e \"require('.')\""
"test": "standard && node --input-type=module -e \"import './index.js'\""
},

@@ -49,0 +55,0 @@ "renovate": {

@@ -19,3 +19,3 @@ # webtorrent-fixtures [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

```js
const fixtures = require('webtorrent-fixtures')
import fixtures from 'webtorrent-fixtures'
console.log(fixtures.leaves)

@@ -22,0 +22,0 @@ ```

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