jimp 0.17.9 → 0.17.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +0 -15
- package/browser/examples/example1.html +1 -1
- package/browser/examples/jimp-worker.js +1 -1
- package/browser/examples/test.html +1 -1
- package/browser/lib/jimp.js +3 -0
- package/browser/lib/jimp.js.LICENSE.txt +210 -0
- package/browser/lib/jimp.js.map +1 -0
- package/es/index.js +22 -0
- package/es/index.js.map +1 -0
- package/package.json +12 -35
- package/types/index.d.ts +51 -605
- package/types/test.ts +18 -26
- package/types/ts3.1/index.d.ts +0 -51
- package/types/ts3.1/test.ts +0 -93
- package/types/ts3.1/tsconfig.json +0 -18
package/es/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _custom = _interopRequireDefault(require("@jimp/custom"));
|
|
11
|
+
|
|
12
|
+
var _types = _interopRequireDefault(require("@jimp/types"));
|
|
13
|
+
|
|
14
|
+
var _plugins = _interopRequireDefault(require("@jimp/plugins"));
|
|
15
|
+
|
|
16
|
+
var _default = (0, _custom["default"])({
|
|
17
|
+
types: [_types["default"]],
|
|
18
|
+
plugins: [_plugins["default"]]
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
exports["default"] = _default;
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
package/es/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["types","plugins"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;eAEe,wBAAU;AACvBA,EAAAA,KAAK,EAAE,CAACA,iBAAD,CADgB;AAEvBC,EAAAA,OAAO,EAAE,CAACA,mBAAD;AAFc,CAAV,C","sourcesContent":["import configure from \"@jimp/custom\";\n\nimport types from \"@jimp/types\";\nimport plugins from \"@jimp/plugins\";\n\nexport default configure({\n types: [types],\n plugins: [plugins],\n});\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jimp",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.10",
|
|
4
4
|
"description": "An image processing library written entirely in JavaScript (i.e. zero external or native dependencies)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
8
|
-
"
|
|
9
|
-
">=3.1.0-0": {
|
|
10
|
-
"*": [
|
|
11
|
-
"types/ts3.1/index.d.ts"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
8
|
+
"browser": "browser/lib/jimp.js",
|
|
15
9
|
"tonicExampleFilename": "example.js",
|
|
16
10
|
"files": [
|
|
17
11
|
"browser",
|
|
@@ -26,7 +20,6 @@
|
|
|
26
20
|
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
|
|
27
21
|
"test:watch": "npm run test -- --reporter min --watch",
|
|
28
22
|
"test:coverage": "nyc npm run test",
|
|
29
|
-
"browser-build": "node tools/browser-build.js test",
|
|
30
23
|
"build": "npm run build:browser && npm run build:node:production && npm run build:module",
|
|
31
24
|
"build:watch": "npm run build:node:debug -- -- --watch --verbose",
|
|
32
25
|
"build:debug": "npm run build:browser:debug && npm run build:node:debug",
|
|
@@ -34,8 +27,8 @@
|
|
|
34
27
|
"build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js",
|
|
35
28
|
"build:node:debug": "cross-env BABEL_ENV=development npm run build:node",
|
|
36
29
|
"build:node:production": "cross-env BABEL_ENV=production npm run build:node",
|
|
37
|
-
"build:browser": "cross-env
|
|
38
|
-
"build:browser:debug": "cross-env
|
|
30
|
+
"build:browser": "cross-env NODE_ENV=production webpack",
|
|
31
|
+
"build:browser:debug": "cross-env NODE_ENV=development ENV=browser webpack"
|
|
39
32
|
},
|
|
40
33
|
"keywords": [
|
|
41
34
|
"image",
|
|
@@ -53,9 +46,9 @@
|
|
|
53
46
|
"license": "MIT",
|
|
54
47
|
"dependencies": {
|
|
55
48
|
"@babel/runtime": "^7.7.2",
|
|
56
|
-
"@jimp/custom": "^0.17.
|
|
57
|
-
"@jimp/plugins": "^0.17.
|
|
58
|
-
"@jimp/types": "^0.17.
|
|
49
|
+
"@jimp/custom": "^0.17.10",
|
|
50
|
+
"@jimp/plugins": "^0.17.10",
|
|
51
|
+
"@jimp/types": "^0.17.10",
|
|
59
52
|
"regenerator-runtime": "^0.13.3"
|
|
60
53
|
},
|
|
61
54
|
"devDependencies": {
|
|
@@ -65,32 +58,16 @@
|
|
|
65
58
|
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
|
|
66
59
|
"@babel/preset-env": "^7.7.1",
|
|
67
60
|
"@babel/register": "^7.7.0",
|
|
68
|
-
"@jimp/test-utils": "^0.17.
|
|
61
|
+
"@jimp/test-utils": "^0.17.10",
|
|
69
62
|
"babel-eslint": "^10.0.3",
|
|
70
63
|
"babel-plugin-add-module-exports": "^1.0.2",
|
|
71
64
|
"babel-plugin-istanbul": "^5.2.0",
|
|
72
65
|
"babel-plugin-source-map-support": "^2.1.1",
|
|
73
|
-
"babelify": "^10.0.0",
|
|
74
|
-
"browserify": "^16.5.0",
|
|
75
|
-
"cross-env": "^6.0.0",
|
|
76
|
-
"dtslint": "^0.9.8",
|
|
77
|
-
"envify": "^4.1.0",
|
|
78
|
-
"eslint": "^6.4.0",
|
|
79
66
|
"express": "^4.17.1",
|
|
80
|
-
"
|
|
81
|
-
"karma": "^4.3.0",
|
|
82
|
-
"karma-browserify": "^6.1.0",
|
|
83
|
-
"karma-chrome-launcher": "^3.1.0",
|
|
84
|
-
"karma-firefox-launcher": "^1.2.0",
|
|
85
|
-
"lerna": "^3.16.4",
|
|
86
|
-
"lerna-changelog": "^0.8.2",
|
|
87
|
-
"lint-staged": "^9.2.5",
|
|
88
|
-
"mocha": "^6.2.0",
|
|
89
|
-
"nyc": "^14.1.1",
|
|
67
|
+
"path-browserify": "^1.0.1",
|
|
90
68
|
"source-map-support": "^0.5.13",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"watchify": "^3.11.1"
|
|
69
|
+
"webpack": "^5.75.0",
|
|
70
|
+
"webpack-cli": "^5.0.1"
|
|
94
71
|
},
|
|
95
72
|
"nyc": {
|
|
96
73
|
"sourceMap": false,
|
|
@@ -106,5 +83,5 @@
|
|
|
106
83
|
"test/*.js"
|
|
107
84
|
]
|
|
108
85
|
},
|
|
109
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "f4cce2504b5209c57a3c02b07d447b2de2e46aa0"
|
|
110
87
|
}
|