Socket
Socket
Sign inDemoInstall

@wixc3/browser

Package Overview
Dependencies
Maintainers
85
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/browser - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

dist/cjs/animation-frame-scheduler.d.ts

10

package.json
{
"name": "@wixc3/browser",
"version": "2.2.0",
"description": "Common utils, usable in all environments",
"module": "dist/index.js",
"version": "3.0.0",
"description": "Browser only utils",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"author": "Wix.com",

@@ -11,3 +12,4 @@ "sideEffects": false,

"src",
"!dist/tsconfig.tsbuildinfo"
"!dist/*/test",
"!dist/*/tsconfig.tsbuildinfo"
],

@@ -14,0 +16,0 @@ "license": "MIT",

4

src/load-script.ts

@@ -0,1 +1,5 @@

/**
* Loads a script in browser
* @returns
*/
export const loadScript = (src: string, document: Document): Promise<void> =>

@@ -2,0 +6,0 @@ new Promise<void>((resolve, reject) => {

{
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "../dist",
"module": "esnext",
"outDir": "../dist/cjs",
"lib": ["dom", "ES2022"]
},
"references": []
}
}
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