0.1.0 • Published 11 months ago

@mobilc/panorama-polyfill v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

panorama-polyfill

Polyfills for common JavaScript features for Valve's Panorama UI (for Dota 2 Custom Games).

Installation

This package can be used only with a ESM bundler, such as webpack. Check out this tutorial for configuration instructions.

npm install panorama-polyfill

Usage

Functionality of this module is split across multiple entry points:

panorama-polyfill/lib/console

A polyfill for console object, featuring pretty value formatting.

import 'panorama-polyfill/lib/console';

console.log('Hello, world!'); // => Hello, world!
console.log('Hello, %s!', 'world'); // => Hello, world!
console.log([1, 2, 3]); // => [1, 2, 3]
console.log({ foo: { bar: /baz/ } }); // => { foo: { bar: /baz/ } }

panorama-polyfill/lib/timers

Polyfills for web timers (using $.Schedule):

  • setInterval and clearInterval
  • setTimeout and clearTimeout
  • setImmediate and clearImmediate

panorama-polyfill/lib/es

Polyfills for standard EcmaScript features that are missing from Panorama (> ES2017).

0.1.0

11 months ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.5-alpha.0

2 years ago

0.0.4-alpha.2

2 years ago

0.0.4-alpha.1

3 years ago

0.0.4-alpha.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago