Comparing version 1.3.0 to 1.4.0
@@ -7,3 +7,3 @@ { | ||
"homepage": "http://typescriptlang.org/", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"license": "Apache License 2.0", | ||
@@ -22,3 +22,3 @@ "description": "Runtime library for TypeScript helper functions", | ||
"type": "git", | ||
"url": "https://github.com/Draccoz/tslib.git" | ||
"url": "https://github.com/Microsoft/tslib.git" | ||
}, | ||
@@ -25,0 +25,0 @@ "main": "tslib.js", |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://typescriptlang.org/", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"licenses": [ | ||
@@ -8,0 +8,0 @@ { |
@@ -1,4 +0,1 @@ | ||
[![Issue Stats](http://issuestats.com/github/Microsoft/tslib/badge/pr)](http://issuestats.com/github/microsoft/tslib) | ||
[![Issue Stats](http://issuestats.com/github/Microsoft/tslib/badge/issue)](http://issuestats.com/github/microsoft/tslib) | ||
# Runtime | ||
@@ -12,9 +9,18 @@ | ||
``` | ||
## npm | ||
```sh | ||
npm install tslib | ||
``` | ||
## bower | ||
```sh | ||
bower install tslib | ||
``` | ||
# Usage | ||
Set the `importHelpers` compiler option on the command line: | ||
``` | ||
@@ -25,2 +31,3 @@ tsc --importHelpers file.ts | ||
or in your tsconfig.json: | ||
```json | ||
@@ -34,4 +41,21 @@ { | ||
## Contribute | ||
#### For bower users | ||
You will need to add a `paths` mapping for `tslib`, e.g.: | ||
```json | ||
{ | ||
"compilerOptions": { | ||
"module": "amd", | ||
"importHelpers": true, | ||
"baseUrl": "./", | ||
"paths": { | ||
"tslib" : ["bower_components/tslib/tslib.d.ts"] | ||
} | ||
} | ||
} | ||
``` | ||
# Contribute | ||
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. | ||
@@ -45,8 +69,7 @@ * [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. | ||
# Documentation | ||
## Documentation | ||
* [Quick tutorial](http://www.typescriptlang.org/Tutorial) | ||
* [Programming handbook](http://www.typescriptlang.org/Handbook) | ||
* [Language specification](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md) | ||
* [Homepage](http://www.typescriptlang.org/) | ||
* [Quick tutorial](http://www.typescriptlang.org/Tutorial) | ||
* [Programming handbook](http://www.typescriptlang.org/Handbook) | ||
* [Language specification](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md) | ||
* [Homepage](http://www.typescriptlang.org/) |
@@ -26,9 +26,3 @@ /*! ***************************************************************************** | ||
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; | ||
if (typeof System === "object" && typeof System.register === "function") { | ||
System.register("tslib", [], function (exporter) { | ||
factory(createExporter(root, exporter)); | ||
return { setters: [], execute: function() { } }; | ||
}); | ||
} | ||
else if (typeof define === "function" && define.amd) { | ||
if (typeof define === "function" && define.amd) { | ||
define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); | ||
@@ -42,3 +36,2 @@ } | ||
} | ||
function createExporter(exports, previous) { | ||
@@ -45,0 +38,0 @@ return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72
46706
248