Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

constructor-utils

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constructor-utils - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

1

decorators.d.ts

@@ -1,2 +0,1 @@

import "reflect-metadata";
/**

@@ -3,0 +2,0 @@ * Specifies a type of the property.

"use strict";
require("reflect-metadata");
var MetadataStorage_1 = require("./metadata/MetadataStorage");

@@ -4,0 +3,0 @@ var TypeMetadata_1 = require("./metadata/TypeMetadata");

3

package.json
{
"name": "constructor-utils",
"version": "0.0.13",
"version": "0.0.14",
"description": "Constructor utilities to simplify work with classes and constructors. Provides plain javascript objects to classes transformation utilities.",

@@ -27,2 +27,3 @@ "license": "Apache-2.0",

"dependencies": {
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3"

@@ -29,0 +30,0 @@ },

@@ -8,2 +8,7 @@ # constructor-utils

**0.0.14**
* removed `import "reflect-metadata"` from source code. Now reflect metadata should be included like any other
user's shims.
**0.0.13**

@@ -25,8 +30,11 @@

3. ES6 features are used, so you may want to install [es6-shim](https://github.com/paulmillr/es6-shim) too:
3. ES6 features are used, so you may want to install [es6-shim](https://github.com/paulmillr/es6-shim) too. You also
need to install [reflect-metadata](https://www.npmjs.com/package/reflect-metadata) package.
`npm install es6-shim --save`
`npm install reflect-metadata --save`
if you are building nodejs app, you may want to `require("es6-shim");` in your app.
or if you are building web app, you man want to add `<script src="path-to-shim/es6-shim.js">` on your page.
if you are building nodejs app, you may want to `require("es6-shim");` and `require("reflect-metadata")` in your app.
or if you are building web app, you man want to add `<script src="path-to-es6-shim/es6-shim.js">` on your page.
or if you are building web app, you man want to add `<script src="path-to-reflect-metadata-shim/reflect-metadata.js">` on your page.

@@ -33,0 +41,0 @@ ## Transform plain object to constructor and versa

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