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

drei

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drei - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/draco.d.ts

14

dist/index.cjs.js

@@ -12,2 +12,3 @@ 'use strict';

var OrbitControls$1 = require('three/examples/jsm/controls/OrbitControls');
var DRACOLoader = require('three/examples/jsm/loaders/DRACOLoader');

@@ -41,2 +42,15 @@ reactThreeFiber.extend({

function draco(url) {
if (url === void 0) {
url = '/draco-gltf/';
}
return function (loader) {
var dracoLoader = new DRACOLoader.DRACOLoader();
dracoLoader.setDecoderPath(url);
loader.setDRACOLoader(dracoLoader);
};
}
exports.OrbitControls = OrbitControls;
exports.draco = draco;

1

dist/index.d.ts
export * from './OrbitControls';
export * from './draco';

@@ -5,2 +5,3 @@ import _extends from '@babel/runtime/helpers/esm/extends';

import { OrbitControls as OrbitControls$1 } from 'three/examples/jsm/controls/OrbitControls';
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';

@@ -27,2 +28,10 @@ extend({

export { OrbitControls };
function draco(url = '/draco-gltf/') {
return loader => {
const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath(url);
loader.setDRACOLoader(dracoLoader);
};
}
export { OrbitControls, draco };

5

package.json
{
"name": "drei",
"version": "0.0.3",
"version": "0.0.4",
"description": "useful add-ons for react-three-fiber",

@@ -13,3 +13,3 @@ "main": "dist/index.cjs.js",

"eslint": "eslint src/**/*.{js,ts,jsx,tsx}",
"test": "jest",
"test": "echo no tests yet",
"typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react",

@@ -74,2 +74,3 @@ "typegen": "tsc && mv dist/src/* dist && rm -rf dist/src || true"

"husky": "^4.2.5",
"jest": "^25.4.0",
"prettier": "^2.0.5",

@@ -76,0 +77,0 @@ "pretty-quick": "^2.0.1",

export * from './OrbitControls'
export * from './draco'
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