Socket
Socket
Sign inDemoInstall

@astrojs/webapi

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/webapi - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

30

package.json
{
"name": "@astrojs/webapi",
"description": "Use Web APIs in Node",
"version": "2.2.0",
"version": "3.0.0",
"type": "module",

@@ -53,3 +53,3 @@ "exports": {

"dependencies": {
"undici": "^5.22.0"
"undici": "^5.22.1"
},

@@ -60,8 +60,8 @@ "devDependencies": {

"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.2",
"@types/chai": "^4.3.1",
"@rollup/plugin-typescript": "^8.5.0",
"@types/chai": "^4.3.5",
"@types/mocha": "^9.1.1",
"@types/node": "^18.7.21",
"@types/node": "^18.16.18",
"@ungap/structured-clone": "^0.3.4",
"chai": "^4.3.6",
"chai": "^4.3.7",
"event-target-shim": "^6.0.2",

@@ -71,6 +71,13 @@ "magic-string": "^0.27.0",

"rollup": "^2.79.1",
"tslib": "^2.5.0",
"tslib": "^2.5.3",
"typescript": "~5.0.2",
"urlpattern-polyfill": "^1.0.0-rc5"
},
"scripts": {
"build": "node run/build.js",
"build:ci": "node run/build.js",
"dev": "node run/build.js",
"release": "node run/build.js && npm publish --access public",
"test": "mocha --parallel --timeout 15000"
},
"prettier": {

@@ -92,10 +99,3 @@ "semi": false,

]
},
"scripts": {
"build": "node run/build.js",
"build:ci": "node run/build.js",
"dev": "node run/build.js",
"release": "node run/build.js && npm publish --access public",
"test": "mocha --parallel --timeout 15000"
}
}
}

@@ -111,4 +111,4 @@ # WebAPI

polyfill(globalThis, {
// disables polyfills for setTimeout clearTimeout
exclude: 'setTimeout clearTimeout',
// disables polyfills for setTimeout clearTimeout
exclude: 'setTimeout clearTimeout',
})

@@ -121,4 +121,4 @@ ```

polyfill(globalThis, {
// disables polyfills for setTimeout clearTimeout
exclude: 'Timeout+',
// disables polyfills for setTimeout clearTimeout
exclude: 'Timeout+',
})

@@ -129,4 +129,4 @@ ```

polyfill(globalThis, {
// disables polyfills for Node, Window, Document, HTMLElement, etc.
exclude: 'Node+',
// disables polyfills for Node, Window, Document, HTMLElement, etc.
exclude: 'Node+',
})

@@ -137,21 +137,19 @@ ```

polyfill(globalThis, {
// disables polyfills for Event, EventTarget, Node, Window, Document, HTMLElement, etc.
exclude: 'Event+',
// disables polyfills for Event, EventTarget, Node, Window, Document, HTMLElement, etc.
exclude: 'Event+',
})
```
| Shorthand | Excludes |
|:-------------- |:-------- |
| `Document+` | `Document`, `HTMLDocument` |
| `Element+` | `Element`, and exclusions from `HTMLElement+` |
| `Event+` | `Event`, `CustomEvent`, `EventTarget`, `MediaQueryList`, `Window`, and exclusions from `Node+` |
| `EventTarget+` | `Event`, `CustomEvent`, `EventTarget`, `MediaQueryList`, `Window`, and exclusions from `Node+` |
| Shorthand | Excludes |
| :------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Document+` | `Document`, `HTMLDocument` |
| `Element+` | `Element`, and exclusions from `HTMLElement+` |
| `Event+` | `Event`, `CustomEvent`, `EventTarget`, `MediaQueryList`, `Window`, and exclusions from `Node+` |
| `EventTarget+` | `Event`, `CustomEvent`, `EventTarget`, `MediaQueryList`, `Window`, and exclusions from `Node+` |
| `HTMLElement+` | `CustomElementsRegistry`, `HTMLElement`, `HTMLBodyElement`, `HTMLCanvasElement`, `HTMLDivElement`, `HTMLHeadElement`, `HTMLHtmlElement`, `HTMLImageElement`, `HTMLStyleElement`, `HTMLTemplateElement`, `HTMLUnknownElement`, `Image` |
| `Node+` | `Node`, `DocumentFragment`, `ShadowRoot`, `Document`, `HTMLDocument`, and exclusions from `Element+` |
| `StyleSheet+` | `StyleSheet`, `CSSStyleSheet` |
| `Node+` | `Node`, `DocumentFragment`, `ShadowRoot`, `Document`, `HTMLDocument`, and exclusions from `Element+` |
| `StyleSheet+` | `StyleSheet`, `CSSStyleSheet` |
---
## License & Attribution

@@ -158,0 +156,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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